feat: add intentional reader routes
This commit is contained in:
+185
-7
@@ -2,6 +2,7 @@
|
||||
color: #1e3238;
|
||||
background: #dfe7e9;
|
||||
font-family: Inter, "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -12,6 +13,7 @@ body {
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: #dfe7e9;
|
||||
}
|
||||
|
||||
button,
|
||||
@@ -19,17 +21,193 @@ input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.landing {
|
||||
width: min(42rem, calc(100% - 2rem));
|
||||
margin: 15vh auto;
|
||||
padding: 2rem;
|
||||
.app {
|
||||
width: min(52rem, calc(100% - 2rem));
|
||||
margin: clamp(2rem, 10vh, 6rem) auto;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0 0.25rem 0.75rem;
|
||||
}
|
||||
|
||||
.brand {
|
||||
margin: 0;
|
||||
color: #70858a;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(5.5rem, 1fr));
|
||||
gap: 0.2rem;
|
||||
padding: 0.2rem;
|
||||
border: 1px solid #c1cfd2;
|
||||
border-radius: 0.6rem;
|
||||
background: #f8faf9;
|
||||
}
|
||||
|
||||
.tabs a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.45rem;
|
||||
padding: 0.45rem 0.75rem;
|
||||
border-radius: 0.4rem;
|
||||
color: #70858a;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tabs a[aria-current="page"] {
|
||||
color: #f8faf9;
|
||||
background: #1e3238;
|
||||
}
|
||||
|
||||
.tabs a[aria-current="page"]::before {
|
||||
width: 0.35rem;
|
||||
height: 0.35rem;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.tabs a:focus-visible,
|
||||
button:focus-visible,
|
||||
input:focus-visible {
|
||||
outline: 3px solid #70858a;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.reader {
|
||||
padding: clamp(1.5rem, 5vw, 3rem);
|
||||
border: 1px solid #c1cfd2;
|
||||
border-radius: 1rem;
|
||||
background: #f8faf9;
|
||||
}
|
||||
|
||||
.brand {
|
||||
.reader h1 {
|
||||
max-width: 18ch;
|
||||
margin: 0;
|
||||
font-size: clamp(1.65rem, 5vw, 2.35rem);
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.intro {
|
||||
margin: 0.75rem 0 2rem;
|
||||
color: #70858a;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.2em;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.intent-form {
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
max-width: 36rem;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
color: #1e3238;
|
||||
font-size: 0.84rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.field input {
|
||||
width: 100%;
|
||||
min-height: 2.8rem;
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid #c1cfd2;
|
||||
border-radius: 0.5rem;
|
||||
color: #1e3238;
|
||||
background: #f8faf9;
|
||||
}
|
||||
|
||||
.field input::placeholder {
|
||||
color: #70858a;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.field input[aria-invalid="true"] {
|
||||
border-color: #70858a;
|
||||
}
|
||||
|
||||
.field-error {
|
||||
color: #1e3238;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem 1rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.segmented legend {
|
||||
width: 100%;
|
||||
margin-bottom: 0.1rem;
|
||||
font-size: 0.84rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.segmented label,
|
||||
.check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
.segmented input,
|
||||
.check input {
|
||||
accent-color: #1e3238;
|
||||
}
|
||||
|
||||
.intent-form button {
|
||||
justify-self: start;
|
||||
min-width: 7rem;
|
||||
min-height: 2.7rem;
|
||||
padding: 0.55rem 1rem;
|
||||
border: 1px solid #1e3238;
|
||||
border-radius: 0.5rem;
|
||||
color: #f8faf9;
|
||||
background: #1e3238;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 36rem) {
|
||||
.app {
|
||||
width: min(100% - 1rem, 52rem);
|
||||
margin-block: 1rem;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.reader {
|
||||
border-radius: 0.75rem;
|
||||
}
|
||||
|
||||
.intent-form button {
|
||||
justify-self: stretch;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user