Skip to content

Commit beba11f

Browse files
Merge pull request #4 from Eric-Zhang-Developer/front-end-skeleton
Front End Skeleton
2 parents 3ce5e7e + b8fb7ef commit beba11f

File tree

5 files changed

+79
-24
lines changed

5 files changed

+79
-24
lines changed

package-lock.json

Lines changed: 40 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"next": "15.2.3",
1213
"react": "^19.0.0",
1314
"react-dom": "^19.0.0",
14-
"next": "15.2.3"
15+
"react-dropzone": "^14.3.8"
1516
},
1617
"devDependencies": {
17-
"typescript": "^5",
18+
"@eslint/eslintrc": "^3",
19+
"@tailwindcss/postcss": "^4",
1820
"@types/node": "^20",
1921
"@types/react": "^19",
2022
"@types/react-dom": "^19",
21-
"@tailwindcss/postcss": "^4",
22-
"tailwindcss": "^4",
2323
"eslint": "^9",
2424
"eslint-config-next": "15.2.3",
25-
"@eslint/eslintrc": "^3"
25+
"tailwindcss": "^4",
26+
"typescript": "^5"
2627
}
2728
}

src/app/globals.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
--font-mono: var(--font-geist-mono);
1313
}
1414

15-
@media (prefers-color-scheme: dark) {
16-
:root {
17-
--background: #0a0a0a;
18-
--foreground: #ededed;
19-
}
20-
}
2115

2216
body {
2317
background: var(--background);

src/app/page.tsx

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
export default function Home() {
2-
return (
3-
<main className="flex items-center justify-center">
4-
<header className="text-4xl">
5-
FollowDiff
6-
</header>
1+
"use client"
2+
3+
import Link from "next/link";
74

8-
</main>
95

6+
export default function Home() {
7+
return (
8+
<div className="mx-auto container p-2">
9+
<header className="text-3xl text-center mb-8">FollowDiff</header>
10+
<main className="flex items-center justify-center flex-col gap-4">
11+
<h1 className="text-2xl">Curious Who Doesn&apos;t Follow You Back?</h1>
12+
<h2 className="text-xl text-center">Safely see your non-followers using your official Instagram data. Your files are processed right here in your browser and are never uploaded anywhere.</h2>
13+
{/* Drop Zone */}
14+
<div className="border-2 px-1/2 py-40 flex flex-col gap-8 items-center justify-center w-1/2">
15+
Drag & drop your followers.json & following.json files here
16+
<span>or</span>
17+
<button className="border-1 p-2">Select Files</button>
18+
</div>
19+
<Link href="/tutorial" className="underline"> Don&apos;t have your files? Here&apos;s how to get them.</Link>
20+
</main>
21+
<footer className="fixed bottom-0 right-0 p-4">
22+
Open Source & Privacy-First
23+
</footer>
24+
</div>
1025
);
1126
}
27+
  

src/app/tutorial/page.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Link from "next/link"
2+
3+
export default function Tutorial() {
4+
return (
5+
<main className="mx-auto container flex flex-col items-center">
6+
<h1 className="text-xl">Tutorial Page</h1>
7+
<Link href="/" className="text-lg bg-slate-300 p-4 border-2"> Go Back</Link>
8+
</main>
9+
);
10+
}

0 commit comments

Comments
 (0)