Skip to content

Commit 5b252f6

Browse files
Adds sightings page
1 parent 4c153e8 commit 5b252f6

File tree

4 files changed

+59
-22
lines changed

4 files changed

+59
-22
lines changed

src/layouts/Link.astro

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
export interface Props {
3+
to: string;
4+
}
5+
6+
const { to } = Astro.props;
7+
---
8+
9+
<a href={to} class="text-xl text-gray-200 underline hover:text-gray-400"><slot /></a>

src/pages/about.astro

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
import Layout from '../layouts/Layout.astro';
3+
import tips from '../data/tips.json'
4+
5+
const tipsCounts = tips.length;
6+
---
7+
8+
<Layout>
9+
<main>
10+
<h1 class="text-gray-100 text-4xl font-bold">about</h1>
11+
12+
<p class="text-gray-300 text-l my-3">
13+
while i was in highschool (circa 2009-2013), these quotes circulated
14+
the social media platforms. i originally wrote an android app to
15+
display them (which search, saving as favorites, and sharing functionality)
16+
-- but they've since disappeared from the internet.
17+
</p>
18+
19+
<p class="text-gray-300 text-l my-4">
20+
i built this to resurrect and provide a way
21+
for them to live on (in some fashion)
22+
</p>
23+
24+
<p class="text-gray-300 text-l my-4">
25+
there are {tipsCounts} tips recorded
26+
</p>
27+
</main>
28+
</Layout>

src/pages/index.astro

+6-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
---
22
import Layout from '../layouts/Layout.astro';
3-
import tips from '../data/tips.json'
4-
5-
const tipsCounts = tips.length;
3+
import Link from '../layouts/Link.astro';
64
---
75

86
<Layout>
9-
<main>
10-
<h1 class="text-gray-100 text-2xl">Welcome to the brotips archive!</h1>
11-
12-
<p class="text-gray-300 text-l my-3">
13-
While I was in highschool (circa 2009-2013), these quotes circulated
14-
the social media platforms. I originally wrote an Android app to
15-
display them (which search, saving as favorites, and sharing functionality)
16-
-- but they've since disappeared slowly from the internet.
17-
</p>
18-
19-
<p class="text-gray-300 text-l my-3">
20-
I built this resurrect and provide a way
21-
for them to live on (in some fashion).
22-
</p>
23-
24-
<p class="text-gray-300 text-l my-3">
25-
There are {tipsCounts} tips recorded.
26-
</p>
7+
<main class="flex flex-col items-center space-y-3">
8+
<h1 class="text-gray-100 text-4xl font-bold">brotips archive</h1>
279

28-
<a href="/brotips/tips/1/" class="text-lg text-gray-200 underline hover:text-gray-400">Get started!</a>
10+
<Link to="/brotips/tips/1/">browse</a>
11+
<Link to="/brotips/about/">about</a>
12+
<Link to="/brotips/sightings/">sightings</a>
2913
</main>
3014
</Layout>

src/pages/sightings.astro

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
import Layout from '../layouts/Layout.astro';
3+
import Link from '../layouts/Link.astro';
4+
---
5+
6+
<Layout>
7+
<main class="flex flex-col space-y-3">
8+
<h1 class="text-gray-100 text-4xl font-bold">sightings</h1>
9+
10+
<p class="text-xl text-gray-200">the quotes found in unexpected places accross the internet</p>
11+
12+
<Link to="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/1f4cbdb8b76c736c9ec1e69d4157c9650fd6f590/PowerEditor/src/Notepad_plus.cpp#L7596">
13+
brotips #1001 in notepad++
14+
</Link>
15+
</main>
16+
</Layout>

0 commit comments

Comments
 (0)