Skip to content

Commit

Permalink
add quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Nov 16, 2023
1 parent a832177 commit a96202a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
21 changes: 18 additions & 3 deletions src/assets/quotes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
[
"This is the first quote.",
"This is the second quote.",
"This is the third quote."
"Featured here are real quotes from real people.",
"I would recommend navigating to a page I actually put content on.",
"They say you die twice: once when you die, and once when you've scratched and sniffed your last scratch and sniff sticker.",
"My computer pays me no mind.",
"We need to update our model.",
"If you were prowling around the sarenghetti, and you found out about extra carbohydrates, you'd be excited too.",
"Swamps comes from far and wide to marvel at the water seeping from this thing.",
"...and it's not the size of a room, it's the size of a triscut.",
"Not everything is true.",
"Something was steeping.",
"I would recommend watching About Time.",
"Just because one fails to generalize something successfully doesn't mean they don't understand it.",
"Idea: a shared Google doc, with all the relevant passwords.",
"Idea: use cryptography to ensure the integrity of images and videos (combat deepfakes). Like issuing certificates to cameras, and then embedding secrets in the frames, except in a way that doesn't get compressed-away. Surely people are doing this if it's viable, but it's not clear to me why it wouldn't be.",
"Idea: a comb with few and weird teeth, such that your hair gets brushed back the way you want but without that really clean comb-y look.",
"Idea: a riddle that uses that a mouth has two corners, or an eye has one corner.",
"The problem with organizing these pages all nicely and without redundancy is that then there's nothing to fill the landing page.",
"That's me."
]
4 changes: 0 additions & 4 deletions src/content/homepage/-index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: Home
meta_title: Home

banner:
title: Reed Nelson
qotd: "They say you die twice: once when you die, and once when you've scratched and sniffed your last scratch and sniff sticker."
---
2 changes: 0 additions & 2 deletions src/lib/utils/getQuote.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// src/routes/index.ts

import fs from 'fs/promises';
import path from 'path';

Expand Down
16 changes: 5 additions & 11 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
---
import Base from "@/layouts/Base.astro";
import Background from "@/components/Background.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { getEntryBySlug } from "astro:content";
import getQuote from "@/lib/utils/getQuote";
interface Homepage {
title: string;
meta_title: string;
banner: {
title: string;
qotd: string;
};
}
const homepage = await getEntryBySlug("homepage", "-index");
const { title, meta_title, banner }: Homepage = homepage.data;
const { title, meta_title }: Homepage = homepage.data;
---

<Base
Expand All @@ -26,11 +22,9 @@ const { title, meta_title, banner }: Homepage = homepage.data;
<div class="container">
<div class="row justify-center">
<div class="my-16 text-center col-10 md:col-6">
<h1 set:html={markdownify(banner.title)} class="mb-4" />
<div class="mt-20">
<h3>QotW:</h3>
<p set:html={ getQuote() } class="mt-4 mb-8" />
<!-- <p set:html={markdownify(banner.qotd)} class="mt-4 mb-8" /> -->
<h1 class="mb-4"> Reed Nelson </h1>
<div class="mt-12">
<p set:html={ getQuote() } class="mt-4"/>
</div>
</div>
</div>
Expand Down

0 comments on commit a96202a

Please sign in to comment.