Skip to content

Commit

Permalink
update and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yamader committed May 18, 2024
1 parent 93fb09e commit 24f1e42
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 54 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "yamad.me",
"version": "2.0.4",
"dependencies": {
"@builder.io/qwik": "1.5.3",
"@builder.io/qwik": "1.5.4",
"katex": "0.16.10",
"qwik-transition": "0.0.7",
"svelte": "4.2.15"
"svelte": "4.2.17"
},
"devDependencies": {
"@astrojs/check": "0.5.10",
"@astrojs/mdx": "2.3.1",
"@astrojs/check": "0.7.0",
"@astrojs/mdx": "3.0.0",
"@astrojs/svelte": "5.4.0",
"@qwikdev/astro": "0.5.15",
"astro": "4.7.1",
"astro": "4.8.6",
"badgen": "3.2.3",
"js-beautify": "1.15.1",
"lightningcss": "1.24.1",
"lightningcss": "1.25.0",
"prettier": "3.2.5",
"prettier-plugin-astro": "0.13.0",
"prettier-plugin-organize-imports": "3.2.4",
Expand Down
59 changes: 35 additions & 24 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ const links = [
]
---

<!-- prettier-ignore -->
<nav>{
links.map(({ href, name }) => {
const active = href == "/"
? Astro.url.pathname == href
: Astro.url.pathname.startsWith(href)
return <a href={href} class:list={[active && "active"]}>{name}</a>
})
}</nav>
<nav>
<ul>
{
links.map(({ href, name }) => {
const active =
href == "/" ? Astro.url.pathname == href : Astro.url.pathname.startsWith(href)
// prettier-ignore
return <li class:list={[active && "active"]}><a href={href}>{name}</a></li>
})
}
</ul>
</nav>

{
Astro.url.pathname.split("/").length > 3 && (
Expand All @@ -24,35 +27,43 @@ const links = [
}

<style>
nav {
ul {
display: flex;
background: #111;
margin: 0;
padding: 0;
}

li {
display: block;
width: 100%;
border-bottom: 1px solid #444;
font-size: 0.9rem;

&.active {
border-bottom: 1px solid transparent;
font-weight: bold;
}

& + li {
border-left: 1px solid #333;
}
}

a {
display: flex;
width: 100%;
padding: 0.3rem 0;
align-items: center;
justify-content: center;
padding: 0.3rem 0 0.35rem;
border-bottom: 1px solid #444;
color: currentColor;
font-size: 0.9rem;
background: #111;
color: white; /* currentColor */
text-decoration: none;

&:hover {
background: #181818;
}

&.active {
.active & {
background: #222;
color: white;
border-bottom: 1px solid transparent;
font-weight: bold;
}
}

a + a {
border-left: 1px solid #333;
}
</style>
4 changes: 2 additions & 2 deletions src/components/YO.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
</script>

<p>
西暦<input type="number" class="form" bind:value />年において,山Dは{#if delta < 0}
西暦<input type="number" bind:value />年において,山Dは{#if delta < 0}
まだ生まれていません。{:else}<strong>{delta}</strong>歳です。{/if}{#if delta >= 200}
おそらく死んでいます。
{/if}
</p>

<style>
.form {
input {
width: 6em;
margin: 0 0.3em;
}
Expand Down
11 changes: 6 additions & 5 deletions src/components/badges/GitHub.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import "./style.css"
async function updated() {
const fallback = "9315-19-19T11:45:14Z"
if (import.meta.env.DEV) return fallback
const token = import.meta.env.GITHUB_TOKEN
if (!token) return fallback
const res = await fetch(`https://api.github.com/repos/${repo}/commits?author=yamader`, {
headers: { Authorization: "Bearer " + import.meta.env.GITHUB_TOKEN },
headers: { Authorization: "Bearer " + token },
})
if (!res.ok) return fallback
const body = await res.json()
try {
const body = await res.json()
return body[0].commit.author.date
} catch {
console.error(body)
} catch (e) {
console.error(e)
return fallback
}
}
Expand Down
13 changes: 11 additions & 2 deletions src/content/data/anime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- WORKING!!
- WORKING!!!
- Wake Up,Girls!
- ∀ガンダム
- あそびあそばせ
- あっちこっち
- あの夏で待ってる
Expand Down Expand Up @@ -85,10 +86,13 @@
- 【懺・】さよなら絶望先生
- 【懺・】さよなら絶望先生 番外地
- しょうたいむ!~歌のお姉さんだってしたい
- ずんだホライずん
- たまこまーけっと:
- たまこまーけっと
- たまこラブストーリー
- だがしかし
- だがしかし:
- だがしかし
- だがしかし2
- てーきゅう:
- てーきゅう
- てーきゅう 2期
Expand Down Expand Up @@ -298,6 +302,7 @@
- 吸血鬼すぐ死ぬ
- 呪術廻戦:
- 呪術廻戦
- 呪術廻戦 0
- 呪術廻戦 懐玉・玉折/渋谷事変(第2期)
- 四畳半神話大系
- 坂本ですが?
Expand Down Expand Up @@ -348,7 +353,10 @@
- 桜Trick
- 楽園追放 -Expelled from Paradise-
- 機動戦士ガンダム 水星の魔女
- 機動戦士ガンダム00 ファーストシーズン
- 機動戦士ガンダム00:
- 機動戦士ガンダム00 ファーストシーズン
- 機動戦士ガンダム00 セカンドシーズン
- 機動戦士ガンダム00 -A wakening of the Trailblazer-
- 機動警察パトレイバー アーリーデイズ
- 沈黙の艦隊:
- 沈黙の艦隊
Expand Down Expand Up @@ -419,6 +427,7 @@
- 響け!ユーフォニアム2
- 響け!ユーフォニアム~誓いのフィナーレ~
- 響け!ユーフォニアム3
- 頭文字[イニシャル]D First Stage
- 風が吹くとき
- 鬼滅の刃:
- 鬼滅の刃 無限列車編
Expand Down
1 change: 1 addition & 0 deletions src/content/data/movie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- グリーンランド―地球最後の2日間
- コマンドー
- コリーニ事件
- ゴジラ-1.0
- シベリアン・スナイパー
- シャーロック・ホームズ:
- シャーロック・ホームズ
Expand Down
34 changes: 19 additions & 15 deletions src/pages/about/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ import YO from "~/components/YO.svelte"

## 好物

- ガジェット : スマホやジャンクPC等が好物
- ラーメン : スープが血液を置き換えつつある
- きらら : まちカドまぞく・ぬるめたを推している
- 深夜アニメ : エヴァンゲリオンから入った
- 邦楽 : サカナクション・Perfume・赤い公園・ねごとなど
- 甘いもの : 白くてなめらかなプリンが特に好き
- ガジェット: スマホやジャンクPC等が好物
- きらら: まちカドまぞく・ぬるめたを推している
- 深夜アニメ: エヴァンゲリオンから入った
- 邦楽: サカナクション・Perfume・赤い公園・ねごとなど
- ラーメン: スープが血液を置き換えつつある
- 甘いもの: 白くてなめらかなプリンが特に好き

## 宗派

- ディストロ : Gentoo (glibc + LLVM + OpenRC)
- デスクトップ環境 : awesome / fcitx-skk
- グラボ : NVIDIA
- エディタ : Nvim / SublimeText / JetBrains
- キーボード : HHKB
| | |
|:----------------- |:------------------------------- |
| ディストロ | Gentoo (glibc & LLVM & OpenRC) |
| デスクトップ環境 | awesome & fcitx-skk |
| 仮想端末 | Alacritty |
| エディタ | Nvim / SublimeText / JetBrains |
| キーボード | HHKB |
| パソコン部品 | Ryzen & GeForce |

## プログラミング言語

Expand Down Expand Up @@ -69,10 +72,11 @@ import YO from "~/components/YO.svelte"

## 技術

- Btrfs : いろいろ便利な機能があって重宝している
- GnuPG : 適当に運用している
- $\LaTeX$ : Typstに移行してからあまり使っていない
- Verilog : 趣味ではこれを使う
- Btrfs: いろいろ便利な機能があって重宝している
- GnuPG: 適当に運用している
- $\LaTeX$: 年賀状とかでは使う
- Typst: table環境さえどうにかなれば……
- Verilog / VHDL: 学校で習った程度

## マシン

Expand Down

0 comments on commit 24f1e42

Please sign in to comment.