Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import vercel from "@astrojs/vercel/serverless";

import vercel from "@astrojs/vercel";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), icon(), react(), mdx()],
output: "hybrid",
adapter: vercel()
});
integrations: [tailwind(), icon(), react(), mdx()],
adapter: vercel()
});
84 changes: 42 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "astro-test",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.1",
"@astrojs/mdx": "^3.1.3",
"@astrojs/react": "^3.6.1",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.7.2",
"@fontsource-variable/dm-sans": "^5.0.6",
"@formkit/auto-animate": "^0.8.2",
"@iconify-json/fa6-brands": "^1.2.5",
"@iconify-json/mdi": "^1.2.2",
"@octokit/rest": "^22.0.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/whois-json": "^2.0.4",
"astro": "^4.13.0",
"astro-icon": "^1.1.5",
"bluesky-comments": "^0.9.0",
"react": "^18.3.1",
"react-confetti": "^6.1.0",
"react-dom": "^18.3.1",
"react-tooltip": "^5.28.0",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"use-lanyard": "^1.7.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwind-scrollbar": "^3.1.0"
}
"name": "dsns.dev",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.6",
"@astrojs/mdx": "^4.3.13",
"@astrojs/react": "^4.4.2",
"@astrojs/tailwind": "^6.0.2",
"@astrojs/vercel": "^9.0.4",
"@fontsource-variable/dm-sans": "^5.0.6",
"@formkit/auto-animate": "^0.8.2",
"@iconify-json/fa6-brands": "^1.2.5",
"@iconify-json/mdi": "^1.2.2",
"@octokit/rest": "^22.0.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/whois-json": "^2.0.4",
"astro": "^5.16.11",
"astro-icon": "^1.1.5",
"bluesky-comments": "^0.9.0",
"react": "^18.3.1",
"react-confetti": "^6.1.0",
"react-dom": "^18.3.1",
"react-tooltip": "^5.28.0",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"use-lanyard": "^1.7.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwind-scrollbar": "^3.1.0"
}
}
2 changes: 1 addition & 1 deletion src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import NavButton from "./NavButton.astro";
import SocialButton from "./SocialButton.astro";
---

<nav class="mb-10 flex flex-col sm:flex-row items-center justify-between rounded-xl bg-viola-100 px-10 py-6 shadow-lg gap-2">
<nav class="mb-10 flex flex-col items-center justify-between gap-2 rounded-xl bg-viola-100 px-10 py-6 shadow-lg sm:flex-row">
<a class="flex flex-row items-center gap-5" href="/">
<Image src={profilePicture} alt="kirby" class="rounded-full" width={48} loading={"eager"} />
<h1 class="text-3xl font-bold">dsns.dev</h1>
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const { title, description } = Astro.props;
---

<!doctype html>
<html lang="en" class="overflow-y-scroll overflow-x-hidden scrollbar scrollbar-track-viola-200 scrollbar-thumb-viola-400 scrollbar-track-rounded-full scrollbar-thumb-rounded-full scrollbar-w-2">
<html lang="en" class="overflow-x-hidden overflow-y-scroll scrollbar scrollbar-track-viola-200 scrollbar-thumb-viola-400 scrollbar-track-rounded-full scrollbar-thumb-rounded-full scrollbar-w-2">
<head>
<meta charset="UTF-8" />
<meta property="og:type" content="website" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta name="theme-color" content="#e2bfcd">
<meta name="theme-color" content="#e2bfcd" />
<meta property="og:url" content="https://astro.dsns.dev" />
<meta property="og:image" content="https://astro.dsns.dev/kirby.png" />
<meta name="description" content={description} />
Expand Down
1 change: 0 additions & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Layout from "../layouts/Layout.astro";
<p class="mb-10 text-gray-600">The page you're looking for doesn’t exist. It may have been moved or never existed.</p>

<div class="flex flex-col items-center gap-6 md:flex-row md:justify-center">
<!-- Home Card -->
<a href="/" class="flex flex-col items-start rounded-xl border border-viola-300 bg-white p-6 text-left shadow-md transition hover:bg-viola-50 hover:shadow-xl">
<div class="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-viola-100 text-viola-600 transition group-hover:bg-viola-200">
<Icon name="mdi:home" class="h-6 w-6" />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const { Content } = await post.render();
---

<Layout title={title} description={description}>
<div class="container px-8 md:px-16 lg:px-32 xl:px-32 2xl:px-48 mx-auto flex flex-col gap-5">
<div class="font-bold text-2xl mb-6 flex flex-row justify-between">
<div class="container mx-auto flex flex-col gap-5 px-8 md:px-16 lg:px-32 xl:px-32 2xl:px-48">
<div class="mb-6 flex flex-row justify-between text-2xl font-bold">
<h1>{title}</h1>
<p>{date.toLocaleDateString()}</p>
</div>
Expand Down
28 changes: 15 additions & 13 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ const allBlogPosts = await getCollection("posts");
---

<Layout title="Blog" description="Explore my blog posts.">
<div class="container px-1 md:px-16 lg:px-32 xl:px-32 2xl:px-48 mx-auto flex flex-col gap-10">
<div class="bg-viola-100 rounded-xl p-8 flex flex-col gap-5">
<div class="container mx-auto flex flex-col gap-10 px-1 md:px-16 lg:px-32 xl:px-32 2xl:px-48">
<div class="flex flex-col gap-5 rounded-xl bg-viola-100 p-8">
<h1 class="text-3xl font-bold">Blog</h1>
{
allBlogPosts.sort((a, b) => {
return new Date(b.data.date).getTime() - new Date(a.data.date).getTime();
}).map((post) => (
<a href={`/blog/${post.slug}`} class="bg-viola-50 rounded-lg p-8 m-2 shadow-lg">
<div class="flex flex-row justify-between items-center mb-4">
<span class="text-lg font-bold">{post.data.title}</span>
<span>{post.data.date.toLocaleDateString()}</span>
</div>
allBlogPosts
.sort((a, b) => {
return new Date(b.data.date).getTime() - new Date(a.data.date).getTime();
})
.map((post) => (
<a href={`/blog/${post.slug}`} class="m-2 rounded-lg bg-viola-50 p-8 shadow-lg">
<div class="mb-4 flex flex-row items-center justify-between">
<span class="text-lg font-bold">{post.data.title}</span>
<span>{post.data.date.toLocaleDateString()}</span>
</div>

<p>{post.data.description}</p>
</a>
))
<p>{post.data.description}</p>
</a>
))
}
</div>
</div>
Expand Down
Loading