Caricamento template

This commit is contained in:
2025-10-07 21:30:21 +02:00
parent 861769cd69
commit fdc104e8d6
20 changed files with 522 additions and 44 deletions

167
css/avanzato.css Normal file
View File

@@ -0,0 +1,167 @@
:root {
--primario: hsl(195, 100%, 13%);
--scuro: hsl(195, 100%, 8%);
--secondario: hsl(202, 61%, 93%);
--p-glass: hsla(195, 100%, 13%, 0.75);
--s-glass: hsla(202, 61%, 93%, 0.75);
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
::-webkit-scrollbar {
width: 5px;
height: 5px
}
@supports (-moz-appearance:none) {
*,
*::before,
*::after {
scrollbar-color: var(--scuro) var(--secondario);
scrollbar-width: thin;
scrollbar-width: 5px
}
}
::-webkit-scrollbar-track {
background: var(--secondario);
padding: 1px
}
::-webkit-scrollbar-thumb {
background: var(--scuro);
border-radius: 10px;
transition: all 200ms ease-in-out;
}
::-webkit-scrollbar-thumb:hover {
background: var(--scuro);
}
html {
scroll-behavior: smooth;
}
a:target {
position: relative;
}
a:target::before {
content: "";
display: block;
height: 5rem;
margin-top: -5rem;
pointer-events: none;
}
header {
color: #fff;
padding: 0.5rem 1rem;
width: 100%;
max-width: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 3;
transition: all 200ms ease-in-out;
user-select: none;
margin: 0 auto;
border-radius: 1rem;
max-width: 1400px;
}
header.fixed {
background-color: var(--p-glass);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
top: 5px;
max-width: 1350px;
width: 95%;
}
header .container {
max-width: 100%;
width: 100%;
}
.pagina .sezione .box .prezzo {
white-space: nowrap;
}
.pagina .sezione, .top {
user-select: none;
pointer-events: none;
}
.pagina .sezione .griglia {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 1rem;
margin-top: 1rem;
}
@media only screen and (max-width: 1024px) {
.pagina .sezione .griglia {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media only screen and (max-width: 760px) {
.pagina .sezione .griglia {
grid-template-columns: 1fr 1fr;
}
}
@media only screen and (max-width: 480px) {
.pagina .sezione .griglia {
grid-template-columns: 1fr;
}
}
@media only screen and (max-width: 380px) {
header {
font-size: 80%;
}
}
.pagina .sezione .titolo {
background-size: cover;
border: 1px solid var(--primario);
border-radius: 1rem;
}
.pagina .sezione .titolo .overlay {
background-color: var(--s-glass);
padding: 1rem;
border-radius: 1rem;
}
.pagina .sezione.pizze .titolo {
background-image: url("/img/pizze.webp");
background-position: 50% 80%;
}
.pagina .sezione.dolci .titolo {
background-image: url("/img/dolci.webp");
background-position: 50% 70%;
}
.pagina .sezione.bevande .titolo {
background-image: url("/img/bevande.webp");
background-position: 50% 50%;
}
.pagina .sezione .box .immagine {
display: flex;
align-items: center;
flex-grow: 1;
}

View File

@@ -1,24 +1,130 @@
body {
background-color: hsl(202, 61%, 93%);
color: hsl(195, 100%, 13%);
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--secondario);
color: var(--primario);
font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 17px;
}
header {
a {
color: var(--primario);
}
.container {
width: 90%;
max-width: 1300px;
margin: 0 auto;
}
header .container,
.menu,
.menu ul {
display: flex;
flex-direction: row;
gap: 1rem;
flex-wrap: nowrap;
justify-content: space-between;
align-self: center;
}
.menu ul {
gap: 1.5rem;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 3rem;
}
.menu {
.menu ul {
list-style-type: none;
text-align: center;
}
header .menu a {
color: #fff;
font-weight: 300;
text-decoration: none;
}
.top {
background-image: url("/img/header.webp");
}
.top .overlay {
padding: 6rem 0;
padding-top: 11rem;
background-color: var(--p-glass);
color: #fff;
text-align: center;
font-size: 120%;
}
.pagina .sezione {
margin: 4rem 0;
}
.pagina .sezione .box {
border: 1px solid var(--primario);
border-radius: 1rem;
width: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-self: center;
background-color: #fff;
}
.pagina .sezione .box .testo,
.pagina .sezione .box .prezzo {
padding: 1rem;
}
.pagina .sezione .box img {
aspect-ratio: 1 / 1;
object-fit: cover;
border-radius: 1rem 1rem 0 0;
display: block;
width: 100%;
height: auto;
}
.pagina .sezione .box .testo {
flex-grow: 4;
width: 100%;
padding-bottom: 0;
}
.pagina .sezione .box .prezzo {
width: 100%;
text-align: right;
font-weight: bold;
font-size: 120%;
}
footer {
background-color: var(--primario);
color: var(--secondario);
padding: 1rem 0;
text-align: center;
font-weight: 200;
font-size: 90%;
}
footer .container {
opacity: 0.8;
}
footer a {
color: inherit;
text-decoration: none;
font-weight: normal;
}
footer i {
font-size: 90%;
}