mirror of
https://github.com/Alee14/personal-website.git
synced 2025-01-22 10:51:50 -05:00
Compare commits
6 commits
7f1917a198
...
c63a04e148
Author | SHA1 | Date | |
---|---|---|---|
c63a04e148 | |||
c71f383021 | |||
b2ed99705f | |||
aefcde2c39 | |||
96beb87b16 | |||
09f88d5caa |
10 changed files with 59 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
|||
import { defineConfig, passthroughImageService } from 'astro/config';
|
||||
import icon from "astro-icon";
|
||||
import vercel from "@astrojs/vercel/serverless";
|
||||
import vercel from "@astrojs/vercel";
|
||||
import preact from "@astrojs/preact";
|
||||
import svelte from "@astrojs/svelte";
|
||||
|
||||
|
@ -13,7 +13,7 @@ export default defineConfig({
|
|||
output: "server",
|
||||
adapter: vercel({
|
||||
webAnalytics: {
|
||||
enabled: true
|
||||
enabled: false
|
||||
}
|
||||
}),
|
||||
image: {
|
||||
|
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
20
package.json
20
package.json
|
@ -10,20 +10,20 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "3.5.0",
|
||||
"@astrojs/rss": "4.0.7",
|
||||
"@astrojs/svelte": "^5.6.0",
|
||||
"@astrojs/vercel": "7.7.2",
|
||||
"@astrojs/preact": "4.0.1",
|
||||
"@astrojs/rss": "4.0.10",
|
||||
"@astrojs/svelte": "7.0.2",
|
||||
"@astrojs/vercel": "^8.0.1",
|
||||
"@iconify-json/fa6-brands": "^1.1.19",
|
||||
"@iconify-json/fa6-solid": "^1.1.21",
|
||||
"astro": "4.11.3",
|
||||
"astro": "5.1.1",
|
||||
"astro-icon": "^1.1.0",
|
||||
"dompurify": "^3.1.5",
|
||||
"dompurify": "^3.1.6",
|
||||
"markdown-it": "^14.1.0",
|
||||
"marked": "^13.0.0",
|
||||
"preact": "^10.22.0",
|
||||
"marked": "^13.0.2",
|
||||
"preact": "^10.22.1",
|
||||
"sanitize-html": "^2.13.0",
|
||||
"svelte": "^4.2.18",
|
||||
"typescript": "^5.4.5"
|
||||
"svelte": "^5.8.1",
|
||||
"typescript": "^5.5.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
<div class="error">{error}</div>
|
||||
{:else}
|
||||
<div class="sort">
|
||||
<a href="#" on:click={(event) => handleSortClick('alphabetical', event)}>Alphabetic</a>
|
||||
<a href="#" on:click={(event) => handleSortClick('alphabetical', event)}>A-Z</a>
|
||||
<a href="#" on:click={(event) => handleSortClick('lastUpdated', event)}>Last Updated</a>
|
||||
<a href="#" on:click={(event) => handleSortClick('mostStars', event)}>Most Stars</a>
|
||||
</div>
|
||||
|
|
|
@ -20,6 +20,13 @@
|
|||
"url": "https://youtube.alee14.me",
|
||||
"mouseover": "YouTube"
|
||||
},
|
||||
{
|
||||
"platform": "Bluesky",
|
||||
"icon": "bluesky",
|
||||
"username": "alee14.me",
|
||||
"url": "https://bsky.app/profile/alee14.me",
|
||||
"mouseover": "Bluesky"
|
||||
},
|
||||
{
|
||||
"platform": "Mastodon",
|
||||
"icon": "mastodon",
|
||||
|
@ -47,12 +54,5 @@
|
|||
"username": "Andrew Lee Projects",
|
||||
"url": "https://discord.alee14.me",
|
||||
"mouseover": "Discord"
|
||||
},
|
||||
{
|
||||
"platform": "X",
|
||||
"icon": "x-twitter",
|
||||
"username": "Alee14498",
|
||||
"url": "https://twitter.alee14.me",
|
||||
"mouseover": "yuck."
|
||||
}
|
||||
]
|
||||
|
|
|
@ -5,7 +5,7 @@ interface Props {
|
|||
}
|
||||
|
||||
const { title = "Andrew Lee", description = "Andrew Lee Website" } = Astro.props;
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
import { ClientRouter } from 'astro:transitions';
|
||||
import Navbar from '../components/Navbar.svelte';
|
||||
const date = new Date();
|
||||
---
|
||||
|
@ -36,7 +36,12 @@ const date = new Date();
|
|||
<meta name="theme-color" content="#1B291F"/>
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
|
||||
<ViewTransitions fallback="animate" />
|
||||
<!-- Plausible Analytics -->
|
||||
|
||||
<script defer data-domain="alee14.me" data-api="/plausible/api/event" src="/plausible/js/script.js"/>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
|
||||
<ClientRouter fallback="animate" />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -7,6 +7,7 @@ import Layout from '../layouts/Default.astro'
|
|||
<h2>Page not found</h2>
|
||||
<h2>Whoops! You blew up the website!</h2>
|
||||
</div>
|
||||
<script>document.addEventListener('DOMContentLoaded', function () { plausible('404', { props: { path: document.location.pathname } }); });</script>
|
||||
</Layout>
|
||||
<style>
|
||||
.error {
|
||||
|
|
|
@ -36,8 +36,8 @@ const featuredProjects = projects.filter(project => project.featured);
|
|||
</a>
|
||||
</div>
|
||||
<div class="description">
|
||||
<h2>19 Years Old</h2>
|
||||
<h2>Student at Pearson Electrotechnology Centre</h2>
|
||||
<h2>20 Years Old</h2>
|
||||
<!--<h2>Student at Pearson Electrotechnology Centre</h2>-->
|
||||
<h2>Living in Montreal, Quebec, Canada</h2>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -25,3 +25,20 @@ h2.header-text {
|
|||
margin: 10px 20px 10px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes astroFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes astroFadeOut {
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
12
vercel.json
Normal file
12
vercel.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/plausible/js/script.js",
|
||||
"destination": "https://stats.alee14.me/js/script.file-downloads.outbound-links.js"
|
||||
},
|
||||
{
|
||||
"source": "/plausible/api/event",
|
||||
"destination": "https://stats.alee14.me/api/event"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue