-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from appKom/redesign-footer
Add bekk and online logo in footer
- Loading branch information
Showing
4 changed files
with
134 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,60 +1,94 @@ | ||
import { BsSlack, BsFacebook, BsInstagram, BsGithub } from 'react-icons/bs'; | ||
|
||
const footerLinkSize = 35; | ||
import { | ||
Slack, | ||
Facebook, | ||
Instagram, | ||
Github, | ||
Mail, | ||
ExternalLink, | ||
} from 'lucide-react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const footerLinks = [ | ||
{ | ||
name: 'Slack', | ||
icon: <BsSlack size={footerLinkSize} />, | ||
link: 'https://onlinentnu.slack.com/', | ||
}, | ||
{ name: 'Slack', icon: <Slack />, link: 'https://onlinentnu.slack.com/' }, | ||
{ | ||
name: 'Facebook', | ||
icon: <BsFacebook size={footerLinkSize} />, | ||
icon: <Facebook />, | ||
link: 'http://facebook.com/LinjeforeningenOnline', | ||
}, | ||
{ | ||
name: 'Instagram', | ||
icon: <BsInstagram size={footerLinkSize} />, | ||
icon: <Instagram />, | ||
link: 'https://www.instagram.com/online_ntnu/', | ||
}, | ||
{ | ||
name: 'Github', | ||
icon: <BsGithub size={footerLinkSize} />, | ||
link: 'https://github.com/appKom', | ||
}, | ||
{ name: 'Github', icon: <Github />, link: 'https://github.com/appKom' }, | ||
]; | ||
|
||
const Footer = () => ( | ||
<div className="flex flex-col gap-8 py-8 bg-onlineblue mt-28"> | ||
<div className="flex justify-center gap-8"> | ||
{footerLinks.map((link) => { | ||
return ( | ||
<a | ||
href={link.link} | ||
key={link.name} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="transition-all hover:text-onlineyellow" | ||
<footer className="px-4 py-12 text-gray-200 bg-gray-950 md:px-6 lg:px-8"> | ||
<div className="mx-auto max-w-7xl"> | ||
<div className="flex flex-col items-center justify-between mb-8 space-y-8 md:flex-row md:space-y-0"> | ||
<div className="flex flex-col items-center space-y-4 md:items-start"> | ||
<h2 className="text-2xl font-bold">Onlinefondet</h2> | ||
<div className="flex items-center space-x-2 transition-colors hover:text-onlineyellow"> | ||
<Mail size={18} className="" /> | ||
<Link to="mailto:[email protected]"> | ||
[email protected] | ||
</Link> | ||
</div> | ||
</div> | ||
|
||
<div className="flex flex-col items-center space-y-4 md:items-end"> | ||
<div className="flex space-x-4"> | ||
{footerLinks.map((link, index) => ( | ||
<Link | ||
to={link.link} | ||
key={index} | ||
className="transition-colors hover:text-onlineyellow" | ||
aria-label={link.name} | ||
> | ||
{link.icon} | ||
</Link> | ||
))} | ||
</div> | ||
<div className="text-sm text-center md:text-right"> | ||
<p>Feil på siden?</p> | ||
<Link | ||
to="mailto:[email protected]" | ||
className="flex items-center justify-center space-x-1 transition-colors hover:underline hover:text-onlineyellow md:justify-end" | ||
> | ||
<span>Ta kontakt med Appkom</span> | ||
<ExternalLink size={14} /> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="flex flex-col items-center justify-between py-8 space-y-6 border-t border-gray-800 md:flex-row md:space-y-0"> | ||
<div className="flex items-center space-x-6"> | ||
<Link | ||
to="https://online.ntnu.no/" | ||
className="transition hover:opacity-50" | ||
> | ||
{link.icon} | ||
</a> | ||
); | ||
})} | ||
</div> | ||
<div className="flex flex-col items-center gap-2"> | ||
<div>Feil på siden?</div> | ||
<div> | ||
Ta kontakt med{' '} | ||
<a | ||
href="mailto:[email protected]" | ||
className="font-medium transition-all hover:text-onlineyellow" | ||
> | ||
Appkom | ||
</a> | ||
<img | ||
src="Online_hvit.svg" | ||
alt="Online logo" | ||
className="w-32 h-auto" | ||
/> | ||
</Link> | ||
<Link | ||
to="https://www.bekk.no/" | ||
className="transition hover:opacity-50" | ||
> | ||
<img src="bekk_white.svg" alt="Bekk logo" className="w-32 h-auto" /> | ||
</Link> | ||
</div> | ||
<p className="text-sm text-gray-400"> | ||
© {new Date().getFullYear()} Onlinefondet. Alle rettigheter | ||
reservert. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
|
||
export default Footer; |
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