Skip to content

Commit

Permalink
Theology 101 updates (#3)
Browse files Browse the repository at this point in the history
## Description
- Update url navigation
- ad image and link added
- tag colors and spacing fixed
- video title link fixed

## Screenshot


![url](https://github.com/aweandreverence/www.theology101.church/assets/144367037/7346175b-f98a-4435-a41e-237aa58c887d)
  • Loading branch information
Pinimes committed Nov 14, 2023
1 parent f9af599 commit 969ea91
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
1 change: 0 additions & 1 deletion components/base_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default function Page({ children }) {
/>

<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm"
crossorigin="anonymous"
Expand Down
20 changes: 12 additions & 8 deletions components/js/google/analytics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Safe from 'react-safe';

import Head from 'next/head';
import Script from 'next/script';

export function GoogleAnalytics(props) {
const gtagJS = `
Expand All @@ -16,16 +17,19 @@ gtag('config', '${props.trackingId}');
return (
<>
<Head>
<script
async
src={
'https://www.googletagmanager.com/gtag/js?id=' +
props.trackingId
}
key="google-analytics"
></script>
<Safe.script>{gtagJS}</Safe.script>
</Head>
<Script>
<script
async
src={
'https://www.googletagmanager.com/gtag/js?id=' +
props.trackingId
}
key="google-analytics"
>
</script>
</Script>
</>
);
}
1 change: 1 addition & 0 deletions components/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default class Tags extends React.Component {
{tags.map((tag, index) => (
<ol key={index} className="p-0">
<a
href="#"
className="link-light"
onClick={(e) => {
e.preventDefault();
Expand Down
1 change: 1 addition & 0 deletions components/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default class Topics extends React.Component {
.map((topic, index) => (
<ol key={index} className="p-0">
<a
href="#"
className="link-light"
onClick={(e) => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion components/video_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class VideoCard extends React.Component {
<div className="card-body bg-light overflow-y-scroll">
<h5 className="card-title">
<a
href
href="#"
onClick={(e) => {
e.preventDefault();
app.selectLesson.bind(app)(video.videoId);
Expand Down
6 changes: 3 additions & 3 deletions components/video_card_tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default class VideoCardTags extends React.Component {
const video = this.props.video;
return (
<div className="d-flex flex-wrap">
{video.tags.map((tag) => (
<h6>
{video.tags.map((tag, index) => (
<h6 key={index}>
<a
href
href="#"
onClick={(e) => {
e.preventDefault();
app.selectTag.bind(app)(tag);
Expand Down
2 changes: 1 addition & 1 deletion components/video_listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class VideoListing extends React.Component {
</h3>
<div className="d-flex p-2 flex-wrap mt-4">
{videoIds.map((videoId) => (
<VideoCard videoId={videoId} app={app} />
<VideoCard key={videoId} videoId={videoId} app={app} />
))}
</div>
</div>
Expand Down

0 comments on commit 969ea91

Please sign in to comment.