Święta css
This commit is contained in:
parent
0bbf9499dc
commit
142217705b
3 changed files with 37 additions and 2 deletions
34
css/swieta.css
Normal file
34
css/swieta.css
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
:root {
|
||||||
|
--swieta-green: oklch(40% .08 155);
|
||||||
|
--swieta-gold: oklch(75% .12 80);
|
||||||
|
}
|
||||||
|
|
||||||
|
#swieta {
|
||||||
|
& > header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background-color: var(--swieta-green);
|
||||||
|
& p, & h1 {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
& span {
|
||||||
|
word-spacing: 0.5rem;
|
||||||
|
color: var(--swieta-gold);
|
||||||
|
}
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
& #wyroby {
|
||||||
|
& > h2 {
|
||||||
|
grid-column: -1 / 1;
|
||||||
|
place-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .card {
|
||||||
|
& > :first-child {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -4,15 +4,16 @@ import "piekarnikgosipl/types"
|
||||||
|
|
||||||
templ Swieta(products []types.Product) {
|
templ Swieta(products []types.Product) {
|
||||||
@layout("swieta") {
|
@layout("swieta") {
|
||||||
<main tabindex="-1">
|
<main tabindex="-1" id="swieta">
|
||||||
<header>
|
<header>
|
||||||
<span>Boże narodzenie 2026</span>
|
<span>✦ BOŻE NARODZENIE 2026 ✦</span>
|
||||||
<h1>Święta smakują domowo</h1>
|
<h1>Święta smakują domowo</h1>
|
||||||
<p>
|
<p>
|
||||||
Tradycyjne świąteczne wypieki z naszej pracowni. Z naturalnych składników, według rodzinnych receptur.
|
Tradycyjne świąteczne wypieki z naszej pracowni. Z naturalnych składników, według rodzinnych receptur.
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
<div id="wyroby" class="swieta">
|
<div id="wyroby" class="swieta">
|
||||||
|
<h2>Święteczne Słodkości</h2>
|
||||||
for _, product:= range products {
|
for _, product:= range products {
|
||||||
@card(product)
|
@card(product)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue