mirror of
https://gitlab.com/vyla-entertainment/home-frontend.git
synced 2026-11-20 07:57:28 -05:00
Released New Website
This commit is contained in:
82
src/styles/components/buttons.css
Normal file
82
src/styles/components/buttons.css
Normal file
@@ -0,0 +1,82 @@
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
background: var(--color-fg);
|
||||
color: var(--color-bg);
|
||||
padding: 0.875rem 1.75rem;
|
||||
border-radius: var(--radius-pill);
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
transition: transform var(--duration-fast) var(--ease-out-soft), opacity var(--duration-fast) ease;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
touch-action: manipulation;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.hero-cta-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.7rem 1.35rem;
|
||||
border-radius: var(--radius-pill);
|
||||
font-family: var(--font-body);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: transform var(--duration-fast) var(--ease-out-soft),
|
||||
background var(--duration-fast) ease,
|
||||
opacity var(--duration-fast) ease;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.hero-cta:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.hero-cta-dark {
|
||||
background: #000000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hero-cta-dark:hover {
|
||||
background: #000;
|
||||
border-color: var(--color-fg-dim);
|
||||
}
|
||||
|
||||
.hero-cta-light {
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
color: #0f0f0f;
|
||||
}
|
||||
|
||||
.hero-cta-light:hover {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@media (hover: none) and (pointer: coarse) {
|
||||
.btn {
|
||||
min-height: 48px;
|
||||
min-width: 48px;
|
||||
}
|
||||
}
|
||||
59
src/styles/components/executors.css
Normal file
59
src/styles/components/executors.css
Normal file
@@ -0,0 +1,59 @@
|
||||
.executors-marquee-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.executors-marquee-row {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.executors-marquee-track {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 5vw, 3.5rem);
|
||||
width: max-content;
|
||||
transform: translate3d(var(--marquee-x, 0px), 0, 0);
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.executor-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.45;
|
||||
filter: grayscale(0.3);
|
||||
transition: opacity var(--duration-base) ease, filter var(--duration-base) ease;
|
||||
}
|
||||
|
||||
.executor-item:hover {
|
||||
opacity: 1;
|
||||
filter: grayscale(0);
|
||||
}
|
||||
|
||||
.executor-avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 8px;
|
||||
background: var(--color-border);
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.executor-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.executor-name {
|
||||
font-size: clamp(0.95rem, 2vw, 1.15rem);
|
||||
font-weight: 700;
|
||||
color: var(--color-fg);
|
||||
white-space: nowrap;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
59
src/styles/components/faq.css
Normal file
59
src/styles/components/faq.css
Normal file
@@ -0,0 +1,59 @@
|
||||
.faq-list {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.faq-item {
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.faq-question {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-fg);
|
||||
font-family: var(--font-body);
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
padding: 1.25rem 0.25rem;
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.faq-question:hover {
|
||||
color: var(--color-fg-dim);
|
||||
}
|
||||
|
||||
.faq-question .chevron {
|
||||
flex-shrink: 0;
|
||||
transition: transform var(--duration-fast) ease;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
.faq-item.open .faq-question .chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.faq-answer {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.4s var(--ease-out-soft);
|
||||
}
|
||||
|
||||
.faq-answer-inner {
|
||||
padding: 0 0.25rem 1.25rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--color-muted);
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.faq-item.open .faq-answer {
|
||||
max-height: 320px;
|
||||
}
|
||||
77
src/styles/components/marquee.css
Normal file
77
src/styles/components/marquee.css
Normal file
@@ -0,0 +1,77 @@
|
||||
.marquee-fade-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.marquee-fade-wrap::before,
|
||||
.marquee-fade-wrap::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: clamp(3rem, 12vw, 10rem);
|
||||
z-index: var(--z-marquee-fade);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.marquee-fade-wrap::before {
|
||||
left: 0;
|
||||
background: linear-gradient(to right, var(--color-bg), transparent);
|
||||
}
|
||||
|
||||
.marquee-fade-wrap::after {
|
||||
right: 0;
|
||||
background: linear-gradient(to left, var(--color-bg), transparent);
|
||||
}
|
||||
|
||||
.marquee-row {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
||||
.marquee-track {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
width: max-content;
|
||||
transform: translateZ(0);
|
||||
backface-visibility: hidden;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.marquee-left .marquee-track {
|
||||
animation: marquee-scroll-left 60s linear infinite;
|
||||
}
|
||||
|
||||
.marquee-right .marquee-track {
|
||||
animation: marquee-scroll-right 60s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll-left {
|
||||
from {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(-50%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll-right {
|
||||
from {
|
||||
transform: translate3d(-50%, 0, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
.marquee-track,
|
||||
.executors-marquee-track,
|
||||
.showcase-track {
|
||||
animation: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
101
src/styles/components/modal.css
Normal file
101
src/styles/components/modal.css
Normal file
@@ -0,0 +1,101 @@
|
||||
.yt-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: var(--z-modal);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: clamp(1rem, 4vw, 2.5rem);
|
||||
padding-top: calc(clamp(1rem, 4vw, 2.5rem));
|
||||
background: rgba(0, 0, 0, 0.82);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.yt-modal[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.yt-modal:not([hidden]) {
|
||||
display: flex;
|
||||
animation: yt-fade var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.yt-modal-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
cursor: zoom-out;
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.yt-modal-dialog {
|
||||
position: relative;
|
||||
width: min(1040px, 100%);
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
box-shadow: var(--shadow-modal);
|
||||
animation: yt-pop 0.28s var(--ease-standard);
|
||||
}
|
||||
|
||||
.yt-modal-dialog iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.yt-modal-close {
|
||||
position: absolute;
|
||||
top: -46px;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(6px);
|
||||
transition: background var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.yt-modal-close:hover {
|
||||
background: var(--color-fg);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
|
||||
@keyframes yt-fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes yt-pop {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.94);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.yt-modal-close {
|
||||
top: calc(8px);
|
||||
right: 8px;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
}
|
||||
}
|
||||
49
src/styles/components/partners.css
Normal file
49
src/styles/components/partners.css
Normal file
@@ -0,0 +1,49 @@
|
||||
.partners-inline {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.85rem;
|
||||
padding-top: 120px;
|
||||
}
|
||||
|
||||
.partners-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: var(--color-fg-dim);
|
||||
opacity: 0.75;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.partners-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: clamp(1.5rem, 4vw, 2.75rem);
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.partner-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.partner-item img {
|
||||
height: 30px;
|
||||
width: auto;
|
||||
object-fit: contain;
|
||||
filter: brightness(0) invert(1);
|
||||
opacity: 0.85;
|
||||
margin-top: 12px;
|
||||
transition: opacity var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.partner-item:hover img {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.partner-item a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
83
src/styles/components/pills.css
Normal file
83
src/styles/components/pills.css
Normal file
@@ -0,0 +1,83 @@
|
||||
.discord-copy-bar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(8px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(8px) saturate(140%);
|
||||
border: none;
|
||||
border-radius: var(--radius-pill);
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.9rem;
|
||||
font-family: var(--font-body);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-fg);
|
||||
cursor: pointer;
|
||||
letter-spacing: -0.01em;
|
||||
margin-top: 1.2rem;
|
||||
transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.copy-discord-label {
|
||||
position: relative;
|
||||
max-width: 350px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
color: var(--color-fg);
|
||||
-webkit-mask-image: linear-gradient(to left, transparent, black 15%);
|
||||
mask-image: linear-gradient(to left, transparent, black 15%);
|
||||
}
|
||||
|
||||
.discord-copy-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.discord-copy-icon {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
color: var(--color-fg);
|
||||
transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.discord-copy-icon svg {
|
||||
transition: opacity 0.15s ease, transform 0.15s ease;
|
||||
}
|
||||
|
||||
.discord-copy-icon .check-icon {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
.discord-copy-icon.copied .copy-icon {
|
||||
opacity: 0;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
.discord-copy-icon.copied .check-icon {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.copy-discord-label {
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
.discord-copy-bar {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.4rem 0.4rem 0.4rem 0.875rem;
|
||||
}
|
||||
|
||||
.discord-copy-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
}
|
||||
170
src/styles/components/script-card.css
Normal file
170
src/styles/components/script-card.css
Normal file
@@ -0,0 +1,170 @@
|
||||
.scripts-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
|
||||
gap: clamp(1.25rem, 3vw, 1.75rem);
|
||||
margin-top: clamp(2rem, 6vw, 3rem);
|
||||
}
|
||||
|
||||
.script-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-lg);
|
||||
transform: translateZ(0) scale(1);
|
||||
transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
|
||||
}
|
||||
|
||||
.script-card:hover {
|
||||
transform: translateZ(0) scale(.92);
|
||||
}
|
||||
|
||||
.script-glow {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 5%;
|
||||
width: 90%;
|
||||
height: 55%;
|
||||
z-index: -1;
|
||||
opacity: 0 !important;
|
||||
filter: blur(36px) saturate(1.5);
|
||||
background: radial-gradient(circle at 35% 30%, var(--glow-a, transparent) 0%, transparent 65%),
|
||||
radial-gradient(circle at 70% 40%, var(--glow-b, transparent) 0%, transparent 70%);
|
||||
transition: opacity 0.9s var(--ease-standard);
|
||||
pointer-events: none;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.script-image {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: var(--color-border);
|
||||
overflow: hidden;
|
||||
margin-bottom: 1.25rem;
|
||||
border-radius: var(--radius-lg);
|
||||
-webkit-mask-image: linear-gradient(to top, transparent 0%, black 45%);
|
||||
mask-image: linear-gradient(to top, transparent 0%, black 45%);
|
||||
transition: transform var(--duration-base) var(--ease-out-soft);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.script-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: filter var(--duration-base) ease, transform var(--duration-base) ease;
|
||||
}
|
||||
|
||||
.script-title {
|
||||
font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 0.5rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.script-copy-icon {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.script-copy-icon svg {
|
||||
flex-shrink: 0;
|
||||
color: var(--color-muted);
|
||||
transition: transform var(--duration-fast) var(--ease-out-soft), color var(--duration-fast) ease, opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.script-copy-icon .check-icon {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.script-copy-icon.copied .copy-icon {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.script-copy-icon.copied .check-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.script-card:hover .script-copy-icon svg {
|
||||
color: var(--color-fg);
|
||||
}
|
||||
|
||||
.script-desc {
|
||||
color: var(--color-muted);
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.scripts-wrap {
|
||||
position: relative;
|
||||
margin-inline: calc(var(--content-padding-inline) * -1);
|
||||
}
|
||||
|
||||
.scripts-grid {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
scroll-snap-type: x mandatory;
|
||||
scroll-padding-inline: var(--content-padding-inline);
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
padding-inline: var(--content-padding-inline);
|
||||
scroll-snap-stop: always;
|
||||
overscroll-behavior-x: contain;
|
||||
}
|
||||
|
||||
.scripts-wrap::before,
|
||||
.scripts-wrap::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: clamp(1.5rem, 6vw, 3rem);
|
||||
z-index: 100;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.scripts-wrap::before {
|
||||
left: 0;
|
||||
background: linear-gradient(to right, var(--color-bg), transparent);
|
||||
}
|
||||
|
||||
.scripts-wrap::after {
|
||||
right: 0;
|
||||
background: linear-gradient(to left, var(--color-bg), transparent);
|
||||
}
|
||||
|
||||
.scripts-grid::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.script-card {
|
||||
flex: 0 0 auto;
|
||||
width: calc(min(78vw, 300px) * 1.2);
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.script-card:hover {
|
||||
transform: translateZ(0) scale(1);
|
||||
}
|
||||
|
||||
.script-card.glow-ready.in-snap .script-glow {
|
||||
opacity: 0.6 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (hover: none) and (pointer: coarse) {
|
||||
.script-image img {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
77
src/styles/components/showcase.css
Normal file
77
src/styles/components/showcase.css
Normal file
@@ -0,0 +1,77 @@
|
||||
.showcase-viewport {
|
||||
overflow: hidden;
|
||||
-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
|
||||
mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
|
||||
}
|
||||
|
||||
.showcase-track {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
gap: clamp(0.75rem, 1.5vw, 1.25rem);
|
||||
transform: translate3d(var(--showcase-x, 0px), 0, 0);
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.showcase-item {
|
||||
flex: 0 0 auto;
|
||||
width: clamp(220px, 22vw, 280px);
|
||||
opacity: 0;
|
||||
transition: opacity var(--duration-base) ease;
|
||||
}
|
||||
|
||||
.showcase-item.loaded {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.showcase-card {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
background: var(--color-border);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
padding: 0;
|
||||
transition: transform var(--duration-base) var(--ease-standard);
|
||||
}
|
||||
|
||||
.showcase-thumb {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
transition: filter var(--duration-base) ease;
|
||||
}
|
||||
|
||||
.showcase-card:hover .showcase-thumb {
|
||||
filter: brightness(0.7);
|
||||
}
|
||||
|
||||
.showcase-play {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
margin: auto;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
color: #fff;
|
||||
pointer-events: none;
|
||||
transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.showcase-card:hover .showcase-play {
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
transform: scale(1.08);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.showcase-item {
|
||||
width: clamp(200px, 62vw, 260px);
|
||||
}
|
||||
}
|
||||
32
src/styles/components/stats.css
Normal file
32
src/styles/components/stats.css
Normal file
@@ -0,0 +1,32 @@
|
||||
.stats-grid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: nowrap;
|
||||
gap: clamp(1.75rem, 5vw, 3.5rem);
|
||||
text-align: center;
|
||||
margin-top: clamp(1.5rem, 4vw, 2.25rem);
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: clamp(1.5rem, 3.5vw, 2.25rem);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--color-fg);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 500;
|
||||
color: var(--color-muted);
|
||||
letter-spacing: 0.01em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
79
src/styles/components/testimonial-card.css
Normal file
79
src/styles/components/testimonial-card.css
Normal file
@@ -0,0 +1,79 @@
|
||||
.testimonial-card {
|
||||
border-radius: var(--radius-md);
|
||||
padding: 1.25rem;
|
||||
background: var(--color-bg-card);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
width: clamp(240px, 30vw, 320px);
|
||||
flex-shrink: 0;
|
||||
transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.testimonial-card:hover {
|
||||
background: var(--color-bg-elevated);
|
||||
border-color: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.testimonial-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.testimonial-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.testimonial-avatar {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-fg);
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.testimonial-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.testimonial-names {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.testimonial-name {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.testimonial-handle {
|
||||
font-size: 0.75rem;
|
||||
color: var(--color-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.testimonial-text {
|
||||
font-size: 0.875rem;
|
||||
color: var(--color-muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
Reference in New Issue
Block a user