-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98372da
commit b18c270
Showing
8 changed files
with
158 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { Bug, Mail } from 'lucide-react'; | ||
import { useTranslations } from 'next-intl'; | ||
import ExternalLink from 'next/link'; | ||
|
||
|
@@ -22,10 +23,17 @@ function Footer() { | |
<div> | ||
<LogoLink className='justify-start' /> | ||
<p className='ml-2 leading-tight'> | ||
<strong>{t('openingHours')}:</strong> | ||
<br /> | ||
<span>{t('allWeekdays')}, 10:15-18:00</span> | ||
<br /> | ||
<br /> | ||
<Button asChild variant='link' size='none'> | ||
<ExternalLink | ||
href='https://use.mazemap.com/#v=1&zlevel=2¢er=10.404406,63.415418&zoom=18&sharepoitype=poi&sharepoi=1000391296&campusid=1' | ||
prefetch={false} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
Realfagbygget, A-blokka | ||
</ExternalLink> | ||
|
@@ -35,37 +43,27 @@ function Footer() { | |
7034 Trondheim | ||
</p> | ||
</div> | ||
<div> | ||
<h4>{t('links')}</h4> | ||
<nav> | ||
<ul> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/news'>{t('news')}</Link> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/events'>{t('events')}</Link> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/about'>{t('about')}</Link> | ||
</Button> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div> | ||
<h4>{t('socialMedia')}</h4> | ||
<ul className='flex flex-row text-foreground/80'> | ||
<ul className='grid-cols-2-auto sm:grid-cols-3-auto grid grid-flow-row justify-start text-foreground/80 xl:grid-flow-col xl:grid-cols-none'> | ||
<li> | ||
<Button asChild variant='ghost' size='sm-icon'> | ||
<ExternalLink | ||
href='mailto:[email protected]' | ||
aria-label={t('sendAnEmail')} | ||
> | ||
<Mail className='h-4 w-4' /> | ||
</ExternalLink> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button asChild variant='ghost' size='sm-icon'> | ||
<ExternalLink | ||
href='https://hackerspace-ntnu.slack.com/' | ||
prefetch={false} | ||
aria-label={t('visitOurSlack')} | ||
aria-label={t('visitSlack')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<Slack className='h-4 w-4' /> | ||
</ExternalLink> | ||
|
@@ -76,7 +74,9 @@ function Footer() { | |
<ExternalLink | ||
href='https://www.facebook.com/hackerspacentnu' | ||
prefetch={false} | ||
aria-label={t('visitOurFacebook')} | ||
aria-label={t('visitFacebook')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<Facebook className='h-4 w-4' /> | ||
</ExternalLink> | ||
|
@@ -87,7 +87,9 @@ function Footer() { | |
<ExternalLink | ||
href='https://github.com/hackerspace-ntnu/' | ||
prefetch={false} | ||
aria-label={t('visitOurGithub')} | ||
aria-label={t('visitGithub')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<Github className='h-4 w-4' /> | ||
</ExternalLink> | ||
|
@@ -98,26 +100,113 @@ function Footer() { | |
<ExternalLink | ||
href='https://www.instagram.com/hackerspacentnu/' | ||
prefetch={false} | ||
aria-label={t('visitOurInstagram')} | ||
aria-label={t('visitInstagram')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<Instagram className='h-4 w-4' /> | ||
</ExternalLink> | ||
</Button> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<h4>{t('links')}</h4> | ||
<nav> | ||
<ul className='mt-2 space-y-1.5'> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/news'>{t('news')}</Link> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/events'>{t('events')}</Link> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button asChild variant='nav' size='none'> | ||
<Link href='/about'>{t('about')}</Link> | ||
</Button> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div> | ||
<h4>{t('utilities')}</h4> | ||
<p className='[&:not(:first-child)]:mt-0'> | ||
<Button asChild variant='link' size='none'> | ||
<Link href='/'>{t('signIn')}</Link> | ||
</Button> | ||
<br /> | ||
{t('haveYouFoundA')} <Bug className='inline h-4 w-4' />? | ||
<br /> | ||
{t.rich('utilitiesDescription', { | ||
MailLink: () => ( | ||
<Button className='inline' asChild variant='link' size='none'> | ||
<ExternalLink | ||
href='mailto:[email protected]' | ||
aria-label={t('sendAnEmail')} | ||
> | ||
<Mail className='inline h-4 w-4' /> | ||
</ExternalLink> | ||
</Button> | ||
), | ||
SlackLink: (children) => ( | ||
<Button asChild variant='link' size='none'> | ||
<ExternalLink | ||
href='https://hackerspace-ntnu.slack.com/archives/CDK99FYTY' | ||
prefetch={false} | ||
aria-label={t('visitSlack')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
{children} | ||
</ExternalLink> | ||
</Button> | ||
), | ||
GithubLink: (children) => ( | ||
<Button asChild variant='link' size='none'> | ||
<ExternalLink | ||
href='https://github.com/hackerspace-ntnu/website-frontend/issues' | ||
prefetch={false} | ||
aria-label={t('visitGithub')} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
{children} | ||
</ExternalLink> | ||
</Button> | ||
), | ||
})} | ||
</p> | ||
</div> | ||
</div> | ||
<nav className='py-20'> | ||
<ul className='flex flex-col justify-center gap-6 sm:flex-row md:gap-10 lg:gap-20 xl:gap-40'> | ||
<li> | ||
<ExternalLink href={t('NTNUIDIURL')} prefetch={false}> | ||
<IDILogo className='p-6' title={t('NTNUIDI')} /> | ||
</ExternalLink> | ||
<Button asChild variant='none' size='none'> | ||
<ExternalLink | ||
href={t('NTNUIDIURL')} | ||
prefetch={false} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<IDILogo className='p-6' title={t('NTNUIDI')} /> | ||
</ExternalLink> | ||
</Button> | ||
</li> | ||
<li> | ||
<ExternalLink href='https://www.ntnu.no/ie/kid/' prefetch={false}> | ||
<KiDLogo className='p-6' title={t('NTNUKiD')} /> | ||
</ExternalLink> | ||
<Button asChild variant='none' size='none'> | ||
<ExternalLink | ||
href='https://www.ntnu.no/ie/kid/' | ||
prefetch={false} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<KiDLogo className='p-6' title={t('NTNUKiD')} /> | ||
</ExternalLink> | ||
</Button> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters