Skip to content

Commit 3e9fa25

Browse files
committed
adjusted layout
1 parent b3c7b26 commit 3e9fa25

File tree

9 files changed

+94
-24
lines changed

9 files changed

+94
-24
lines changed

package-lock.json

+53-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@ant-design/icons": "^5.1.3",
13+
"@react-spring/parallax": "^9.7.2",
1314
"@react-spring/web": "^9.7.2",
1415
"@types/node": "20.2.5",
1516
"@types/react": "18.2.7",
@@ -18,6 +19,7 @@
1819
"autoprefixer": "10.4.14",
1920
"eslint": "8.41.0",
2021
"eslint-config-next": "13.4.4",
22+
"framer-motion": "^10.12.16",
2123
"next": "13.4.4",
2224
"postcss": "8.4.24",
2325
"react": "18.2.0",

src/app/components/header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function Header() {
88
useChain([nameRef, bioRef], [0, 0.8]);
99

1010
return (
11-
<div className="flex md:flex-row flex-col md:gap-14 gap-5 w-full max-w-4xl">
11+
<div className="flex md:flex-row flex-col md:gap-14 gap-5 w-full max-w-screen-xl md:justify-center max-sm:items-center">
1212
<div className="flex flex-col gap-2">
1313
<Trail animRef={nameRef}>
1414
<div className="font-medium text-4xl">Ayush</div>

src/app/components/projects.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Projects() {
1313

1414
useChain([projectsRef, headingRef], [0.2, 1], 1500);
1515
return (
16-
<div className="flex flex-col gap-8 w-full max-w-4xl">
16+
<div className="flex flex-col gap-8 w-full max-w-[1150px]">
1717
<Trail animRef={headingRef}>
1818
<div className="font-medium text-2xl">Recent Projects</div>
1919
</Trail>

src/app/components/socials.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Socials() {
1515
const socialRef = useSpringRef();
1616
useChain([socialRef]);
1717
return (
18-
<div className="flex gap-8 w-full max-w-4xl">
18+
<div className="flex gap-8 w-full max-w-screen-xl justify-center">
1919
<Trail animRef={socialRef}>
2020
<Link href={LINKS.GITHUB} target="_blank">
2121
<BgSpringAnim>

src/app/layout.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import './globals.css'
2-
import { Inter } from 'next/font/google'
1+
import { Inter } from "next/font/google";
2+
import "./globals.css";
33

4-
const inter = Inter({ subsets: ['latin'] })
4+
const inter = Inter({ subsets: ["latin"] });
55

66
export const metadata = {
7-
title: 'Create Next App',
8-
description: 'Generated by create next app',
9-
}
7+
title: "Create Next App",
8+
description: "Generated by create next app",
9+
};
1010

1111
export default function RootLayout({
1212
children,
1313
}: {
14-
children: React.ReactNode
14+
children: React.ReactNode;
1515
}) {
1616
return (
1717
<html lang="en">
1818
<body className={inter.className}>{children}</body>
1919
</html>
20-
)
20+
);
2121
}

src/app/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"use client";
2-
32
import Experience from "./components/experience";
43
import Header from "./components/header";
54
import Projects from "./components/projects";

src/app/projects/aldifest/page.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function AldifestPage() {
2+
return <div className="bg-blue">asdasd</div>;
3+
}

src/app/projects/layout.tsx

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"use client";
2+
3+
import { motion } from "framer-motion";
4+
import React from "react";
5+
6+
export default function ProjectsLayout({
7+
children,
8+
}: {
9+
children: React.ReactNode;
10+
}) {
11+
return (
12+
<motion.div
13+
initial={{ width: 10 }}
14+
animate={{ width: 100 }}
15+
exit={{ width: 10 }}
16+
transition={{
17+
type: "spring",
18+
stiffness: 260,
19+
damping: 20,
20+
}}
21+
>
22+
{children}
23+
</motion.div>
24+
);
25+
}

0 commit comments

Comments
 (0)