1
0
Fork 0
mirror of https://github.com/imjasonh/meet-ticker synced 2026-07-07 00:32:48 +00:00
meet-ticker/styles.css
Jason Hall 48cde1fa34 fix css
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-28 23:16:48 -04:00

283 lines
No EOL
4.3 KiB
CSS

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #f8f9fa;
color: #202124;
line-height: 1.5;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 16px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* View management */
.view {
flex: 1;
display: flex;
flex-direction: column;
}
.hidden {
display: none !important;
}
/* Header styles */
.header {
text-align: center;
margin-bottom: 24px;
}
.header h1 {
font-size: 24px;
font-weight: 500;
color: #1a73e8;
margin-bottom: 8px;
}
.subtitle {
font-size: 14px;
color: #5f6368;
margin: 0;
}
.meeting-info {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-top: 8px;
}
.status-badge {
display: inline-block;
padding: 4px 12px;
background-color: #e8f0fe;
color: #1a73e8;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
}
.participant-count {
font-size: 12px;
color: #5f6368;
}
/* Authentication view */
.auth-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 20px;
padding: 40px 20px;
}
.icon {
font-size: 48px;
margin-bottom: 8px;
}
.description {
font-size: 16px;
color: #5f6368;
max-width: 280px;
}
/* Ticker view */
.ticker-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 24px;
}
.cost-display {
background: linear-gradient(135deg, #1a73e8, #4285f4);
color: white;
border-radius: 16px;
padding: 32px 24px;
text-align: center;
margin-bottom: 8px;
}
.cost-value {
font-size: 48px;
font-weight: 300;
line-height: 1;
margin-bottom: 8px;
}
.cost-unit {
font-size: 14px;
opacity: 0.9;
font-weight: 500;
}
/* Meeting duration styling */
.meeting-duration {
text-align: center;
font-size: 12px;
color: #5f6368;
}
/* Stats grid */
.stats-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-bottom: 8px;
}
.stat {
background: white;
border-radius: 12px;
padding: 20px 16px;
text-align: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.stat-value {
font-size: 24px;
font-weight: 500;
color: #1a73e8;
margin-bottom: 4px;
}
.stat-label {
font-size: 12px;
color: #5f6368;
font-weight: 500;
}
/* Buttons */
.primary-button, .secondary-button {
padding: 12px 24px;
border-radius: 8px;
border: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.primary-button {
background-color: #1a73e8;
color: white;
}
.primary-button:hover {
background-color: #1557b0;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}
.secondary-button {
background-color: #f8f9fa;
color: #5f6368;
border: 1px solid #dadce0;
}
.secondary-button:hover {
background-color: #f1f3f4;
border-color: #c8ccd0;
}
.controls {
display: flex;
gap: 12px;
justify-content: center;
}
/* Error view */
.error-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 20px;
padding: 40px 20px;
}
.error-icon {
font-size: 48px;
}
.error-text {
font-size: 16px;
color: #d93025;
max-width: 280px;
}
/* Status messages */
.status-message {
font-size: 12px;
text-align: center;
min-height: 18px;
padding: 4px;
}
.status-message.info {
color: #1a73e8;
}
.status-message.error {
color: #d93025;
}
.status-message.warning {
color: #f9ab00;
}
.status-message.success {
color: #137333;
}
/* Animations */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.pulsing {
animation: pulse 2s ease-in-out infinite;
}
/* Responsive design */
@media (max-width: 480px) {
.container {
padding: 12px;
}
.cost-value {
font-size: 36px;
}
.stat-value {
font-size: 20px;
}
.stats-grid {
gap: 12px;
}
}