542 lines
9.4 KiB
CSS
542 lines
9.4 KiB
CSS
/* Reset and base styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Brand styling */
|
|
.brand {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.app-name {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
color: #2c3e50;
|
|
margin-bottom: 8px;
|
|
font-size: 2.2rem;
|
|
font-weight: 600;
|
|
letter-spacing: -1px;
|
|
}
|
|
|
|
.tagline {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
color: #667eea;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Welcome page styles */
|
|
.welcome-container {
|
|
text-align: center;
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
margin-top: 100px;
|
|
max-width: 400px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.username-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
margin: 30px 0;
|
|
|
|
& input {
|
|
padding: 15px;
|
|
border: 2px solid #e1e8ed;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
}
|
|
|
|
& button {
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: white;
|
|
padding: 15px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: white;
|
|
padding: 15px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
|
|
.example {
|
|
color: #666;
|
|
font-size: 14px;
|
|
|
|
& code {
|
|
background: #f8f9fa;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
|
|
/* Dashboard header */
|
|
.dashboard-header {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
|
|
& h1 {
|
|
color: #2c3e50;
|
|
font-size: 1.8rem;
|
|
}
|
|
}
|
|
|
|
.week-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.week-btn {
|
|
background: #f8f9fa;
|
|
color: #495057;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
|
|
&:hover {
|
|
background: #e9ecef;
|
|
}
|
|
}
|
|
|
|
.current-week {
|
|
font-weight: bold;
|
|
color: #667eea;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* League scores - compact at top */
|
|
.scores-summary {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.score-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #f1f3f4;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.league-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 140px;
|
|
|
|
& .league-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
}
|
|
|
|
.league-name {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* League color dots */
|
|
.league-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.score-compact {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.user-name, .opp-name {
|
|
font-weight: 500;
|
|
color: #495057;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.user-name {
|
|
text-align: right;
|
|
}
|
|
|
|
.score {
|
|
font-weight: bold;
|
|
color: #667eea;
|
|
min-width: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.vs-compact {
|
|
color: #666;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Schedule section - main focus */
|
|
.schedule-section {
|
|
flex: 1;
|
|
|
|
& h2 {
|
|
color: white;
|
|
margin-bottom: 25px;
|
|
font-size: 1.8rem;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.calendar-rows {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Day row styling */
|
|
.day-row {
|
|
background: white;
|
|
border-radius: 16px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.day-header {
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: white;
|
|
padding: 15px 20px;
|
|
|
|
& h3 {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.day-games {
|
|
padding: 20px;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
/* Game card styling */
|
|
.game-card {
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
border: 1px solid #e9ecef;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
}
|
|
|
|
.game-info {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.game-time {
|
|
font-size: 12px;
|
|
color: #667eea;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
.matchup {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.away-team, .home-team {
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.at {
|
|
color: #666;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Game players section with league groups */
|
|
.game-players {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.league-player-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 6px;
|
|
background: rgba(255, 255, 255, 0.6);
|
|
border-radius: 8px;
|
|
min-height: 28px;
|
|
|
|
& .player-pill {
|
|
padding: 3px 6px;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
/* Player pills */
|
|
.player-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
border-radius: 16px;
|
|
font-size: 11px;
|
|
border: 2px solid #dee2e6;
|
|
background: white;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
& .pos {
|
|
font-weight: bold;
|
|
font-size: 9px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
& .name {
|
|
font-weight: normal;
|
|
color: black;
|
|
}
|
|
|
|
& .league-dot {
|
|
display: none;
|
|
}
|
|
|
|
/* Position colors */
|
|
&.qb {
|
|
border-color: rgb(252, 43, 109);
|
|
background: rgba(252, 43, 109, 0.1);
|
|
color: rgb(252, 43, 109);
|
|
}
|
|
|
|
&.rb {
|
|
border-color: rgb(0, 206, 184);
|
|
background: rgba(0, 206, 184, 0.1);
|
|
color: rgb(0, 206, 184);
|
|
}
|
|
|
|
&.wr {
|
|
border-color: rgb(0, 186, 255);
|
|
background: rgba(0, 186, 255, 0.1);
|
|
color: rgb(0, 186, 255);
|
|
}
|
|
|
|
&.te {
|
|
border-color: rgb(255, 174, 88);
|
|
background: rgba(255, 174, 88, 0.1);
|
|
color: rgb(255, 174, 88);
|
|
}
|
|
}
|
|
|
|
.no-games-week {
|
|
text-align: center;
|
|
color: white;
|
|
font-style: italic;
|
|
font-size: 16px;
|
|
padding: 60px 0;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* App footer */
|
|
.app-footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.version {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 11px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Error page */
|
|
.error-container {
|
|
text-align: center;
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
margin-top: 100px;
|
|
max-width: 500px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
|
|
& h1 {
|
|
color: #e74c3c;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
& p {
|
|
color: #666;
|
|
margin-bottom: 30px;
|
|
line-height: 1.6;
|
|
}
|
|
}
|
|
|
|
/* Mobile responsive styles */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.dashboard-header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.scores-summary {
|
|
padding: 12px;
|
|
}
|
|
|
|
.score-row {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.league-info {
|
|
min-width: auto;
|
|
}
|
|
|
|
.score-compact {
|
|
align-self: stretch;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.day-games {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.day-header {
|
|
padding: 12px 15px;
|
|
|
|
& h3 {
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
|
|
.schedule-section {
|
|
& h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
.welcome-container {
|
|
margin-top: 50px;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.app-name {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.username-form {
|
|
gap: 12px;
|
|
|
|
& input,
|
|
& button {
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.week-nav {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
}
|