add weekends left calculator
This commit is contained in:
parent
427ba433db
commit
dc791ae47c
5 changed files with 477 additions and 0 deletions
168
static/css/weekends-left.css
Normal file
168
static/css/weekends-left.css
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
.weekends-left-calculator {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.weekends-form {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.form-group input[type="number"] {
|
||||
padding: 0.5rem;
|
||||
font-size: 1rem;
|
||||
border: 1px solid var(--border-color, #ccc);
|
||||
border-radius: 4px;
|
||||
background-color: var(--bg-0, #fff);
|
||||
color: var(--text-color, #000);
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.weekends-results {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-stat {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-value {
|
||||
font-size: 4rem;
|
||||
font-weight: 700;
|
||||
color: var(--primary-color, #007bff);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.hero-label {
|
||||
display: block;
|
||||
font-size: 1rem;
|
||||
color: var(--text-color, #666);
|
||||
opacity: 0.8;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.weekends-stat {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.waking-hours-stat {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-color, #666);
|
||||
opacity: 0.6;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.grid-container {
|
||||
margin-top: 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.grid-legend {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-color, #666);
|
||||
}
|
||||
|
||||
.legend-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.legend-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: var(--primary-color, #007bff);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.legend-dot.used {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.weekends-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.grid-cell {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background-color: var(--primary-color, #007bff);
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.grid-cell.used {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.grid-cell.current {
|
||||
outline: 2px solid var(--text-color, #000);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.grid-overflow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-color, #666);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.grid-milestones {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-color, #666);
|
||||
opacity: 0.6;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
margin-top: 1.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--primary-color, #007bff);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.download-btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.form-row {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.hero-value {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.grid-cell {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue