triforce-strategies: add S&P 500 vs anythingn calculator
claude helped with this
This commit is contained in:
parent
81b79a225f
commit
d19f970d48
6 changed files with 969 additions and 2 deletions
181
static/css/fund-comparison.css
Normal file
181
static/css/fund-comparison.css
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
.fund-comparison-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fund-comparison-form {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
background: var(--bg-0);
|
||||
padding: 1rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.form-section h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-color-high-contrast);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--meta-color);
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--divider-color);
|
||||
border-radius: 3px;
|
||||
color: var(--text-color);
|
||||
font-family: var(--code-font);
|
||||
font-size: 0.9rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.form-section-full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.checkbox-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.checkbox-group input[type="checkbox"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.checkbox-group label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.calculate-btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
background: var(--primary-color);
|
||||
color: var(--background-color);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
font-family: var(--sans-serif-font);
|
||||
font-size: 1rem;
|
||||
font-weight: 550;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.calculate-btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
margin-bottom: 2rem;
|
||||
background: var(--bg-2);
|
||||
border-radius: 4px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.chart-container canvas {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.summary-section {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.summary-section h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.summary-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.summary-table th,
|
||||
.summary-table td {
|
||||
padding: 0.5rem 0.75rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--divider-color);
|
||||
}
|
||||
|
||||
.summary-table th {
|
||||
background: var(--bg-0);
|
||||
font-weight: 550;
|
||||
}
|
||||
|
||||
.summary-table td:not(:first-child) {
|
||||
text-align: right;
|
||||
font-family: var(--code-font);
|
||||
}
|
||||
|
||||
.percentiles-details {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.percentiles-details summary {
|
||||
cursor: pointer;
|
||||
color: var(--primary-color);
|
||||
font-weight: 550;
|
||||
}
|
||||
|
||||
.percentiles-table {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.noscript-warning {
|
||||
background: #ff9800;
|
||||
color: #000;
|
||||
padding: 1rem;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.fund-comparison-form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.summary-table {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.summary-table th,
|
||||
.summary-table td {
|
||||
padding: 0.4rem 0.5rem;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue