initial commit
This commit is contained in:
@@ -0,0 +1,521 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--background: #f4f6f8;
|
||||
--panel: #ffffff;
|
||||
--ink: #172033;
|
||||
--muted: #667085;
|
||||
--line: #d8dee7;
|
||||
--teal: #00796b;
|
||||
--teal-dark: #00564d;
|
||||
--amber: #f2a413;
|
||||
--coral: #d45b45;
|
||||
--rain: #3d7ea6;
|
||||
--snow: #7b8794;
|
||||
--shadow: 0 16px 40px rgb(23 32 51 / 10%);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: linear-gradient(135deg, #f4f6f8 0%, #eef3f1 48%, #f8f4f0 100%);
|
||||
color: var(--ink);
|
||||
font-family:
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
width: min(1120px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 32px 0 28px;
|
||||
}
|
||||
|
||||
.topbar,
|
||||
.current-panel,
|
||||
.day-card,
|
||||
.alert {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: rgb(255 255 255 / 86%);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 4px;
|
||||
color: var(--teal-dark);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
font-size: clamp(1.35rem, 2.4vw, 2.2rem);
|
||||
line-height: 1.1;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.search {
|
||||
display: flex;
|
||||
width: min(420px, 100%);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.search input,
|
||||
.search button {
|
||||
min-height: 44px;
|
||||
border-radius: 8px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.search input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 1px solid var(--line);
|
||||
padding: 0 14px;
|
||||
color: var(--ink);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.search button {
|
||||
border: 0;
|
||||
padding: 0 18px;
|
||||
background: var(--teal);
|
||||
color: #ffffff;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.search button:hover,
|
||||
.search button:focus-visible {
|
||||
background: var(--teal-dark);
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin-top: 16px;
|
||||
padding: 16px;
|
||||
color: #762315;
|
||||
background: #fff4f1;
|
||||
}
|
||||
|
||||
.current-panel {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
|
||||
gap: 22px;
|
||||
margin-top: 20px;
|
||||
padding: 22px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.condition-sun {
|
||||
border-color: rgb(242 164 19 / 45%);
|
||||
}
|
||||
|
||||
.condition-cloud {
|
||||
border-color: rgb(123 135 148 / 40%);
|
||||
}
|
||||
|
||||
.condition-rain,
|
||||
.condition-storm {
|
||||
border-color: rgb(61 126 166 / 45%);
|
||||
}
|
||||
|
||||
.condition-snow {
|
||||
border-color: rgb(123 135 148 / 40%);
|
||||
}
|
||||
|
||||
.current-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.current-summary h2 {
|
||||
margin-bottom: 4px;
|
||||
font-size: clamp(3.2rem, 8vw, 5.8rem);
|
||||
line-height: 0.95;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.condition-label {
|
||||
margin-bottom: 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.08rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.metrics,
|
||||
.day-metrics {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.metrics div,
|
||||
.day-metrics div {
|
||||
min-width: 0;
|
||||
border: 1px solid #e7ebf0;
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
dt {
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 5px 0 0;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.forecast-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.day-card {
|
||||
min-height: 255px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.day-header {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
min-height: 58px;
|
||||
}
|
||||
|
||||
.day-header h2 {
|
||||
margin-bottom: 3px;
|
||||
font-size: 1rem;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.day-header p {
|
||||
margin-bottom: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.day-metrics {
|
||||
grid-template-columns: 1fr;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.day-metrics div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
min-height: 40px;
|
||||
padding: 9px 10px;
|
||||
}
|
||||
|
||||
.day-metrics dd {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.weather-art,
|
||||
.mini-art {
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.weather-art {
|
||||
width: 118px;
|
||||
height: 118px;
|
||||
}
|
||||
|
||||
.mini-art {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
.weather-art span,
|
||||
.mini-art span,
|
||||
.weather-art::before,
|
||||
.mini-art::before,
|
||||
.weather-art::after,
|
||||
.mini-art::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sun,
|
||||
.mini-art.sun {
|
||||
background: rgb(242 164 19 / 18%);
|
||||
}
|
||||
|
||||
.sun span,
|
||||
.mini-art.sun span {
|
||||
width: 48%;
|
||||
height: 48%;
|
||||
border-radius: 50%;
|
||||
background: var(--amber);
|
||||
box-shadow: 0 0 0 10px rgb(242 164 19 / 16%);
|
||||
}
|
||||
|
||||
.cloud,
|
||||
.mini-art.cloud {
|
||||
background: rgb(123 135 148 / 14%);
|
||||
}
|
||||
|
||||
.cloud span,
|
||||
.rain span,
|
||||
.snow span,
|
||||
.storm span,
|
||||
.mini-art.cloud span,
|
||||
.mini-art.rain span,
|
||||
.mini-art.snow span,
|
||||
.mini-art.storm span {
|
||||
width: 58%;
|
||||
height: 28%;
|
||||
border-radius: 999px;
|
||||
background: #7b8794;
|
||||
}
|
||||
|
||||
.cloud span::before,
|
||||
.rain span::before,
|
||||
.snow span::before,
|
||||
.storm span::before,
|
||||
.mini-art.cloud span::before,
|
||||
.mini-art.rain span::before,
|
||||
.mini-art.snow span::before,
|
||||
.mini-art.storm span::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 12%;
|
||||
bottom: 35%;
|
||||
width: 34%;
|
||||
height: 85%;
|
||||
border-radius: 50%;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.cloud span::after,
|
||||
.rain span::after,
|
||||
.snow span::after,
|
||||
.storm span::after,
|
||||
.mini-art.cloud span::after,
|
||||
.mini-art.rain span::after,
|
||||
.mini-art.snow span::after,
|
||||
.mini-art.storm span::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 10%;
|
||||
bottom: 26%;
|
||||
width: 42%;
|
||||
height: 110%;
|
||||
border-radius: 50%;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.rain,
|
||||
.mini-art.rain {
|
||||
background: rgb(61 126 166 / 14%);
|
||||
}
|
||||
|
||||
.rain span,
|
||||
.mini-art.rain span {
|
||||
background: var(--rain);
|
||||
}
|
||||
|
||||
.rain::after,
|
||||
.mini-art.rain::after {
|
||||
width: 38%;
|
||||
height: 26%;
|
||||
border-right: 3px solid var(--rain);
|
||||
border-left: 3px solid var(--rain);
|
||||
transform: translateY(75%) skewX(-15deg);
|
||||
}
|
||||
|
||||
.snow,
|
||||
.mini-art.snow {
|
||||
background: rgb(123 135 148 / 14%);
|
||||
}
|
||||
|
||||
.snow span,
|
||||
.mini-art.snow span {
|
||||
background: var(--snow);
|
||||
}
|
||||
|
||||
.snow::after,
|
||||
.mini-art.snow::after {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #aeb8c4;
|
||||
box-shadow: -14px 4px 0 #aeb8c4, 14px 4px 0 #aeb8c4;
|
||||
transform: translateY(95%);
|
||||
}
|
||||
|
||||
.storm,
|
||||
.mini-art.storm {
|
||||
background: rgb(212 91 69 / 14%);
|
||||
}
|
||||
|
||||
.storm span,
|
||||
.mini-art.storm span {
|
||||
background: var(--coral);
|
||||
}
|
||||
|
||||
.storm::after,
|
||||
.mini-art.storm::after {
|
||||
width: 14%;
|
||||
height: 32%;
|
||||
background: var(--amber);
|
||||
clip-path: polygon(45% 0, 100% 0, 68% 44%, 100% 44%, 22% 100%, 45% 55%, 8% 55%);
|
||||
transform: translateY(70%);
|
||||
}
|
||||
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: var(--teal-dark);
|
||||
font-weight: 800;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.topbar,
|
||||
.current-panel {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.forecast-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.page-shell {
|
||||
width: min(100% - 20px, 1120px);
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.search {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.current-summary {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.weather-art {
|
||||
width: 86px;
|
||||
height: 86px;
|
||||
}
|
||||
|
||||
.current-summary h2 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.metrics,
|
||||
.forecast-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
footer {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user