-
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
1 parent
c8dec0b
commit 2b0bdff
Showing
4 changed files
with
162 additions
and
12 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
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,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">nagai</p> | ||
<p id="pronunciation">na-ga-i</p> | ||
<p id="definition">long</p> | ||
<p id="part_of_speech">adjective</p> | ||
<div id="example"> | ||
<p id="sentence">このペンはながいです。</p> | ||
<p id="sentence_romaji">Kono pen wa nagai desu.</p> | ||
<p id="sentence_translation">This pen is long.</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> |
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 |
---|---|---|
|
@@ -97,3 +97,4 @@ null | |
null | ||
桜 | ||
長い | ||
ドア |