Skip to content

Commit d19a751

Browse files
committed
feat: add global CSS for consistent styling and scrollbar customization
- Introduced a new global CSS file to define color variables for consistent theming across the application. - Customized scrollbar styles to enhance user experience and visual appeal.
1 parent 7595654 commit d19a751

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

app/page.global.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:root {
2+
--color-paper: #f7f5e8;
3+
--color-pink: #f9d4e1;
4+
--color-teal: #63bac7;
5+
}
6+
7+
::-webkit-scrollbar {
8+
width: 4px;
9+
}
10+
::-webkit-scrollbar-track {
11+
background: var(--color-paper);
12+
}
13+
::-webkit-scrollbar-thumb {
14+
background: var(--color-pink);
15+
border-radius: 10px;
16+
border: 3px solid var(--color-paper);
17+
}
18+

app/page.module.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
.Root {
2-
--color-paper: #f7f5e8;
3-
--color-pink: #f9d4e1;
4-
--color-teal: #63bac7;
5-
}
6-
7-
/* ===== Fixed Background ===== */
8-
91
.fixedBackground {
102
position: fixed;
113
background-color: var(--color-pink);

app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import portraitImg from "./_assets/images/momomochi-portrait.jpg";
66
import peachIconSvg from "./_assets/images/peach-icon.svg";
77
import topImg from "./_assets/images/トップ画像.png";
88
import { siteConfig } from "./_site.config";
9+
import "./page.global.css"
910
import styles from "./page.module.css";
1011

1112
const WAVE_W = 1000;
@@ -45,7 +46,7 @@ function buildScallopedArcPath() {
4546
}
4647

4748
d += " Z";
48-
return { d, height: Math.ceil(maxY) };
49+
return { d, height: Math.ceil(maxY) - 2 };
4950
}
5051

5152
const wavePath = buildScallopedArcPath();

0 commit comments

Comments
 (0)