Skip to content

Commit

Permalink
Update global styles and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebstep committed Oct 10, 2023
1 parent 2f6467d commit 31e1f84
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
15 changes: 15 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
@tailwind components;
@tailwind utilities;

@layer base {
h1 {
@apply text-5xl font-semibold mb-8;
}
h2 {
@apply text-3xl font-semibold mb-4 text-center;
}
h3 {
@apply text-2xl font-semibold mb-4 text-left;
}
p {
@apply text-lg;
}
}

/* :root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function RootLayout({
</head>
<body className={inter.className}>
<Navigation />
<main className="mx-auto mt-14 sm:mt-16 mb-32">{children}</main>
<main className="mx-auto mb-32">{children}</main>
<Footer />
</body>
</html>
Expand Down
6 changes: 3 additions & 3 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Link from "next/link";

export default function Footer() {
return (
<footer className="fixed bottom-0 w-full bg-gray-800 py-4">
<footer className="bottom-0 w-full bg-gray-800 py-4">
<div className="container mx-auto px-4">
<div className="flex flex-wrap justify-between items-center">
<div className="w-full md:w-auto text-center md:text-left mb-4 md:mb-0">
<p className="text-white">&copy; 2021 My Website</p>
<div className="w-full md:w-auto text-center md:text-left mb-4 md:mb-0 text-white">
<p className="text-base">&copy; 2021 Pathfinder Project</p>
</div>
<div className="w-full md:w-auto text-center md:text-right">
<Link href="#" className="text-white hover:text-gray-400 mx-2">
Expand Down
5 changes: 2 additions & 3 deletions components/Institutionlogos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import Image from "next/image";

export default function InstitutionLogos() {
return (
<section className="">
<h2 className="text-3xl font-semibold text-center mb-6">Participating Institutions</h2>
<div className="mx-auto py-8">
<div className="flex flex-wrap justify-center items-center">
{/* Replace the paths with the actual paths to your institution logos */}
<div className="w-1/2 sm:w-1/3 md:w-1/4 lg:w-1/6 p-4 bg-yellow-400">
Expand All @@ -21,6 +20,6 @@ export default function InstitutionLogos() {
{/* <Image src="/institution4.png" alt="Institution 4" className="mx-auto" /> */}
</div>
</div>
</section>
</div>
);
}
2 changes: 1 addition & 1 deletion components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function ResponsiveAppBar() {
};

return (
<AppBar position="fixed">
<AppBar className="sticky">
<Container maxWidth="xl">
<Toolbar disableGutters>
<AdbIcon sx={{ display: { xs: 'none', md: 'flex' }, mr: 1 }} />
Expand Down

0 comments on commit 31e1f84

Please sign in to comment.