diff --git a/base.css b/base.css index d07056b..42e464b 100644 --- a/base.css +++ b/base.css @@ -6,4 +6,6 @@ --primary: #8c4d50; --primary-container: #fcacaf; --on-background: #363227; + --nav-height: 4rem; + --border-radius: 48px; } diff --git a/components.css b/components.css index bad58cd..f47a518 100644 --- a/components.css +++ b/components.css @@ -6,5 +6,23 @@ font-size: 1rem; border-radius: 100rem; text-decoration: none; - color: black; + color: var(--on-background); +} + +h1 { + margin: 0; + font-family: serif; + color: var(--on-background); + font-size: 4rem; + line-height: 3.5rem; + + & > span { + font-style: italic; + color: var(--primary); + } +} + +p { + color: var(--on-background); + line-height: 1.5rem; } \ No newline at end of file diff --git a/images/4-Z7293390-scaled_01.jpg b/images/4-Z7293390-scaled_01.jpg new file mode 100644 index 0000000..ebdfa54 Binary files /dev/null and b/images/4-Z7293390-scaled_01.jpg differ diff --git a/index.html b/index.html index da99477..f59e628 100644 --- a/index.html +++ b/index.html @@ -22,11 +22,16 @@ Kontakt
-
-

Słodkości tworzone z pasją

- Naturalne składniki, domowe receptury i pasja. Tworzym torty i wypieki na Twoje najważniejsze chwile - od codziennych radości po wielkie uroczystości - Zobacz naszą ofertę - tort +
+
+
+

Słodkości tworzone z pasją

+

Naturalne składniki, domowe receptury i pasja. Tworzymy torty i wypieki na Twoje najważniejsze chwile - od codziennych radości po wielkie uroczystości

+ Zobacz naszą ofertę +
+ tort +
+
diff --git a/style.css b/style.css index 0b37651..cca8493 100644 --- a/style.css +++ b/style.css @@ -6,6 +6,8 @@ body { font-family: 'Plus Jakarta Sans', sans-serif; } + + nav { /* positioning and look */ position: sticky; @@ -13,7 +15,7 @@ nav { backdrop-filter: blur(var(--backdrop-blur)); background-color: color-mix(in srgb, var(--surface), transparent 20%); padding: 1rem; - height: 4rem; + height: var(--nav-height); /* content inside */ display: grid; @@ -40,3 +42,40 @@ nav { } } } + +.hero { + height: calc(100vh - var(--nav-height) - 2rem); + padding: 1rem 2rem; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + & > div{ + display: grid; + grid-template-columns: 1fr 1fr; + gap: 2rem; + + /* left portion */ + & > div { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + gap: 1rem; + } + + /* right portion */ + & > img { + rotate: 2deg; + border-radius: var(--border-radius); + width: 100%; + height: 100%; + transition: rotate 0.7s; + + &:hover { + rotate: 0deg; + } + } + } +} \ No newline at end of file