-
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
194e7e8
commit 16c5fc3
Showing
2 changed files
with
150 additions
and
0 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
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" /> | ||
<title>Japanese Word of the Day</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
:root { | ||
--background: #cf9c8d; | ||
--text: #532a29; | ||
--headline: #fbfbfb; | ||
} | ||
|
||
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(--text); | ||
text-decoration: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Japanese Word of the Day</h1> | ||
<a id="back" {{back_href}}><</a> | ||
<main> | ||
<p id="kanji">上</p> | ||
<p id="hiragana">うえ</p> | ||
<p id="katakana">ウエ</p> | ||
<p id="romaji">ue</p> | ||
<p id="pronunciation">oo-ay</p> | ||
<p id="definition">above, on, up</p> | ||
<p id="part_of_speech">adverb, preposition</p> | ||
<div id="example"> | ||
<p id="sentence">本が机の上にあります。</p> | ||
<p id="sentence_romaji">Hon ga tsukue no ue ni arimasu.</p> | ||
<p id="sentence_translation">The book is on the table.</p> | ||
</div> | ||
</main> | ||
<a id="forward" {{forward_href}}>></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 |
---|---|---|
@@ -0,0 +1 @@ | ||
上 |