mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
222 lines
4.0 KiB
CSS
222 lines
4.0 KiB
CSS
/* TinyUSDZ Demos Page Styles */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
color: #333;
|
|
}
|
|
|
|
.header {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
padding: 2rem 0;
|
|
text-align: center;
|
|
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 1.1rem;
|
|
color: #666;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 3rem 2rem;
|
|
}
|
|
|
|
.demo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.demo-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
}
|
|
|
|
.demo-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.demo-image {
|
|
width: 100%;
|
|
height: 220px;
|
|
object-fit: cover;
|
|
background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
font-size: 1.1rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.demo-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.demo-card:hover .demo-image img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.demo-placeholder {
|
|
background: linear-gradient(45deg, #667eea20, #764ba220);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.demo-placeholder::before {
|
|
content: "🎬";
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.demo-content {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.demo-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: #333;
|
|
}
|
|
|
|
.demo-description {
|
|
color: #666;
|
|
line-height: 1.5;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.demo-links {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.demo-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.demo-link:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.demo-link.secondary {
|
|
background: #f8f9fa;
|
|
color: #666;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.demo-link.secondary:hover {
|
|
background: #e9ecef;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.demo-tag {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
backdrop-filter: blur(5px);
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
color: #667eea;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.footer a {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.container {
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.demo-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.demo-links {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.demo-link {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Loading animation */
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.loading {
|
|
animation: pulse 2s infinite;
|
|
}
|