fix(auth): rebalance account introduction typography and spacing
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { Brand } from "../components/Brand";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { useEffect, useState, type FormEvent } from "react";
|
import { useEffect, useState, type FormEvent } from "react";
|
||||||
@@ -12,7 +11,6 @@ import {
|
|||||||
Link2,
|
Link2,
|
||||||
LogOut,
|
LogOut,
|
||||||
MailCheck,
|
MailCheck,
|
||||||
Waypoints,
|
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import GuidanceShell, { useGuidanceAccount } from "@/components/GuidanceShell";
|
import GuidanceShell, { useGuidanceAccount } from "@/components/GuidanceShell";
|
||||||
import { Notice } from "@/components/GuidanceUI";
|
import { Notice } from "@/components/GuidanceUI";
|
||||||
@@ -115,9 +113,6 @@ function AccountContent() {
|
|||||||
return (
|
return (
|
||||||
<div className={s.accountLayout}>
|
<div className={s.accountLayout}>
|
||||||
<section className={s.accountIntro}>
|
<section className={s.accountIntro}>
|
||||||
<span className={s.accountSymbol}>
|
|
||||||
<Brand compact/>
|
|
||||||
</span>
|
|
||||||
<span className={s.eyebrow}>YOUR KNOWLEDGE, CONNECTED</span>
|
<span className={s.eyebrow}>YOUR KNOWLEDGE, CONNECTED</span>
|
||||||
<h1>
|
<h1>
|
||||||
让有用的知识,
|
让有用的知识,
|
||||||
|
|||||||
@@ -1680,63 +1680,67 @@
|
|||||||
}
|
}
|
||||||
.accountLayout {
|
.accountLayout {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) 410px;
|
grid-template-columns: minmax(0, 1fr) 400px;
|
||||||
max-width: 990px;
|
max-width: 1000px;
|
||||||
gap: 70px;
|
gap: 80px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 50px auto 70px;
|
margin: 40px auto 64px;
|
||||||
}
|
}
|
||||||
.accountIntro {
|
.accountIntro {
|
||||||
padding: 20px 0;
|
min-width: 0;
|
||||||
|
max-width: 460px;
|
||||||
|
padding: 16px 20px 16px 8px;
|
||||||
}
|
}
|
||||||
.accountSymbol {
|
.accountIntro > .eyebrow {
|
||||||
width: 54px;
|
display: block;
|
||||||
height: 54px;
|
margin-bottom: 20px;
|
||||||
display: grid;
|
font-size: 11px;
|
||||||
place-items: center;
|
letter-spacing: .14em;
|
||||||
background: var(--selection);
|
line-height: 1.6;
|
||||||
border: 1px solid var(--selection-border);
|
|
||||||
border-radius: 14px;
|
|
||||||
color: var(--primary);
|
|
||||||
margin-bottom: 28px;
|
|
||||||
}
|
}
|
||||||
.accountIntro h1 {
|
.accountIntro h1 {
|
||||||
font-size: 32px;
|
margin: 0 0 22px;
|
||||||
line-height: 1.5;
|
font-size: 36px;
|
||||||
letter-spacing: -1px;
|
line-height: 1.45;
|
||||||
|
letter-spacing: -.035em;
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
margin-bottom: 17px;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
.accountIntro > p {
|
.accountIntro > p {
|
||||||
font-size: 13px;
|
margin: 0;
|
||||||
|
font-size: 15px;
|
||||||
line-height: 1.9;
|
line-height: 1.9;
|
||||||
color: var(--muted-foreground);
|
color: var(--muted-foreground);
|
||||||
max-width: 360px;
|
max-width: 380px;
|
||||||
}
|
}
|
||||||
.accountFeatures {
|
.accountFeatures {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 21px;
|
gap: 22px;
|
||||||
margin-top: 35px;
|
margin-top: 32px;
|
||||||
|
padding-top: 26px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
.accountFeatures > div {
|
.accountFeatures > div {
|
||||||
display: flex;
|
display: grid;
|
||||||
align-items: flex-start;
|
grid-template-columns: 20px minmax(0, 1fr);
|
||||||
gap: 12px;
|
align-items: start;
|
||||||
|
gap: 14px;
|
||||||
}
|
}
|
||||||
.accountFeatures svg {
|
.accountFeatures svg {
|
||||||
color: var(--muted-foreground);
|
color: var(--muted-foreground);
|
||||||
margin-top: 2px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
.accountFeatures strong {
|
.accountFeatures strong {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
|
line-height: 1.6;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.accountFeatures p {
|
.accountFeatures p {
|
||||||
font-size: 11px;
|
margin: 4px 0 0;
|
||||||
|
font-size: 13px;
|
||||||
color: var(--muted-foreground);
|
color: var(--muted-foreground);
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
margin-top: 5px;
|
|
||||||
}
|
}
|
||||||
.authCard {
|
.authCard {
|
||||||
padding: 28px;
|
padding: 28px;
|
||||||
@@ -1923,12 +1927,9 @@
|
|||||||
gap: 20px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
.accountLayout {
|
.accountLayout {
|
||||||
gap: 35px;
|
gap: 48px;
|
||||||
grid-template-columns: minmax(0, 1fr) 370px;
|
grid-template-columns: minmax(0, 1fr) 370px;
|
||||||
}
|
}
|
||||||
.accountIntro h1 {
|
|
||||||
font-size: 29px;
|
|
||||||
}
|
|
||||||
.protocolLayout {
|
.protocolLayout {
|
||||||
grid-template-columns: minmax(0, 1fr) 190px;
|
grid-template-columns: minmax(0, 1fr) 190px;
|
||||||
}
|
}
|
||||||
@@ -1975,19 +1976,23 @@
|
|||||||
gap: 25px;
|
gap: 25px;
|
||||||
}
|
}
|
||||||
.accountIntro {
|
.accountIntro {
|
||||||
padding: 0;
|
padding: 0 4px;
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
.accountIntro > .eyebrow {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
.accountIntro h1 {
|
.accountIntro h1 {
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
.accountSymbol,
|
|
||||||
.accountFeatures {
|
.accountFeatures {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.accountIntro > p {
|
.accountIntro > p {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.accountIntro h1 br {
|
.accountIntro h1 br {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -2310,10 +2315,7 @@
|
|||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
.accountIntro > p {
|
.accountIntro > p {
|
||||||
font-size: 11px;
|
font-size: 14px;
|
||||||
}
|
|
||||||
.accountSymbol {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
.modalBody {
|
.modalBody {
|
||||||
padding: 23px;
|
padding: 23px;
|
||||||
|
|||||||
Reference in New Issue
Block a user