Skip to content

Commit 706d204

Browse files
feat(styles): UI update
1 parent c6e210d commit 706d204

File tree

2 files changed

+46
-48
lines changed

2 files changed

+46
-48
lines changed

www/index.html

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<img src="https://raw.githubusercontent.com/sebastianjnuwu/app/refs/heads/android/android/app/src/main/res/drawable/splash_screen.png" alt="splash-screen" class="icon mb-5">
2121
<h1>Click...</h1>
2222
</splash-screen>
23-
24-
<ui>
25-
26-
</ui>
2723

2824
<script src="./src/js/main.js" defer></script>
2925
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>

www/src/styles/css/ui.css

+46-44
Original file line numberDiff line numberDiff line change
@@ -6,63 +6,65 @@
66

77
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
88

9+
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
10+
911
:root {
1012
--layout: #fffbde;
11-
--text-color: #333;
13+
--layout-dark: #fbf0c1;
14+
--text-color: #fdd388;
15+
--text-color-dark: #7c3d18;
1216
}
1317

14-
.ui-cookie {
18+
*,
19+
*:before,
20+
*:after {
21+
margin: 0;
22+
padding: 0;
23+
box-sizing: border-box;
24+
}
25+
26+
body {
1527
padding: 0;
1628
margin: 0;
17-
font-family: Arial, sans-serif;
18-
font-size: 14px;
19-
color: var(--text-color);
20-
background-color: var(--layout);
29+
width: 100%;
30+
height: 100vh;
31+
display: flex;
32+
flex-direction: column;
33+
background: linear-gradient(to bottom, var(--layout), var(--layout-dark));
2134
}
2235

2336
.ui-cookie splash-screen .icon {
24-
width: 15rem;
25-
animation: splash-screen 2s infinite ease-in-out;
37+
width: 15rem;
38+
animation: splash-screen 2s infinite ease-in-out;
2639
}
2740

2841
.ui-cookie splash-screen h1 {
29-
font-family: "Press Start 2P", cursive;
30-
text-align: center;
31-
font-size: 1.5rem;
32-
color: #fdd388;
33-
font-weight: bold;
34-
text-shadow: 1px 1px #7c3d18;
35-
cursor: pointer;
36-
animation: reveal forwards ease-out;
37-
}
38-
39-
@keyframes reveal {
40-
0% {
41-
opacity: 0;
42-
transform: translateY(-20px);
43-
}
44-
100% {
45-
opacity: 1;
46-
transform: translateY(0);
47-
}
42+
font-family: "Press Start 2P", cursive;
43+
text-align: center;
44+
font-size: 1.5rem;
45+
color: var(--text-color);
46+
font-weight: bold;
47+
text-shadow: 1px 1px var(--text-color-dark);
48+
cursor: pointer;
49+
animation: reveal forwards ease-out;
4850
}
4951

5052
@keyframes splash-screen {
51-
0%,
52-
100% {
53-
transform: translateY(0);
54-
opacity: 1;
55-
}
56-
25% {
57-
transform: translateY(-8px);
58-
opacity: 0.8;
59-
}
60-
50% {
61-
transform: translateY(-15px);
62-
opacity: 1;
63-
}
64-
75% {
65-
transform: translateY(-8px);
66-
opacity: 0.8;
67-
}
53+
0%,
54+
100% {
55+
transform: translateY(0);
56+
opacity: 1;
57+
}
58+
25% {
59+
transform: translateY(-8px);
60+
opacity: 0.8;
61+
}
62+
50% {
63+
transform: translateY(-15px);
64+
opacity: 1;
65+
}
66+
75% {
67+
transform: translateY(-8px);
68+
opacity: 0.8;
69+
}
6870
}

0 commit comments

Comments
 (0)