Skip to content

Commit c5d7e2c

Browse files
authored
landing revamp (#108)
1 parent 0883d0c commit c5d7e2c

File tree

9 files changed

+918
-642
lines changed

9 files changed

+918
-642
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.cache
22
.DS_Store
3-
.venv
3+
.venv
4+
.claude

docs/assets/hero-bg.jpg

666 KB
Loading

docs/stylesheets/homepage.css

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
#homepage-title-wrapper {
2-
text-align: center;
3-
margin-bottom: 10px;
4-
margin-top: 10px;
5-
font-size: 200%;
6-
font-weight: 700;
7-
}
8-
9-
#homepage-title {
10-
background: linear-gradient(to right, #bc00ff, #00eeff);
11-
background-clip: text;
12-
width: fit-content;
13-
height: fit-content;
14-
color: transparent;
15-
}
16-
17-
[data-md-color-scheme="slate"] {
18-
#homepage-title {
19-
background: linear-gradient(to right, #c013ff, #00eeff);
20-
background-clip: text;
21-
color: transparent;
22-
}
23-
}
1+
/* Legacy homepage styles removed — all homepage styling now lives in overrides/styles.css */

overrides/assets/hero-bg-2.jpg

1.28 MB
Loading

overrides/assets/hero-bg.jpg

666 KB
Loading
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/*
2+
This font is kindly shared by Bint or caoimhe.00 on Discord.
3+
You can purchase the below fonts, or swap them with other fonts available in your system.
4+
If you have any issues with using the CSS, please contact us (Yomidevs) via our official Discord server.
5+
*/
6+
7+
/* --- Light Mode colours --- */
8+
:root {
9+
--background-color: #FEFBF6;
10+
--freq-dict-color: #ED9DB8;
11+
--pitch-dict-color: #925F9B;
12+
--dict-color: #765BA5;
13+
14+
/* main fonts */
15+
--gyousho-font: DF行書体 Pro-5, DFGyoSho Pro-5;
16+
--kyoukasho-font: DF教科書体 Std, DFKyoKaSho Pro-5;
17+
--kaisho-font: DF中楷書体 Pro-5, DFKaisho Pro-5;
18+
--mincho-font: ヒラギノ明朝 ProN;
19+
20+
21+
/* silly fonts */
22+
--tsukihime-font: FOT-テロップ明朝 Pro, FOT-TelopMin Pro;
23+
--kinbun-font: DF金文体 Std;
24+
--kinbun-like-font: FTT-ライラ;
25+
--fot-arc-font: FOT-アーク Std;
26+
--english-font: Baskerville;
27+
}
28+
29+
/* --- Dark Mode colours --- */
30+
:root[data-theme="dark"] {
31+
--background-color: #212228;
32+
--freq-dict-color: #BF8599;
33+
34+
.frequency-group-tag .tag-label {
35+
background: var(--freq-dict-color);
36+
}
37+
.frequency-group-tag .tag-body {
38+
--tag-color: var(--freq-dict-color);
39+
}
40+
}
41+
42+
/*-----------*/
43+
/*-- Fonts --*/
44+
/*-----------*/
45+
46+
/* --- Term --- */
47+
.headword-term {
48+
font-family: var(--gyousho-font);
49+
font-size: clamp(2rem, 10vw, 2.5rem);
50+
}
51+
52+
/* --- Furigana --- */
53+
.headword-reading {
54+
font-family: var(--kyoukasho-font);
55+
font-size: clamp(0.7rem, 3vw, 0.9rem);
56+
}
57+
58+
/* --- Frequency info --- */
59+
.frequency-group-tag .tag-label {
60+
background: var(--freq-dict-color);
61+
font-family: var(--kyoukasho-font);
62+
font-size: clamp(1rem, 4.2vw, 1.15rem);
63+
}
64+
65+
.frequency-group-tag .tag-body {
66+
--tag-color: var(--freq-dict-color);
67+
font-family: var(--tsukihime-font);
68+
font-size: clamp(0.85rem, 3.5vw, 1rem);
69+
}
70+
71+
/* --- Pitch --- */
72+
.pronunciation-group-tag-list.tag-list .tag-label {
73+
background: var(--pitch-dict-color);
74+
font-family: var(--kyoukasho-font);
75+
font-size: clamp(1rem, 3.5vw, 1.15rem);
76+
}
77+
78+
.pronunciation-representation-list {
79+
font-family: var(--kaisho-font);
80+
font-size: clamp(0.75rem, 3.5vw, 1rem);
81+
}
82+
83+
/* --- Dict name --- */
84+
.definition-tag-list.tag-list .tag-label {
85+
background: var(--dict-color);
86+
font-family: var(--kaisho-font);
87+
font-size: clamp(1rem, 4.2vw, 1.15rem);
88+
}
89+
90+
/* --- Grammar stuff --- */
91+
.inflection-rule-chains {
92+
font-family: var(--mincho-font);
93+
font-size: clamp(0.7rem, 3vw, 0.9rem);
94+
}
95+
96+
/* --- Definition --- */
97+
.gloss-list {
98+
font-family: var(--kaisho-font);
99+
font-size: clamp(1.1rem, 4vw, 1.3rem);
100+
}
101+
102+
/*---------------------------*/
103+
/*-- Dictionary Formatting --*/
104+
/*---------------------------*/
105+
106+
107+
108+
109+
/*-----------*/
110+
/*-- Other --*/
111+
/*-----------*/
112+
113+
/* --- Remove "Add reading" Button --- */
114+
button[title^="Add reading"] {
115+
display: none;
116+
}
117+
118+
/* --- Inflection Icon --- */
119+
.inflection-source-icon[data-inflection-source="algorithm"]::after { content: "🌸"; }
120+
-107 KB
Loading

0 commit comments

Comments
 (0)