piekarnikgosipl/style.css
2026-04-16 20:46:07 +02:00

121 lines
No EOL
2.7 KiB
CSS

@import "base.css";
@import "components.css";
body {
background-color: var(--surface);
font-family: 'Plus Jakarta Sans', sans-serif;
}
nav {
position: sticky;
top: 0;
z-index: 50;
backdrop-filter: blur(var(--backdrop-blur));
background-color: color-mix(in srgb, var(--surface), transparent 20%);
padding: 1rem;
height: var(--nav-height);
}
nav > div {
max-width: var(--max-content-width);
margin: 0 auto;
/* content inside */
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
& :last-child { justify-self: end }
& > div {
display: flex;
align-items: center;
gap: 2rem;
& > a {
font-size: 1.25rem;
color: var(--on-background);
text-decoration: none;
&[href] {
font-weight: 200;
transition: color 0.2s;
&:hover {
color: var(--primary);
}
}
/* The main selected link doesn't have a href attribute, so we can use that for styles */
&:not([href]) {
color: var(--primary);
padding-bottom: 8px;
border-bottom: 2px solid var(--primary);
}
}
}
}
.hero {
max-width: var(--max-content-width);
height: calc(100vh - var(--nav-height) - 2rem);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
& > div{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
& > div {
display: flex;
justify-content: center;
}
/* left portion */
& > :first-child {
align-items: flex-start;
flex-direction: column;
gap: 1rem;
}
/* right portion */
& > :last-child {
align-items: center;
& > img {
rotate: 2deg;
border-radius: var(--border-radius);
max-width: 100%;
max-height: 80%;
aspect-ratio: 4/5;
transition: rotate 0.7s;
&:hover {
rotate: 0deg;
}
}
}
}
}
.about-us {
background-color: var(--surface-container-low);
& > div {
max-width: var(--max-content-width);
margin: 0 auto;
padding: 2rem;
display: grid;
grid-template-columns: 2fr 1fr;
align-items: center;
gap: 1rem;
& > div {
& > span {
color: var(--primary);
}
gap: 1rem;
}
}
}