Skip to content

Commit

Permalink
feat: added sponsors to the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 19, 2024
1 parent eda6b94 commit 98372da
Show file tree
Hide file tree
Showing 10 changed files with 377 additions and 12 deletions.
11 changes: 10 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
"profile": "Profile",
"signIn": "Sign in",
"links": "Links",
"socialMedia": "Social media"
"socialMedia": "Social media",
"visitOurSlack": "Visit our Slack",
"visitOurFacebook": "Visit our Facebook",
"visitOurGithub": "Visit our Github",
"visitOurInstagram": "Visit our Instagram",
"NTNUIDI": "NTNU Department of Computer Science",
"NTNUIDIURL": "https://www.ntnu.edu/idi",
"NTNUKiD": "The working life network KID",
"copyright": "Copyright",
"allRightsReserved": "All rights reserved"
}
}
10 changes: 9 additions & 1 deletion messages/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"profile": "Profil",
"signIn": "Logg inn",
"links": "Lenker",
"socialMedia": "Sosiale medier"
"socialMedia": "Sosiale medier",
"visitOurSlack": "Besøk vår Slack",
"visitOurFacebook": "Besøk vår Facebook",
"visitOurGithub": "Besøk vår Github",
"visitOurInstagram": "Besøk vår Instagram",
"NTNUIDI": "NTNU Institutt for datateknologi og informatikk",
"NTNUIDIURL": "https://www.ntnu.no/idi",
"copyright": "Opphavsrett",
"allRightsReserved": "Alle rettigheter reservert"
}
}
1 change: 0 additions & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const config = {
useTabs: false,
jsxSingleQuote: true,
importOrder: [
'^react$',
'^[./]',
'^@/(lib|styles)/(.*)$',
'^@/hooks/(.*)$',
Expand Down
204 changes: 204 additions & 0 deletions src/components/assets/sponsors/IDILogo.tsx

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions src/components/assets/sponsors/KiDLogo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import { cx } from '@/lib/utils';

function KiDLogo({
className,
title,
...rest
}: {
className?: string;
title: string;
}) {
return (
<svg
className={cx('text-black dark:text-white', className)}
width='100%'
height='100%'
viewBox='0 0 782 139'
xmlns='http://www.w3.org/2000/svg'
aria-describedby='kidlogo'
{...rest}
>
<title id='kidlogo'>{title}</title>
<path
d='M535.6,6.2c-0.3,0.7 -0.7,4.2 -1.1,7.8c-0.3,3.6 -1.9,19.3 -3.5,35c-7.3,70 -8.1,78.3 -7.2,79.2c0.5,0.5 6.4,0.7 13.2,0.6c9.7,-0.2 12.4,-0.6 13,-1.8c0.4,-0.8 1.5,-8.1 2.3,-16.1c1.3,-12.9 1.8,-15.1 4.2,-18.7c1.5,-2.3 3.1,-4.2 3.4,-4.2c0.7,0 12.1,36.6 12.1,38.7c0,0.6 0.7,1.4 1.6,1.7c2.4,0.9 28.2,0.7 28.8,-0.2c0.3,-0.5 -4.2,-16 -10,-34.6c-5.7,-18.6 -10.4,-34.7 -10.4,-35.8c0,-1.1 7.3,-12.7 16.1,-25.7c8.9,-13 16.2,-24.3 16.3,-25.1c0.1,-1.3 -2.1,-1.5 -14.4,-1.5l-14.5,0l-13,20.9c-7.1,11.5 -13.1,20.2 -13.3,19.3c-0.2,-0.9 0.6,-10 1.7,-20.3c1.2,-10.2 1.8,-19 1.5,-19.5c-0.9,-1.5 -26.4,-1.1 -26.8,0.3Z'
fill='#144e9d'
/>
<path
d='M696.7,5.7c-0.3,0.5 -0.8,3.9 -1.2,7.8c-0.3,3.8 -1,10.4 -1.6,14.5c-0.5,4.1 -1.8,16.7 -2.9,28c-1.1,11.3 -3.1,31.3 -4.5,44.5c-1.3,13.2 -2.5,25 -2.5,26.3l0,2.4l24.3,-0.4c23.2,-0.4 24.5,-0.5 31,-3c9.3,-3.5 14.1,-7.1 19.2,-14.2c7.8,-11 10,-20.8 13.9,-62.6c0.5,-5.6 -1.3,-17.6 -3.5,-23.5c-3.8,-10.1 -13,-17.1 -25.4,-19.4c-6.6,-1.2 -46.1,-1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3,-8 6.6,-11.6c6.3,-7 11.7,-8.5 19,-5.2Z'
fill='currentColor'
/>
<path
d='M187.5,41.7c0.4,1.6 4,17 8.1,34.3c4.2,17.3 7.7,32.3 8,33.2c0.4,1.3 1.6,1.8 4.4,1.8c3.7,0 3.9,-0.2 5.8,-5.3c1.1,-2.8 7.2,-18.9 13.6,-35.5c6.4,-16.7 11.6,-30.6 11.6,-30.8c0,-0.2 -1.7,-0.4 -3.7,-0.4l-3.8,-0l-10.9,29.6c-6,16.2 -11.2,29.7 -11.6,29.9c-0.3,0.2 -3.7,-13.1 -7.6,-29.5l-6.9,-30l-3.9,-0c-3.7,-0 -3.8,0.1 -3.1,2.7Z'
fill='currentColor'
/>
<path
d='M635.5,44.2c-1.6,12.1 -8.3,83.3 -7.9,84c0.3,0.4 6.1,0.8 13,0.8c12,0 12.5,-0.1 13.3,-2.3c0.6,-1.7 9.2,-82.6 9.1,-86c0,-0.4 -6,-0.7 -13.4,-0.7l-13.5,0l-0.6,4.2Z'
fill='#144e9d'
/>
</svg>
);
}

export { KiDLogo };
1 change: 1 addition & 0 deletions src/components/assets/sponsors/kid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 67 additions & 5 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ import ExternalLink from 'next/link';

import { Link } from '@/lib/navigation';

import { Facebook } from '@/components/assets/icons/Facebook';
import { Github } from '@/components/assets/icons/Github';
import { Instagram } from '@/components/assets/icons/Instagram';
import { Slack } from '@/components/assets/icons/Slack';
import { IDILogo } from '@/components/assets/sponsors/IDILogo';
import { KiDLogo } from '@/components/assets/sponsors/KiDLogo';
import { LogoLink } from '@/components/layout/LogoLink';
import { Button } from '@/components/ui/Button';

function Footer() {
const t = useTranslations('layout');
const year = new Date().getFullYear();
return (
<footer className='z-10 flex w-full justify-center border-b border-border/40 bg-background/95 px-11 py-10 md:px-16 lg:px-24'>
<footer className='z-10 flex w-full justify-center border-t border-border/40 bg-background/95 px-11 py-10 md:px-16 lg:px-24'>
<div className='w-full max-w-screen-2xl text-sm'>
<div className='xs:grid-cols-2 grid grid-cols-1 gap-x-4 gap-y-12 sm:grid-cols-3 lg:grid-cols-4'>
<div>
Expand Down Expand Up @@ -53,16 +59,72 @@ function Footer() {
</div>
<div>
<h4>{t('socialMedia')}</h4>
<ul>
<ul className='flex flex-row text-foreground/80'>
<li>
<Button asChild variant='ghost' size='icon'>
<ExternalLink href='https://hackerspace-ntnu.slack.com/'></ExternalLink>
<Button asChild variant='ghost' size='sm-icon'>
<ExternalLink
href='https://hackerspace-ntnu.slack.com/'
prefetch={false}
aria-label={t('visitOurSlack')}
>
<Slack className='h-4 w-4' />
</ExternalLink>
</Button>
</li>
<li>
<Button asChild variant='ghost' size='sm-icon'>
<ExternalLink
href='https://www.facebook.com/hackerspacentnu'
prefetch={false}
aria-label={t('visitOurFacebook')}
>
<Facebook className='h-4 w-4' />
</ExternalLink>
</Button>
</li>
<li>
<Button asChild variant='ghost' size='sm-icon'>
<ExternalLink
href='https://github.com/hackerspace-ntnu/'
prefetch={false}
aria-label={t('visitOurGithub')}
>
<Github className='h-4 w-4' />
</ExternalLink>
</Button>
</li>
<li>
<Button asChild variant='ghost' size='sm-icon'>
<ExternalLink
href='https://www.instagram.com/hackerspacentnu/'
prefetch={false}
aria-label={t('visitOurInstagram')}
>
<Instagram className='h-4 w-4' />
</ExternalLink>
</Button>
</li>
<li></li>
</ul>
</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>
</li>
<li>
<ExternalLink href='https://www.ntnu.no/ie/kid/' prefetch={false}>
<KiDLogo className='p-6' title={t('NTNUKiD')} />
</ExternalLink>
</li>
</ul>
</nav>
<p className='text-center'>
{t('copyright')} &copy; {year}, Hackerspace NTNU.{' '}
{t('allRightsReserved')}.
</p>
</div>
</footer>
);
Expand Down
5 changes: 3 additions & 2 deletions src/components/settings/DarkModeMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use client';

import { Moon, Sun } from 'lucide-react';
import { useTheme } from 'next-themes';

import * as React from 'react';

import { Button } from '@/components/ui/Button';
Expand All @@ -9,8 +12,6 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/DropdownMenu';
import { Moon, Sun } from 'lucide-react';
import { useTheme } from 'next-themes';

type DarkModeMenuProps = {
toggleTheme: string;
Expand Down
1 change: 0 additions & 1 deletion src/components/settings/ProfileMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import { User } from 'lucide-react';

import * as React from 'react';

import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Slot } from '@radix-ui/react-slot';

import * as React from 'react';

import { type VariantProps, cva } from '@/lib/utils';
Expand All @@ -24,6 +23,7 @@ const buttonVariants = cva({
sm: 'h-9 rounded-md px-3',
lg: 'h-11 rounded-md px-8',
icon: 'h-10 w-10',
'sm-icon': 'h-8 w-8',
none: '',
},
},
Expand Down

0 comments on commit 98372da

Please sign in to comment.