Skip to content

Commit 843821c

Browse files
update: implemented static animations
1 parent 9c241e8 commit 843821c

6 files changed

Lines changed: 31 additions & 29 deletions

File tree

blogs/UMDCTF2025.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "CTF Team UMDCTF Success!"
33
date: 26-04-2025
44
emoji: "🧠"
5-
description: "Embracing stillness in a world that glorifies busyness."
5+
description: "Our CTF team's recent performance and UMDCTF2025 was outstanding!"
66
image: "hackathon_team.jpeg"
77
---
88

blogs/hackathondebut.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Hackathon Team Debut!"
33
date: 14-05-2025
44
emoji: "🖥️"
5-
description: "Embracing stillness in a world that glorifies busyness."
5+
description: "Find out about our hackathon team's experience at their first ever event!"
66
image: "hackathon_team.jpeg"
77
---
88

src/app/components/AnnouncementArticleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const AnnouncementArticleList = (props: ListProps) => {
88
return (
99
<div className="flex flex-col gap-2.5 text-lg items-center pb-5">
1010
{props.articles.map((article, id) => (
11-
<div className="py-1 max-w-3xl" key={id}>
11+
<div className="py-1 max-w-3xl grid-cols-1" key={id}>
1212
<Link
1313
href={`/Announcements/${article.id}`}
1414
className="text-blue-900 hover:text-black

src/app/components/BlogArticleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const BlogArticleList = (props: ListProps) => {
88
return(
99
<div className="flex flex-col gap-2.5 text-lg items-center pb-5">
1010
{props.articles.map((article, id) => (
11-
<div key={id} className="max-w-3xl py-1 pl-5">
11+
<div key={id} className="max-w-3xl py-1 pl-5 grid-cols-1">
1212
<Link
1313
href={`/Blog/${article.id}`}
1414
className="text-blue-900 hover:text-black

src/app/layout.tsx

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
1-
import "./globals.css";
2-
import type { Metadata } from 'next';
1+
"use client"
2+
import './globals.css';
3+
import { ReactNode } from 'react';
4+
import { AnimatePresence, motion } from 'framer-motion';
5+
import { usePathname } from 'next/navigation';
36

4-
/*
5-
const geistSans = Geist({
6-
variable: "--font-geist-sans",
7-
subsets: ["latin"],
8-
});
97

10-
const geistMono = Geist_Mono({
11-
variable: "--font-geist-mono",
12-
subsets: ["latin"],
13-
});
14-
*/
8+
export default function RootLayout({ children }: { children: ReactNode }) {
9+
const pathname = usePathname();
1510

16-
export const metadata: Metadata = {
17-
title: "Maasec.com",
18-
description: "Official website of ACM Student chapter MaaSec",
19-
};
20-
21-
export default function RootLayout({
22-
children,
23-
}: Readonly<{
24-
children: React.ReactNode;
25-
}>) {
2611
return (
2712
<html lang="en">
2813
<body
2914
className={`font-mono antialiased`}
30-
3115
>
32-
{children}
16+
<AnimatePresence mode="wait">
17+
<motion.div
18+
key={pathname}
19+
initial={{ opacity: 0, y: 20 }}
20+
animate={{ opacity: 1, y: 0 }}
21+
exit={{ opacity: 0, y: -20 }}
22+
transition={{ duration: 0.3 }}
23+
>
24+
{children}
25+
</motion.div>
26+
</AnimatePresence>
3327
</body>
3428
</html>
3529
);
36-
}
30+
}

src/app/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
12
import { /*useState, useEffect*/} from "react";
23
import { Laptop, Lightbulb, Book, Monitor, Terminal,Users, Github} from "lucide-react";
34
import Navbar from "../app/components/Navbar";
45
import Image from "next/image";
56
import Footer from "../app/components/Footer";
7+
import { Metadata } from "next";
8+
9+
export const metadata: Metadata = {
10+
title: "Maasec.com",
11+
description: "Official website of ACM Student chapter MaaSec",
12+
};
13+
614

715
export default function Home() {
816
//const [_isMenuOpen, _setIsMenuOpen] = useState(false);

0 commit comments

Comments
 (0)