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); transition: var(--transition-default);
&.active { &.active {
--color: var(--color-darkest); --color: var(--color-lightest);
--background: var(--color-gradient-main); --background: var(--color-main-dark);
} }
&:first-child { &:first-child {

View file

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

View file

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

View file

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

View file

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