piekarnikgosipl/style.css
2026-04-27 17:24:18 +02:00

358 lines
No EOL
8.4 KiB
CSS

@import "base.css";
@import "components.css";
body {
background-color: var(--surface);
font-family: 'Plus Jakarta Sans', sans-serif;
box-sizing: border-box;
}
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: 800px;
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);
max-height: calc(100vh - var(--nav-height) - 2rem);
& > div {
max-width: var(--max-content-width);
margin: 0 auto;
padding: 2rem;
display: grid;
grid-template-columns: 60% 40%;
gap: 1rem;
align-items: center;
& :first-child {
display: flex;
align-items: center;
align-content: center;
position: relative;
height: 100%;
& > img {
border-radius: var(--border-radius);
border: 0.5rem solid var(--surface);
position: absolute;
max-height: 80%;
&:first-child {
aspect-ratio: 1031/580;
height: auto;
right: 20%;
bottom: 10%;
}
&:last-child {
aspect-ratio: 1/1;
height: auto;
z-index: 10;
left: 50%;
top: 10%;
}
}
}
& :last-child {
& > span {
color: var(--primary);
}
}
}
}
.featured-delights {
& > div {
max-width: var(--max-content-width);
margin: 6rem auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5rem;
& > div {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
gap: 3rem;
& > div {
width: 100%;
position: relative;
border-radius: var(--border-radius);
overflow: hidden;
background-color: white;
&:nth-child(2) {
background-color: rgb(from var(--secondary-container) r g b / 0.3);
}
& img {
display: block;
width: 100%;
scale: 1;
transition: scale 0.7s;
}
& > div:first-child {
overflow: hidden;
}
& > div:last-child {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 1.5rem 2rem 3rem 2rem;
& > a {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
color: var(--primary);
font-weight: bold;
text-decoration: none;
}
}
top: 0;
transition: top 0.2s;
&:hover {
top: -10px;
& img {
scale: 1.1;
}
& svg {
margin-left: 10px;
}
}
& svg {
transition-duration: 0.2s;
height: 2em;
width: 2em;
}
}
}
}
}
.kawiarnia {
background-color: var(--secondary-container);
& > div {
background-color: rgb(from var(--surface) r g b / 0.6);
max-width: var(--max-content-width);
margin: 6rem auto;
border-radius: var(--border-radius);
& > div {
padding: 4rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
& > :first-child {
& > h3 {
color: var(--on-secondary-container);
font-size: 3rem;
margin-bottom: 1.5rem;
}
& > p {
color: var(--on-secondary-container);
font-size: 1.125rem;
opacity: 0.8;
margin-bottom: 2rem;
}
& li {
font-size: 1.25rem;
margin: 1rem 0;
& span {
margin-left: 1rem;
color: var(--on-secondary-container);
}
}
}
& > :last-child {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
& > div {
display: flex;
align-items: center;
}
& img {
width: 100%;
border-radius: var(--border-radius);
position: relative;
}
& div:first-child > img {
top: -1rem;
}
& div:last-child > img {
top: 1rem;
}
}
}
}
}
footer {
display: grid;
grid-template-columns: 3fr 2fr 2fr;
max-width: var(--max-content-width);
margin: 3rem auto;
padding: 1rem 2rem;
gap: 1rem;
& > :first-child {
display: flex;
flex-direction: column;
justify-content: space-between;
& p {
font-size: 0.875rem;
}
& > :last-child {
font-weight: lighter;
font-size: 0.75rem;
}
}
& > :nth-child(2) a {
flex-direction: column;
align-items: flex-start;
}
& a {
font-size: 0.875rem;
color: var(--on-background);
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
text-decoration: none;
margin: 1rem 0;
& > div {
display: flex;
align-items: center;
justify-content: center;
}
}
& h4 {
color: var(--primary);
}
& svg {
margin-right: 0.5rem;
}
}