Skip to content

Commit

Permalink
Added proper social links to footer
Browse files Browse the repository at this point in the history
Closes #168
  • Loading branch information
kachar committed Apr 17, 2021
1 parent 06d1290 commit 0dcaba1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
8 changes: 8 additions & 0 deletions src/common/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export const staticUrls = {
devDocs: 'https://docs.podkrepi.bg/development',
}

export const socialUrls = {
facebook: 'https://www.facebook.com/podkrepi.bg',
twitter: '/',
linkedin: 'https://www.linkedin.com/company/podkrepibg',
youtube: 'https://www.youtube.com/channel/UCt5pYR0DkOCfjlY17awY8pA',
instagram: '/',
}

export const routes = {
index: '/',
about: '/about',
Expand Down
25 changes: 8 additions & 17 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'

import { Grid, Container, createStyles, makeStyles, lighten } from '@material-ui/core'
import { Instagram, Facebook, Twitter, LinkedIn, YouTube } from '@material-ui/icons'

import PodkrepiLogo from 'components/brand/PodkrepiLogo'
import { routes, staticUrls } from 'common/routes'
import { routes, socialUrls, staticUrls } from 'common/routes'

const useStyles = makeStyles((theme) =>
createStyles({
Expand Down Expand Up @@ -112,14 +111,6 @@ const footerItems: FooterLink[][] = [
],
]

const socialLinks = {
facebook: '/',
twitter: '/',
linkedin: '/',
youtube: '/',
instagram: '/',
}

export default function Footer() {
const { t } = useTranslation()
const classes = useStyles()
Expand All @@ -135,21 +126,21 @@ export default function Footer() {
</a>
</Link>
<div className={classes.socialContainer}>
<a href={socialLinks.facebook} target="_blank" rel="noreferrer noopener">
<a href={socialUrls.facebook} target="_blank" rel="noreferrer noopener">
<Facebook className={classes.socialLink} />
</a>
<a href={socialLinks.twitter} target="_blank" rel="noreferrer noopener">
{/* <a href={socialUrls.twitter} target="_blank" rel="noreferrer noopener">
<Twitter className={classes.socialLink} />
</a>
<a href={socialLinks.linkedin} target="_blank" rel="noreferrer noopener">
</a> */}
<a href={socialUrls.linkedin} target="_blank" rel="noreferrer noopener">
<LinkedIn className={classes.socialLink} />
</a>
<a href={socialLinks.youtube} target="_blank" rel="noreferrer noopener">
<a href={socialUrls.youtube} target="_blank" rel="noreferrer noopener">
<YouTube className={classes.socialLink} />
</a>
<a href={socialLinks.instagram} target="_blank" rel="noreferrer noopener">
{/* <a href={socialUrls.instagram} target="_blank" rel="noreferrer noopener">
<Instagram className={classes.socialLink} />
</a>
</a> */}
</div>
<span className={classes.copyrights}>{t('footerCopyrights')}</span>
</Grid>
Expand Down

0 comments on commit 0dcaba1

Please sign in to comment.