Files
rustytorch/demos/ui/src/styles/landing.css
T
2026-03-04 00:08:42 +00:00

448 lines
7.9 KiB
CSS

/**
* RustyTorch++ Landing Page Styles
*/
/* CSS Variables */
:root {
--landing-primary: #FF6B35;
--landing-primary-dark: #E55A2B;
--landing-secondary: #1A1A2E;
--landing-accent: #4ECDC4;
--landing-bg: #0F0F1A;
--landing-card-bg: #1E1E2E;
--landing-card-hover: #2A2A3E;
--landing-text: #FFFFFF;
--landing-text-muted: #B0B0B0;
--landing-border: #2E2E3E;
--landing-success: #22C55E;
--landing-warning: #F59E0B;
}
/* Landing Page Container */
.landing-page {
min-height: 100vh;
background: var(--landing-bg);
color: var(--landing-text);
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
/* ===== HERO SECTION ===== */
.hero-header {
position: relative;
padding: 4rem 2rem;
text-align: center;
background: linear-gradient(180deg, var(--landing-secondary) 0%, var(--landing-bg) 100%);
overflow: hidden;
}
.hero-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(ellipse at 20% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
radial-gradient(ellipse at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
pointer-events: none;
}
.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
}
.hero-logo {
font-size: 4rem;
font-weight: 800;
margin: 0 0 0.5rem;
background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-tagline {
font-size: 1.5rem;
color: var(--landing-text);
margin: 0 0 1rem;
font-weight: 500;
}
.hero-subtitle {
font-size: 1.1rem;
color: var(--landing-text-muted);
margin: 0;
}
.hero-subtitle span {
margin: 0 0.5rem;
}
.hero-divider {
color: var(--landing-primary);
}
/* ===== FEATURES GRID ===== */
.features-section {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.section-title {
font-size: 1.8rem;
font-weight: 700;
text-align: center;
margin: 0 0 2rem;
color: var(--landing-text);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.feature-card {
background: var(--landing-card-bg);
border: 1px solid var(--landing-border);
border-radius: 12px;
padding: 1.5rem;
transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
transform: translateY(-2px);
border-color: var(--landing-primary);
}
.feature-icon {
font-size: 2rem;
margin-bottom: 0.75rem;
}
.feature-title {
font-size: 1.2rem;
font-weight: 600;
margin: 0 0 0.5rem;
color: var(--landing-text);
}
.feature-description {
font-size: 0.95rem;
color: var(--landing-text-muted);
margin: 0;
line-height: 1.5;
}
/* ===== PERFORMANCE SECTION ===== */
.performance-section {
padding: 4rem 2rem;
background: var(--landing-secondary);
}
.performance-content {
max-width: 900px;
margin: 0 auto;
}
.performance-grid {
display: flex;
flex-direction: column;
gap: 2rem;
}
.performance-row {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.performance-label {
font-size: 1rem;
font-weight: 500;
color: var(--landing-text);
margin-bottom: 0.25rem;
}
.performance-bar-container {
display: flex;
align-items: center;
gap: 1rem;
}
.performance-bar-wrapper {
flex: 1;
height: 24px;
background: var(--landing-bg);
border-radius: 4px;
overflow: hidden;
}
.performance-bar {
height: 100%;
border-radius: 4px;
transition: width 1s ease-out;
}
.performance-bar.pytorch {
background: linear-gradient(90deg, #EE4C2C, #FF6B35);
}
.performance-bar.rustytorch {
background: linear-gradient(90deg, var(--landing-accent), var(--landing-primary));
}
.performance-value {
min-width: 100px;
font-size: 0.9rem;
color: var(--landing-text-muted);
text-align: right;
}
.performance-speedup {
font-weight: 700;
color: var(--landing-success);
font-size: 1rem;
min-width: 60px;
text-align: center;
}
.performance-framework-label {
font-size: 0.85rem;
color: var(--landing-text-muted);
min-width: 80px;
}
/* ===== DEMO GALLERY ===== */
.demo-gallery {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.category-section {
margin-bottom: 3rem;
}
.category-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--landing-border);
}
.category-icon {
font-size: 1.5rem;
}
.category-title {
font-size: 1.4rem;
font-weight: 600;
margin: 0;
color: var(--landing-text);
}
.demo-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.25rem;
}
/* Demo Card */
.demo-card {
background: var(--landing-card-bg);
border: 1px solid var(--landing-border);
border-radius: 12px;
padding: 1.25rem;
cursor: pointer;
transition: all 0.2s;
display: flex;
flex-direction: column;
}
.demo-card.live:hover {
transform: translateY(-4px);
border-color: var(--landing-primary);
box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}
.demo-card.coming-soon {
opacity: 0.7;
cursor: default;
}
.demo-card.coming-soon:hover {
opacity: 0.8;
}
.demo-thumbnail {
width: 100%;
height: 120px;
background: var(--landing-bg);
border-radius: 8px;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.demo-thumbnail-placeholder {
font-size: 3rem;
opacity: 0.3;
}
.demo-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.demo-card-title {
font-size: 1.1rem;
font-weight: 600;
margin: 0 0 0.5rem;
color: var(--landing-text);
}
.demo-card-description {
font-size: 0.9rem;
color: var(--landing-text-muted);
margin: 0 0 1rem;
line-height: 1.4;
flex: 1;
}
.demo-card-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.status-badge {
font-size: 0.8rem;
padding: 0.35rem 0.75rem;
border-radius: 20px;
font-weight: 500;
}
.status-badge.live {
background: rgba(34, 197, 94, 0.15);
color: var(--landing-success);
border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-badge.coming-soon {
background: rgba(245, 158, 11, 0.15);
color: var(--landing-warning);
border: 1px solid rgba(245, 158, 11, 0.3);
}
.launch-button {
background: var(--landing-primary);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.launch-button:hover {
background: var(--landing-primary-dark);
}
/* ===== FOOTER ===== */
.landing-footer {
padding: 2rem;
text-align: center;
border-top: 1px solid var(--landing-border);
color: var(--landing-text-muted);
font-size: 0.9rem;
}
.landing-footer a {
color: var(--landing-primary);
text-decoration: none;
}
.landing-footer a:hover {
text-decoration: underline;
}
/* ===== BACK BUTTON (for demo pages) ===== */
.back-button {
position: fixed;
top: 1rem;
left: 1rem;
z-index: 1000;
background: var(--landing-card-bg);
border: 1px solid var(--landing-border);
color: var(--landing-text);
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.2s;
}
.back-button:hover {
background: var(--landing-card-hover);
border-color: var(--landing-primary);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.hero-logo {
font-size: 2.5rem;
}
.hero-tagline {
font-size: 1.2rem;
}
.hero-subtitle {
font-size: 0.95rem;
}
.hero-subtitle span {
display: block;
margin: 0.25rem 0;
}
.hero-divider {
display: none;
}
.features-grid {
grid-template-columns: 1fr;
}
.demo-cards-grid {
grid-template-columns: 1fr;
}
.performance-bar-container {
flex-wrap: wrap;
}
.performance-value {
min-width: auto;
width: 100%;
text-align: left;
margin-top: 0.25rem;
}
}