feat(tip): add coffee tipping page
This commit is contained in:
@@ -0,0 +1,463 @@
|
||||
.shell {
|
||||
position: relative;
|
||||
min-height: var(--app-viewport-height, 100dvh);
|
||||
padding:
|
||||
calc(var(--app-safe-top, 0px) + clamp(18px, 4.444vw, 24px))
|
||||
calc(var(--app-safe-right, 0px) + clamp(20px, 5.556vw, 30px))
|
||||
calc(var(--app-safe-bottom, 0px) + clamp(24px, 6.667vw, 36px))
|
||||
calc(var(--app-safe-left, 0px) + clamp(20px, 5.556vw, 30px));
|
||||
overflow: hidden auto;
|
||||
background:
|
||||
radial-gradient(circle at 18% 12%, rgba(255, 181, 105, 0.34), transparent 32%),
|
||||
radial-gradient(circle at 86% 24%, rgba(255, 85, 139, 0.2), transparent 30%),
|
||||
linear-gradient(180deg, #fff2e8 0%, #fff8f2 46%, #ffffff 100%);
|
||||
color: #25191b;
|
||||
}
|
||||
|
||||
.bgImage,
|
||||
.bgGlowOne,
|
||||
.bgGlowTwo {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bgImage {
|
||||
inset: 0 0 auto;
|
||||
height: 330px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 242, 232, 0.3), #fff2e8 96%),
|
||||
url("/images/splash/pic-bg-home.png") center 18% / cover no-repeat;
|
||||
opacity: 0.36;
|
||||
filter: saturate(0.95) blur(0.2px);
|
||||
}
|
||||
|
||||
.bgGlowOne,
|
||||
.bgGlowTwo {
|
||||
z-index: 0;
|
||||
border-radius: 999px;
|
||||
filter: blur(10px);
|
||||
}
|
||||
|
||||
.bgGlowOne {
|
||||
top: 192px;
|
||||
right: -86px;
|
||||
width: 190px;
|
||||
height: 190px;
|
||||
background: rgba(255, 92, 142, 0.16);
|
||||
}
|
||||
|
||||
.bgGlowTwo {
|
||||
bottom: 108px;
|
||||
left: -98px;
|
||||
width: 210px;
|
||||
height: 210px;
|
||||
background: rgba(255, 181, 104, 0.18);
|
||||
}
|
||||
|
||||
.header,
|
||||
.hero,
|
||||
.productCard,
|
||||
.summaryCard,
|
||||
.statusMessage,
|
||||
.successCard,
|
||||
.checkoutSlot {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.backButton {
|
||||
display: grid;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(255, 255, 255, 0.8);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
color: #382429;
|
||||
box-shadow: 0 12px 26px rgba(112, 67, 66, 0.12);
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(18px);
|
||||
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
||||
}
|
||||
|
||||
.backButton:active {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
|
||||
.headerPill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 34px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid rgba(255, 116, 151, 0.22);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.66);
|
||||
color: #9b5360;
|
||||
font-size: clamp(12px, 2.963vw, 14px);
|
||||
font-weight: 850;
|
||||
letter-spacing: 0.03em;
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: clamp(18px, 5.185vw, 28px);
|
||||
text-align: center;
|
||||
animation: floatIn 0.5s ease both;
|
||||
}
|
||||
|
||||
.avatarRing {
|
||||
display: grid;
|
||||
width: clamp(88px, 22.222vw, 112px);
|
||||
height: clamp(88px, 22.222vw, 112px);
|
||||
place-items: center;
|
||||
border: 4px solid rgba(255, 255, 255, 0.9);
|
||||
border-radius: 30px;
|
||||
background: linear-gradient(145deg, #ffbd7c, #ff5d91);
|
||||
box-shadow:
|
||||
0 20px 44px rgba(255, 98, 133, 0.24),
|
||||
inset 0 0 0 1px rgba(255, 255, 255, 0.32);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.avatarRing img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 16px 0 0;
|
||||
color: #b35d63;
|
||||
font-size: clamp(12px, 3.148vw, 15px);
|
||||
font-weight: 850;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.title {
|
||||
max-width: 320px;
|
||||
margin: 8px 0 0;
|
||||
color: #231518;
|
||||
font-size: clamp(34px, 9.259vw, 48px);
|
||||
font-weight: 950;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 0.92;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
max-width: 330px;
|
||||
margin: 14px 0 0;
|
||||
color: #7c6062;
|
||||
font-size: clamp(14px, 3.704vw, 18px);
|
||||
font-weight: 620;
|
||||
line-height: 1.52;
|
||||
}
|
||||
|
||||
.productCard {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(112px, 0.85fr) 1fr;
|
||||
align-items: center;
|
||||
gap: clamp(16px, 4.444vw, 24px);
|
||||
margin-top: clamp(24px, 7.407vw, 38px);
|
||||
padding: clamp(18px, 5.185vw, 28px);
|
||||
border: 1px solid rgba(118, 61, 55, 0.08);
|
||||
border-radius: clamp(30px, 8.148vw, 44px);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 223, 0.78)),
|
||||
#ffffff;
|
||||
box-shadow:
|
||||
0 26px 62px rgba(119, 72, 67, 0.13),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.86);
|
||||
animation: floatIn 0.5s 0.08s ease both;
|
||||
}
|
||||
|
||||
.coffeeStage {
|
||||
position: relative;
|
||||
display: grid;
|
||||
min-height: 172px;
|
||||
place-items: center;
|
||||
border-radius: 30px;
|
||||
background:
|
||||
radial-gradient(circle at 52% 36%, rgba(255, 197, 123, 0.32), transparent 28%),
|
||||
linear-gradient(145deg, #fff8ed, #ffe1cc);
|
||||
box-shadow: inset 0 0 0 1px rgba(126, 66, 57, 0.06);
|
||||
}
|
||||
|
||||
.cup {
|
||||
position: relative;
|
||||
width: 92px;
|
||||
height: 76px;
|
||||
margin-top: 28px;
|
||||
border-radius: 0 0 30px 30px;
|
||||
background: linear-gradient(145deg, #ffffff, #ffe8dd);
|
||||
box-shadow:
|
||||
0 18px 30px rgba(108, 63, 56, 0.15),
|
||||
inset -10px -12px 22px rgba(255, 137, 105, 0.12);
|
||||
}
|
||||
|
||||
.coffeeSurface {
|
||||
position: absolute;
|
||||
top: -13px;
|
||||
left: 8px;
|
||||
width: 76px;
|
||||
height: 28px;
|
||||
border: 7px solid #fff8f3;
|
||||
border-radius: 999px;
|
||||
background: radial-gradient(circle at 35% 40%, #d4905d, #7f4b32 72%);
|
||||
}
|
||||
|
||||
.cupHandle {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
right: -25px;
|
||||
width: 34px;
|
||||
height: 38px;
|
||||
border: 8px solid #ffe8dd;
|
||||
border-left: 0;
|
||||
border-radius: 0 999px 999px 0;
|
||||
}
|
||||
|
||||
.saucer {
|
||||
position: absolute;
|
||||
bottom: 34px;
|
||||
width: 118px;
|
||||
height: 20px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.74);
|
||||
box-shadow: 0 12px 22px rgba(105, 59, 48, 0.12);
|
||||
}
|
||||
|
||||
.steamOne,
|
||||
.steamTwo,
|
||||
.steamThree {
|
||||
position: absolute;
|
||||
top: 34px;
|
||||
width: 10px;
|
||||
height: 44px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(180deg, rgba(255, 137, 128, 0), rgba(255, 137, 128, 0.42));
|
||||
filter: blur(0.2px);
|
||||
animation: steam 2.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.steamOne {
|
||||
left: 48%;
|
||||
}
|
||||
|
||||
.steamTwo {
|
||||
left: 38%;
|
||||
animation-delay: 0.28s;
|
||||
}
|
||||
|
||||
.steamThree {
|
||||
left: 58%;
|
||||
animation-delay: 0.56s;
|
||||
}
|
||||
|
||||
.productCopy {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.productBadge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 8px 11px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 91, 142, 0.1);
|
||||
color: #b84d65;
|
||||
font-size: clamp(11px, 2.778vw, 13px);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.productName {
|
||||
margin: 15px 0 0;
|
||||
color: #231719;
|
||||
font-size: clamp(28px, 7.407vw, 40px);
|
||||
font-weight: 950;
|
||||
letter-spacing: -0.045em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.productPrice {
|
||||
margin: 10px 0 0;
|
||||
color: #ff4f86;
|
||||
font-size: clamp(25px, 6.667vw, 36px);
|
||||
font-weight: 950;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
.summaryCard,
|
||||
.successCard {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
margin-top: 16px;
|
||||
padding: 16px 18px;
|
||||
border: 1px solid rgba(118, 61, 55, 0.08);
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.76);
|
||||
box-shadow: 0 16px 38px rgba(119, 72, 67, 0.09);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.summaryLabel,
|
||||
.summaryValue,
|
||||
.statusMessage,
|
||||
.successTitle,
|
||||
.successText {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.summaryLabel {
|
||||
color: #a18181;
|
||||
font-size: 12px;
|
||||
font-weight: 780;
|
||||
}
|
||||
|
||||
.summaryValue {
|
||||
margin-top: 4px;
|
||||
color: #2a1b1e;
|
||||
font-size: clamp(14px, 3.519vw, 17px);
|
||||
font-weight: 880;
|
||||
}
|
||||
|
||||
.statusMessage {
|
||||
margin-top: 14px;
|
||||
color: #b2474f;
|
||||
font-size: 14px;
|
||||
font-weight: 720;
|
||||
line-height: 1.45;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.successCard {
|
||||
justify-content: flex-start;
|
||||
border-color: rgba(255, 84, 135, 0.16);
|
||||
background: rgba(255, 246, 249, 0.86);
|
||||
color: #ff4f86;
|
||||
}
|
||||
|
||||
.successTitle {
|
||||
color: #25191b;
|
||||
font-size: 15px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.successText {
|
||||
margin-top: 2px;
|
||||
color: #8a686b;
|
||||
font-size: 13px;
|
||||
font-weight: 620;
|
||||
}
|
||||
|
||||
.successButton {
|
||||
margin-left: auto;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 9px 12px;
|
||||
background: #231719;
|
||||
color: #ffffff;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkoutSlot {
|
||||
margin-top: clamp(18px, 5.185vw, 28px);
|
||||
}
|
||||
|
||||
.checkoutButton {
|
||||
width: 100%;
|
||||
min-height: 58px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
|
||||
linear-gradient(135deg, #1f1719 0%, #6d3f49 48%, #ff548a 100%);
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: clamp(16px, 4.074vw, 19px);
|
||||
font-weight: 940;
|
||||
letter-spacing: -0.01em;
|
||||
box-shadow:
|
||||
0 18px 40px rgba(255, 83, 137, 0.28),
|
||||
0 8px 18px rgba(37, 23, 27, 0.18);
|
||||
transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
|
||||
}
|
||||
|
||||
.checkoutButton:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: grayscale(0.25);
|
||||
opacity: 0.62;
|
||||
box-shadow: 0 10px 24px rgba(77, 52, 55, 0.12);
|
||||
}
|
||||
|
||||
.checkoutButton:not(:disabled):active {
|
||||
transform: translateY(1px) scale(0.985);
|
||||
}
|
||||
|
||||
.checkoutError {
|
||||
margin: 10px 0 0;
|
||||
color: #b2474f;
|
||||
font-size: 14px;
|
||||
font-weight: 720;
|
||||
line-height: 1.45;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.productCard {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.coffeeStage {
|
||||
min-height: 152px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.backButton:hover,
|
||||
.checkoutButton:not(:disabled):hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes floatIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(18px) scale(0.98);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes steam {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.34;
|
||||
transform: translateY(8px) scaleY(0.82);
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.76;
|
||||
transform: translateY(-8px) scaleY(1.08);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user