add: new design

New design
This commit is contained in:
Fiona Lena Urban 2025-05-10 11:43:35 +02:00
parent 192b031140
commit 628659c39d
5 changed files with 14 additions and 6 deletions

View file

@ -21,8 +21,8 @@
transition: var(--transition-default);
&.active {
--color: var(--color-darkest);
--background: var(--color-gradient-main);
--color: var(--color-lightest);
--background: var(--color-main-dark);
}
&:first-child {

View file

@ -1,6 +1,8 @@
.Footer {
position: relative;
background: var(--color-darkest);
padding: 1rem;
z-index: 100;
& h4 {
color: var(--color-lightest);

View file

@ -4,7 +4,7 @@
width: 100%;
transition: 150ms;
opacity: 1;
color: var(--color-main-dark);
color: var(--color-darkest);
background: black;
.bottom {
@ -95,17 +95,22 @@
flex-grow: 0;
align-items: center;
gap: .25rem;
font-weight: bold;
& > .price {
display: flex;
align-items: center;
gap: .5rem;
& > .icon {
color: var(--color-main-dark);
}
}
& > .pro {
font-size: .6rem;
font-weight: bold;
color: var(--color-middle);
font-weight: lighter;
}
}
}

View file

@ -4,6 +4,7 @@
background: var(--color-main-darkest);
position: sticky;
bottom: 0;
z-index: 100;
box-shadow: var(--box-shadow-upper);
& > .Button {

View file

@ -77,9 +77,9 @@ const intl = Intl.NumberFormat('de-DE', {
const { lengthX, isSwiping } = useSwipe(top, {
passive: false,
threshold: 5,
threshold: 30,
onSwipe() {
if (lengthX.value != 0) {
if (lengthX.value > 50 || lengthX.value < -50) {
left.value = `${-clamp(lengthX.value, -100, 100)}px`
}
},