Compare commits
No commits in common. "819bd91231f997bf365653286fc03f4e6f7fa51a" and "c7b86e53ae411a47c356584cd9b06c95d48fc9eb" have entirely different histories.
819bd91231
...
c7b86e53ae
6 changed files with 17 additions and 21 deletions
|
@ -16,7 +16,7 @@
|
|||
"@astrojs/node": "^9.2.1",
|
||||
"@astrojs/rss": "^4.0.1",
|
||||
"@astrojs/sitemap": "^3.3.1",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.2.5",
|
||||
"@fontsource/space-mono": "^5.2.5",
|
||||
"astro": "^5.2.5",
|
||||
"fuse.js": "^7.0.0",
|
||||
"sharp": "^0.34.1",
|
||||
|
|
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
|
@ -23,7 +23,7 @@ importers:
|
|||
'@astrojs/sitemap':
|
||||
specifier: ^3.3.1
|
||||
version: 3.3.1
|
||||
'@fontsource-variable/jetbrains-mono':
|
||||
'@fontsource/space-mono':
|
||||
specifier: ^5.2.5
|
||||
version: 5.2.5
|
||||
astro:
|
||||
|
@ -548,8 +548,8 @@ packages:
|
|||
resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
'@fontsource-variable/jetbrains-mono@5.2.5':
|
||||
resolution: {integrity: sha512-G3sN1xq1moZd0JL+hFaA4MEdsiQS+JXC/z7m+EqA5/Fzn5CQlXGUaaNKFGQdDsFuLTnCfW0KOOSWHjygNfjEPw==}
|
||||
'@fontsource/space-mono@5.2.5':
|
||||
resolution: {integrity: sha512-yFU6K17ko4LEDHl5554n6mCrmDbuc2xYGCZZkCRpAvRtCaJisUjxFdDdph2d2hiIElaiMlinmkmV8IWlbQCMJA==}
|
||||
|
||||
'@hapi/hoek@9.3.0':
|
||||
resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==}
|
||||
|
@ -3755,7 +3755,7 @@ snapshots:
|
|||
|
||||
'@fastify/busboy@2.1.1': {}
|
||||
|
||||
'@fontsource-variable/jetbrains-mono@5.2.5': {}
|
||||
'@fontsource/space-mono@5.2.5': {}
|
||||
|
||||
'@hapi/hoek@9.3.0': {}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" }
|
|||
</div>
|
||||
|
||||
<nav class="nav">
|
||||
<a href="/" class="home">~</a>
|
||||
<a href="/">Home</a>
|
||||
<a href="/blog">Blog</a>
|
||||
{navBarItems.map((item) => <a href={item.link}>{item.text}</a>)}
|
||||
</nav>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
|
||||
const notFoundPath = Astro.url.pathname
|
||||
const url = Astro.url.pathname
|
||||
---
|
||||
|
||||
<Layout title="404" description="Page not found">
|
||||
<h1 class="title">command not found.</h1>
|
||||
|
||||
<div class="content">
|
||||
<p class="typewriter">sh: <span class="path">~{notFoundPath}</span>: command not found.</p>
|
||||
<p class="typewriter">sh: <span class="path">~{url}</span>: command not found.</p>
|
||||
|
||||
<div style="margin-top: 2rem;">
|
||||
<span class="command">help</span>
|
||||
|
|
|
@ -17,7 +17,7 @@ posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDat
|
|||
<div style="margin-top: 1rem; margin-left: 1rem;">
|
||||
{posts.map((post) => (
|
||||
<p>
|
||||
<span style="color: #d8d8d8">{new Date(post.data.pubDate).toISOString().split('T')[0]}</span>
|
||||
<span style="color: #4c566a">{new Date(post.data.pubDate).toISOString().split('T')[0]}</span>
|
||||
<a href={`/post/${post.slug}`}>{post.data.title}</a>
|
||||
</p>
|
||||
))}
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
@import url(@fontsource-variable/jetbrains-mono);
|
||||
@import url(@fontsource/space-mono);
|
||||
/* Global Styles for Terminal Blog */
|
||||
:root {
|
||||
/* Dark theme (default) */
|
||||
--bg-color: #2e3440;
|
||||
--text-color: #d8dee9;
|
||||
--footer-text-color: #c8c8c8;
|
||||
--accent-color: #90a8c0;
|
||||
--border-color: #3b4351;
|
||||
--header-color: #eceff4;
|
||||
--terminal-green: #a3be8c;
|
||||
--terminal-yellow: #ebcb8b;
|
||||
--terminal-red: #bf616a;
|
||||
--font-mono: 'JetBrains Mono',ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
--font-mono: 'Space Mono',ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
}
|
||||
/* Light theme */
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme="dark"]) {
|
||||
--bg-color: #eceff4;
|
||||
--text-color: #2e3440;
|
||||
--footer-text-color: #4c566a;
|
||||
--accent-color: #486090;
|
||||
--border-color: #d1d5db;
|
||||
--header-color: #2e3440;
|
||||
|
@ -31,7 +29,6 @@
|
|||
:root[data-theme="light"] {
|
||||
--bg-color: #eceff4;
|
||||
--text-color: #2e3440;
|
||||
--footer-text-color: #4c566a;
|
||||
--accent-color: #486090;
|
||||
--border-color: #d1d5db;
|
||||
--header-color: #2e3440;
|
||||
|
@ -93,7 +90,8 @@ main {
|
|||
}
|
||||
|
||||
.content-box {
|
||||
border: 1px solid var(--accent-color);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 4px;
|
||||
padding: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
transition: border-color 0.3s ease;
|
||||
|
@ -106,16 +104,14 @@ main {
|
|||
}
|
||||
|
||||
.nav a {
|
||||
font-size: 1rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.nav a::before {
|
||||
content: "./";
|
||||
opacity: 0.7;
|
||||
}
|
||||
.nav a.home::before{
|
||||
content: "";
|
||||
}
|
||||
|
||||
.cursor {
|
||||
display: inline-block;
|
||||
width: 0.6em;
|
||||
|
@ -134,8 +130,8 @@ main {
|
|||
text-align: center;
|
||||
padding: 2rem 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 300;
|
||||
color: var(--footer-text-color);
|
||||
color: var(--text-color);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.footer svg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue