Skip to content

Commit

Permalink
Created new static page
Browse files Browse the repository at this point in the history
  • Loading branch information
captainpainway authored and github-actions[bot] committed Mar 30, 2024
1 parent 11fddbf commit 21d0724
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 11 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,19 @@
</head>
<body>
<h1>Japanese Word of the Day</h1>
<a id="back" href="/pages/学校.html"><</a>
<a id="back" href="/pages/.html"><</a>
<main>
<p id="kanji"></p>
<p id="hiragana">ひざ</p>
<p id="katakana">ヒザ</p>
<p id="romaji">hiza</p>
<p id="pronunciation">hee-zah</p>
<p id="definition">knee</p>
<p id="kanji">蜜柑</p>
<p id="hiragana">みかん</p>
<p id="katakana">ミカン</p>
<p id="romaji">mikan</p>
<p id="pronunciation">mee-kaan</p>
<p id="definition">mandarin orange</p>
<p id="part_of_speech">noun</p>
<div id="example">
<p id="sentence">私はひざを痛めています</p>
<p id="sentence_romaji">Watashi wa hiza wo itamete imasu.</p>
<p id="sentence_translation">I hurt my knee.</p>
<p id="sentence">私はみかんが好きです</p>
<p id="sentence_romaji">Watashi wa mikan ga sukidesu.</p>
<p id="sentence_translation">I like mandarin oranges.</p>
</div>
</main>
<a id="forward" {{forward_href}}>></a>
Expand Down
2 changes: 1 addition & 1 deletion pages/学校.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h1>Japanese Word of the Day</h1>
<p id="sentence_translation">I go to school.</p>
</div>
</main>
<a id="forward" href="/index.html">></a>
<a id="forward" href="/pages/膝.html">></a>
<div id="github">
<span>Made by <a href="https://mary.codes">Mary Knize</a>.</span>
<a href="https://github.com/captainpainway/japanese_word_of_the_day">
Expand Down
149 changes: 149 additions & 0 deletions pages/膝.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Japanese word of the day generated by Google AI Studio and Gemini Pro AI" />
<title>Japanese Word of the Day</title>
<style>
:root {
--background: #f4f3f2;
--text: #333333;
--headline: #296e4a;
}

body {
background-color: var(--background);
color: var(--text);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100dvh;
font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
text-align: center;
}

main {
width: min(800px, 100vw);
padding: 1rem;
}

h1 {
position: absolute;
top: 10px;
left: 10px;
font-size: 1.4rem;
font-weight: 700;
margin: 0;
}

#github {
position: absolute;
bottom: 10px;
right: 10px;
color: var(--text);
}

#github a {
color: var(--text);
}

#github img {
width: 40px;
height: 40px;
}

#kanji, #hiragana, #katakana {
font-weight: 700;
margin: 0;
color: var(--headline);
}

#kanji {
font-size: 6rem;
}

#hiragana, #katakana {
font-size: 3rem;
}

#romaji {
font-size: 1.5rem;
margin-top: 0.5rem;
margin-bottom: 0.2rem;
}

#pronunciation {
font-size: 0.75rem;
margin: 0;
}

#definition {
font-size: 2rem;
margin: 1.5rem 0 0 0;
text-transform: capitalize;
}

#part_of_speech {
font-size: 0.8rem;
text-transform: uppercase;
font-weight: 700;
margin: 0;
}

#example {
border-top: 1px solid var(--text);
margin: 1.5rem 0;
}

#sentence {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

#sentence_romaji {
font-size: 0.75rem;
text-align: center;
}

a:not([href]) {
visibility: hidden;
}

#back, #forward {
font-size: 3rem;
padding: 0.5rem 1rem;
cursor: pointer;
color: var(--headline);
text-decoration: none;
}
</style>
</head>
<body>
<h1>Japanese Word of the Day</h1>
<a id="back" href="/pages/学校.html"><</a>
<main>
<p id="kanji"></p>
<p id="hiragana">ひざ</p>
<p id="katakana">ヒザ</p>
<p id="romaji">hiza</p>
<p id="pronunciation">hee-zah</p>
<p id="definition">knee</p>
<p id="part_of_speech">noun</p>
<div id="example">
<p id="sentence">私はひざを痛めています。</p>
<p id="sentence_romaji">Watashi wa hiza wo itamete imasu.</p>
<p id="sentence_translation">I hurt my knee.</p>
</div>
</main>
<a id="forward" href="/index.html">></a>
<div id="github">
<span>Made by <a href="https://mary.codes">Mary Knize</a>.</span>
<a href="https://github.com/captainpainway/japanese_word_of_the_day">
<img src="/github-mark.svg" alt="GitHub">
</a>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions past_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@
学校
蜜柑

0 comments on commit 21d0724

Please sign in to comment.