forked from wangziqi/gongxue-base
style: extend legacy student styling to remaining pages
This commit is contained in:
@@ -106,7 +106,7 @@ export default function StudentAiSchoolPage() {
|
||||
const rows = recommendationRows(current);
|
||||
|
||||
return (
|
||||
<View className='student-page'>
|
||||
<View className='student-page ai-school-page'>
|
||||
<View className='student-topbar'>
|
||||
<View className='student-title-block'>
|
||||
<Text className='student-kicker'>AI Advisor</Text>
|
||||
|
||||
@@ -135,7 +135,7 @@ export default function StudentHandbookPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<View className='student-page'>
|
||||
<View className='student-page handbook-page'>
|
||||
<View className='student-topbar'>
|
||||
<View className='student-title-block'>
|
||||
<Text className='student-kicker'>Handbook</Text>
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function StudentHomePage() {
|
||||
];
|
||||
|
||||
return (
|
||||
<View className='student-page'>
|
||||
<View className='student-page home-page'>
|
||||
<View className='topbar'>
|
||||
<View className='home-user'>
|
||||
<View className='home-avatar'>
|
||||
|
||||
@@ -125,7 +125,7 @@ export default function StudentOrderDetailPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<View className='student-page'>
|
||||
<View className='student-page order-detail-page'>
|
||||
<View className='student-topbar'>
|
||||
<View className='student-title-block'>
|
||||
<Text className='student-kicker'>Order</Text>
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function StudentRegionPage() {
|
||||
const currentRegionId = profile?.target?.regionId;
|
||||
|
||||
return (
|
||||
<View className='student-page'>
|
||||
<View className='student-page region-page'>
|
||||
<View className='student-topbar'>
|
||||
<View className='student-title-block'>
|
||||
<Text className='student-kicker'>Region</Text>
|
||||
|
||||
@@ -1782,6 +1782,217 @@
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.home-page .topbar {
|
||||
padding: 2px 0 0;
|
||||
}
|
||||
|
||||
.home-page .brand {
|
||||
color: #111827;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.home-page .subline {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.home-page .hero-band {
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.home-page .home-stat-grid {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.home-page .home-stat {
|
||||
border-color: #f1f5f9;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.home-page .entry-tile {
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.handbook-page .student-subtitle,
|
||||
.ai-school-page .student-subtitle,
|
||||
.order-detail-page .student-subtitle,
|
||||
.region-page .student-subtitle {
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-search-panel,
|
||||
.ai-school-page .list-stack,
|
||||
.order-detail-page .quiet-panel,
|
||||
.region-page .list-stack {
|
||||
border: 1px solid #f1f5f9;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.handbook-page .handbook-search-panel {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-outline {
|
||||
gap: 10px;
|
||||
margin: 16px 0;
|
||||
padding: 14px;
|
||||
border: 1px solid #f1f5f9;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.handbook-page .handbook-outline-chip {
|
||||
min-height: 44px;
|
||||
border-radius: 12px;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-outline-chip.active {
|
||||
background: #1e293b;
|
||||
color: #fff;
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
|
||||
}
|
||||
|
||||
.handbook-page .handbook-outline-index {
|
||||
color: inherit;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-entry-row {
|
||||
border-left: 4px solid #1152d4;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-entry-row.active {
|
||||
border-left-color: #10b981;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-search-snippet {
|
||||
margin-top: 10px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 12px;
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
font-size: 20px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-highlight {
|
||||
border-radius: 5px;
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.handbook-page .handbook-entry-body {
|
||||
margin-top: 14px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.ai-school-page .list-stack {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.ai-school-page .list-row {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ai-school-page .list-row .taro-input,
|
||||
.ai-school-page .list-row .taro-textarea {
|
||||
color: #111827;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.ai-school-page .hero-band {
|
||||
min-height: 220px;
|
||||
margin: 0 0 16px;
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(135deg, #1152d4, #2563eb 58%, #60a5fa);
|
||||
}
|
||||
|
||||
.ai-school-page .hero-title {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.ai-school-page .hero-copy {
|
||||
max-width: 760px;
|
||||
}
|
||||
|
||||
.ai-school-page .toolbar.compact-toolbar {
|
||||
margin: 14px 0;
|
||||
padding: 14px;
|
||||
border: 1px solid #f1f5f9;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.ai-school-page .section:last-child .list-row::after,
|
||||
.region-page .list-row::after {
|
||||
content: "›";
|
||||
position: absolute;
|
||||
right: 18px;
|
||||
top: 50%;
|
||||
color: #cbd5e1;
|
||||
font-size: 34px;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.order-detail-page .quiet-panel {
|
||||
border-color: #bfdbfe;
|
||||
background: linear-gradient(135deg, #eff6ff, #fff 72%);
|
||||
}
|
||||
|
||||
.order-detail-page .amount-text {
|
||||
color: #1152d4;
|
||||
font-size: 44px;
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.order-detail-page .checkout-actions {
|
||||
margin-top: 18px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #dbeafe;
|
||||
}
|
||||
|
||||
.order-detail-page .list-row {
|
||||
min-height: 106px;
|
||||
}
|
||||
|
||||
.region-page {
|
||||
max-width: 880px;
|
||||
}
|
||||
|
||||
.region-page .list-stack {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.region-page .list-row {
|
||||
min-height: 104px;
|
||||
padding-right: 56px;
|
||||
}
|
||||
|
||||
.region-page .list-row.active {
|
||||
border-color: #1152d4;
|
||||
background: linear-gradient(135deg, #eff6ff, #fff);
|
||||
}
|
||||
|
||||
.region-page .list-row.active::before {
|
||||
content: "当前";
|
||||
position: absolute;
|
||||
right: 50px;
|
||||
top: 16px;
|
||||
padding: 3px 9px;
|
||||
border-radius: 7px;
|
||||
background: #facc15;
|
||||
color: #1f2937;
|
||||
font-size: 15px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.student-page {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user