Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: main footer #44

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions public/cesium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import DepartmentCard from "@/components/department-card";
import Footer from "@/components/footer";

export default function Home() {
return (
<main className="h-screen w-screen flex-col items-center justify-center overflow-scroll p-5">
<div className="space-y-4">
<main className="h-screen w-screen flex-col items-center justify-center overflow-scroll">
<div className="space-y-4 p-5">
<DepartmentCard type="caos" />
<DepartmentCard type="dmc" />
<DepartmentCard type="drem" />
<DepartmentCard type="ped" />
<DepartmentCard type="rec" />
</div>
<div className="w-full">
<Footer />
</div>
</main>

);
}
65 changes: 65 additions & 0 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import React from 'react';

const Footer = () => {
const sections = [
{
title: 'CeSIUM',
items: ['Notícias', 'Sobre Nós', 'Equipa', 'Departamentos']
},
{
title: 'Atividades',
items: ['Projetos', 'Eventos', 'Parcerias']
},
{
title: 'Estudantes',
items: ['Torna-te sócio', 'Torna-te colaborador', 'Anuário']
},
{
title: 'Links Úteis',
items: ['Calendarium', 'Blackboard', 'Portal do Aluno', 'Página de LEI']
}
];

return (
<footer className="bg-[#0000000F] p-6 mt-8">
<div className="lg:flex lg:flex-row md:grid-cols-4 gap-[50px] mb-6">
{sections.map((section) => (
<div key={section.title}>
<h3 className="text-black mb-2">{section.title}</h3>
<ul>
{section.items.map((item) => (
<li key={item} className="text-sm mb-4">
<a href="#" className="text-stone ">{item}</a>
</li>
))}
</ul>
</div>
))}
</div>
<div className="pt-4 flex flex-col md:flex-row justify-between items-center">
<div className="flex flex-col items-start mb-4 md:mb-0">
<img src="cesium.svg" width={32} height={36} alt="CeSIUM Logo" className="-mr-2" />
<br/>
<div className="text-sm text-stone">
<p>CeSIUM - Centro de Estudantes de Engenharia</p>
<p>Informática da Universidade do Minho</p>
</div>
<div className="flex justify-center mt-4 space-x-4">
<img src="facebook.svg" alt="Facebook" width={20} height={20} />
<img src="instagram.svg" alt="instagram" width={20} height={20} />
<img src="twitter.svg" alt="twitter" width={20} height={20} />
<img src="github.svg" alt="github" width={20} height={20} />
<img src="youtube.svg" alt="youtube" width={20} height={20} />
</div>
</div>
<div className="text-sm text-right text-stone">
<p>Braga, Portugal</p>
<p>Telefone: +351 253 604 448</p>
<p>Email: [email protected]</p>
</div>
</div>
</footer>
);
};

export default Footer;