diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-07-24 00:42:28 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-07-24 00:42:28 -0700 |
| commit | 151b21a02e8f43a091ec1a78c794b97f43a5cfc9 (patch) | |
| tree | d7543ed5d0c5c6900c78ffd503a94c4e9d86906c /src/pages/index.astro | |
| parent | 338bcf12e0b7bbd6e587ec992e62860642856e80 (diff) | |
Initial Commit
Diffstat (limited to 'src/pages/index.astro')
| -rw-r--r-- | src/pages/index.astro | 170 |
1 files changed, 141 insertions, 29 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index 26f070d..a1d2259 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,6 +3,12 @@ import BaseHead from '../components/BaseHead.astro'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; +import { getCollection } from 'astro:content'; +import FormattedDate from '../components/FormattedDate.astro'; + +const posts = (await getCollection('blog')).sort( + (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf() +); --- <!DOCTYPE html> @@ -12,38 +18,144 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; </head> <body> <Header title={SITE_TITLE} /> + <main> - <h1>🧑🚀 Hello, Astronaut!</h1> - <p> - Welcome to the official <a href="https://astro.build/">Astro</a> blog starter template. This - template serves as a lightweight, minimally-styled starting point for anyone looking to build - a personal website, blog, or portfolio with Astro. - </p> - <p> - This template comes with a few integrations already configured in your - <code>astro.config.mjs</code> file. You can customize your setup with - <a href="https://astro.build/integrations">Astro Integrations</a> to add tools like Tailwind, - React, or Vue to your project. - </p> - <p>Here are a few ideas on how to get started with the template:</p> - <ul> - <li>Edit this page in <code>src/pages/index.astro</code></li> - <li>Edit the site header items in <code>src/components/Header.astro</code></li> - <li>Add your name to the footer in <code>src/components/Footer.astro</code></li> - <li>Check out the included blog posts in <code>src/pages/blog/</code></li> - <li>Customize the blog post page layout in <code>src/layouts/BlogPost.astro</code></li> - </ul> - <p> - Have fun! If you get stuck, remember to <a href="https://docs.astro.build/" - >read the docs - </a> or <a href="https://astro.build/chat">join us on Discord</a> to ask questions. - </p> + <style> + ul { + list-style-type: none; + padding: unset; + } + ul li { + display: flex; + } + ul li :global(time) { + flex: 0 0 130px; + font-style: italic; + color: #646464; + } + </style> + <h2>Recent Posts</h2> + <section> + <ul> + { + posts.slice(0, 3).map((post) => ( + <li> + <FormattedDate date={post.data.pubDate} /> + <a href={`/blog/${post.slug}/`}>{post.data.title}</a> + </li> + )) + } + </ul> + </section> + <h1>👋 Greetings, Adventurer!</h1> <p> - Looking for a blog template with a bit more personality? Check out <a - href="https://github.com/Charca/astro-blog-template" - >astro-blog-template - </a> by <a href="https://twitter.com/Charca">Maxi Ferreira</a>. + Welcome to my site/blog! This place will serve as a corner where I can document the progress and process with some of things I've experimented with or made. + I guess its like programming documentation, but uhh more of a mess? </p> + <h3>I did a thing..</h3> + <p>Here are some of the things I've done/experimented with and found pretty cool! (you can also find more stuff <a href="https://pinapelz.moe">here</a> and on <a href="https://github.com/pinapelz">GitHub</a>)</p> + <style> + .project-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 20px; + } + + .project { + background-color: #292828; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + text-align: center; + } + + .project img { + max-width: 100%; + height: auto; + border-radius: 4px; + margin-bottom: 10px; + } + + /* Styling for project descriptions */ + .project-grid .project p.project-text, + .project-grid a{ + text-decoration: none; + font-size: 14px; + line-height: 1.4; + color: #FFFFFF; + } + + .project-grid .project p.project-title{ + font-size: 18px; + line-height: 1; + } + + img { + max-height: 100px; + } + + </style> + <div class="project-grid"> + <div class="project"> + <a href="https://nijitracker.com" > + <img src="/projects/nijitrack.png" alt="Nijitrack Logo"> + </a> + <p class="project-title">NijiTrack</p> + <p class="project-text"> + Record and track historical subscriber data for a set of YouTube channels. + Currently mine is set up to record data for Nijisanji Virtual YouTubers (Nijitracker link on repo). + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/Video-Archive-Web"> + <img src="/projects/patchwork.png" alt="Patchwork Logo"> + </a> + <p class="project-title">Video Archive Web (Patchwork Archive)</p> + <p class="project-text"> + A Python Flask web app that can host archived YouTube videos, currently used as the + front end for Patchwork Archive (link on repo). + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/JHolodex"> + <img src="/projects/holodex.png" alt="JHolodex Wrapper"> + </a> + <p class="project-title">JHolodex</p> + <p class="project-text"> + A Java object oriented wrapper for the Holodex API + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/Sapphire"> + <img src="https://www.gitbook.com/cdn-cgi/image/width=40,dpr=2,height=40,fit=contain,format=auto/https%3A%2F%2F1852825540-files.gitbook.io%2F~%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FoWEO5F5fxBARvfBEby5l%252Ficon%252F9jUvxgDCe6egTrCyJ8t5%252Fsapphire_logo.png%3Falt%3Dmedia%26token%3D4e1ce138-1a38-4e5c-a9f8-490b24189b57" alt="Sapphire"> + </a> + <p class="project-title">Project Sapphire</p> + <p class="project-text"> + My fork of Sapphire, a C++ Final Fantasy XIV Server Emulator. Most of the work I've done + is pretaining to scripting content + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/yet-another-lavaplayer-bot"> + <img src="https://github.com/discord-jda/JDA/raw/assets/assets/readme/logo.png?raw=true" alt="YALP Bot"> + </a> + <p class="project-title">Yet Another Lavaplayer Bot</p> + <p class="project-text"> + A Discord music bot written in Java using JDA and Lavaplayer + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/ytmp3AutoTag"> + <img src="projects/github-mark-white.svg" alt="ytmp3 Autotag"> + </a> + <p class="project-title">YTMP3 Auto Tag</p> + <p class="project-text"> + A Java Swing application that uses yt-dlp to download and then automatically tag + mp3 files with metadata from the video. Supports downloading parts of a video as well + </p> + </div> + </div> + </main> <Footer /> </body> |
