-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
丫丫的刀了
committed
Oct 27, 2024
1 parent
da10892
commit 5f3444e
Showing
27 changed files
with
5,971 additions
and
26,467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
<div class=" bg-center bg-no-repeat bg-cover fixed top-0 -z-10 w-full h-full bg-sitebg"></div> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
import { ViewTransitions } from 'astro:transitions'; | ||
const { title } = Astro.props; | ||
--- | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>{title}</title> | ||
<ViewTransitions /> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
import Navigation from '../Astro/Navigation.astro' | ||
--- | ||
|
||
<header> | ||
<nav> | ||
<Navigation/> | ||
</nav> | ||
</header> |
2 changes: 1 addition & 1 deletion
2
src/components/Navigation.astro → src/components/Astro/Navigation.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/// <reference path="../.astro/db-types.d.ts" /> | ||
/// <reference path="../.astro/types.d.ts" /> | ||
/// <reference types="astro/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,35 @@ | ||
--- | ||
import Header from "../components/Header.astro"; | ||
import Footer from "../components/Footer.astro"; | ||
import Head from "../components/Astro/Head.astro"; | ||
import Background from "../components/Astro/Background.astro"; | ||
import Header from "../components/Astro/Header.astro"; | ||
import Footer from "../components/Astro/Footer.astro"; | ||
import { ViewTransitions } from 'astro:transitions'; | ||
import '../styles/global.css' | ||
const { pageTitle } = Astro.props | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html lang="zh-cn"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>{pageTitle}</title> | ||
</head> | ||
<Head /> | ||
<body> | ||
<Background /> | ||
<script type="module" src="/src/scripts/main.js"></script> | ||
<Header /> | ||
<h1>{pageTitle}</h1> | ||
<slot /> | ||
<Footer /> | ||
<script> | ||
import "../scripts/menu.js"; | ||
</script> | ||
<div class="container mx-auto"> | ||
<div class="flex h-screen shadow-gray-600 py-4"> | ||
<div class="flex-none py-2 backdrop-blur-md bg-white/5 rounded-l-lg w-[215px]" style="box-shadow: 20px 20px 20px 20px rgba(0, 0, 0, 0.1);"> | ||
<p>可被其他模版覆盖的左侧内容</p> | ||
</div> | ||
<div id="content" class="flex flex-col grow backdrop-blur-md bg-white/0 rounded-r-lg" style="box-shadow: 20px 20px 20px 20px rgba(0, 0, 0, 0.1);"> | ||
<div class="overflow-scroll flex"> | ||
<div class="grow"> | ||
<slot></slot> | ||
</div> | ||
<div class="w-[215px] h-full mx-auto overflow-scroll"> | ||
<p>请使用 block "rightSideBar" 定义右侧内容</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<style is:global> | ||
:root { | ||
--accent: 136, 58, 234; | ||
--accent-light: 224, 204, 250; | ||
--accent-dark: 49, 10, 101; | ||
--accent-gradient: linear-gradient( | ||
45deg, | ||
rgb(var(--accent)), | ||
rgb(var(--accent-light)) 30%, | ||
white 60% | ||
); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
import BaseLayout from './BaseLayout.astro'; | ||
const { frontmatter } = Astro.props; | ||
--- | ||
<BaseLayout pageTitle={frontmatter.title}> | ||
<p><em>{frontmatter.description}</em></p> | ||
<p>{frontmatter.pubDate.toString().slice(0,10)}</p> | ||
|
||
<p>Written by: {frontmatter.author}</p> | ||
|
||
|
||
<div class="flex"> | ||
{frontmatter.tags.map((tag) => ( | ||
<p class="m-1 border-[1px] border-x-cyan-100 rounded-md px-2"><a href={`/tags/${tag}`}>{tag}</a></p> | ||
))} | ||
</div> | ||
|
||
<slot /> | ||
</BaseLayout> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
layout: '../../../layouts/MarkdownLayout.astro' | ||
title: 'Astro 的开始之旅' | ||
pubDate: 2024-10-27 | ||
description: '这是将记录 Astro 环境搭建、使用、以及遇到的问题的学习笔记。' | ||
author: 'Astro 学习者' | ||
tags: ["astro", "blogging", "learning in public"] | ||
--- | ||
|
||
# Hello, Astro! | ||
|
||
这是我的第一篇文章,欢迎来到 Astro 的世界! | ||
|
||
## 搭建 Astro 环境 | ||
|
||
> 1. 安装 Node.js `v18.17.1` 或 `20.3.0` 或更高版本。不支持 ~~v19~~ | ||
> 2. 编辑器:推荐使用 VS Code 并安装 Astro 的官方扩展 | ||
> 3. 安装 Astro CLI `npm install -g astro` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.debug('加载主脚本') |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.