Skip to content

Commit bd6c637

Browse files
committed
Added styling to static page
1 parent 9d977ad commit bd6c637

File tree

1 file changed

+101
-3
lines changed

1 file changed

+101
-3
lines changed

templates/static.html.twig

Lines changed: 101 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,102 @@
1-
<div class="container py-4">
2-
<h1>{{ title }}</h1>
3-
<p>{{ description|raw }}</p>
1+
<div class="container">
2+
<h1>{{ title }}</h1>
3+
<p>{{ description|raw }}</p>
44
</div>
5+
6+
<style>
7+
:root {
8+
--spacer-md: 1rem;
9+
--spacer-lg: calc(var(--spacer-md) * 2);
10+
--shadow-color: 240deg 27% 62%;
11+
--shadow-elevation-low:
12+
0.3px 0.3px 0.4px hsl(var(--shadow-color) / 0.34),
13+
0.4px 0.4px 0.6px -1.7px hsl(var(--shadow-color) / 0.28),
14+
0.9px 1px 1.3px -3.5px hsl(var(--shadow-color) / 0.21);
15+
--shadow-elevation-medium:
16+
0.3px 0.3px 0.4px hsl(var(--shadow-color) / 0.29),
17+
0.5px 0.6px 0.8px -0.9px hsl(var(--shadow-color) / 0.25),
18+
1px 1.2px 1.5px -1.7px hsl(var(--shadow-color) / 0.22),
19+
2.2px 2.6px 3.3px -2.6px hsl(var(--shadow-color) / 0.19),
20+
4.5px 5.2px 6.7px -3.5px hsl(var(--shadow-color) / 0.16);
21+
--shadow-elevation-high:
22+
0.3px 0.3px 0.4px hsl(var(--shadow-color) / 0.27),
23+
0.7px 0.8px 1px -0.4px hsl(var(--shadow-color) / 0.25),
24+
1.2px 1.4px 1.8px -0.8px hsl(var(--shadow-color) / 0.24),
25+
1.9px 2.2px 2.8px -1.2px hsl(var(--shadow-color) / 0.22),
26+
2.9px 3.4px 4.4px -1.6px hsl(var(--shadow-color) / 0.21),
27+
4.5px 5.2px 6.7px -1.9px hsl(var(--shadow-color) / 0.19),
28+
6.7px 7.8px 10px -2.3px hsl(var(--shadow-color) / 0.18),
29+
9.7px 11.3px 14.5px -2.7px hsl(var(--shadow-color) / 0.16),
30+
13.6px 16px 20.5px -3.1px hsl(var(--shadow-color) / 0.14),
31+
18.7px 21.9px 28.1px -3.5px hsl(var(--shadow-color) / 0.13);
32+
}
33+
*, *::before, *::after {
34+
box-sizing: border-box;
35+
}
36+
37+
* {
38+
margin: 0;
39+
}
40+
41+
@media (prefers-reduced-motion: no-preference) {
42+
html {
43+
interpolate-size: allow-keywords;
44+
}
45+
}
46+
47+
body {
48+
line-height: 1.5;
49+
-webkit-font-smoothing: antialiased;
50+
font-family: 'Roboto', sans-serif;
51+
background-color: ghostwhite;
52+
}
53+
54+
img, picture, video, canvas, svg {
55+
display: block;
56+
max-width: 100%;
57+
}
58+
59+
input, button, textarea, select {
60+
font: inherit;
61+
}
62+
63+
p, h1, h2, h3, h4, h5, h6 {
64+
overflow-wrap: break-word;
65+
}
66+
67+
p {
68+
text-wrap: pretty;
69+
}
70+
71+
h1, h2, h3, h4, h5, h6 {
72+
text-wrap: balance;
73+
}
74+
75+
#root, #__next {
76+
isolation: isolate;
77+
}
78+
79+
.container {
80+
background-color: #fff;
81+
display: flex;
82+
flex-direction: column;
83+
min-height: 100vh;
84+
max-width: 800px;
85+
margin: 0 auto;
86+
padding: 0 var(--spacer-md);
87+
> h1 {
88+
font-size: clamp(1.75rem, 4.5vw, 3rem);
89+
margin: var(--spacer-md) 0;
90+
}
91+
92+
> p {
93+
94+
}
95+
}
96+
97+
@media screen and (min-width: 800px) {
98+
.container {
99+
padding: 0 var(--spacer-lg);
100+
}
101+
}
102+
</style>

0 commit comments

Comments
 (0)