-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeachingPracticePageShell.astro
More file actions
96 lines (84 loc) · 1.8 KB
/
TeachingPracticePageShell.astro
File metadata and controls
96 lines (84 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
import BaseLayout from "@/layouts/BaseLayout.astro";
---
<BaseLayout>
<div class="practice-page">
<section class="hero-section">
<div class="hero-shell">
<slot name="hero" />
</div>
</section>
<section class="overview-section">
<slot name="overview" />
<slot name="cards" />
</section>
<section class="showcase-section">
<slot name="showcases" />
</section>
</div>
</BaseLayout>
<style>
.practice-page {
width: min(1200px, calc(100% - 32px));
margin: 0 auto;
padding: 32px 0 96px;
display: flex;
flex-direction: column;
gap: 72px;
}
.hero-section {
padding-top: 12px;
}
.hero-shell {
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
text-align: center;
}
.hero-shell :global(.container) {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding-inline: 0;
}
.hero-shell :global(.fluid-title) {
width: min(100%, 12ch);
text-align: center;
font-size: clamp(2.8rem, 8vw, 4.4rem);
line-height: 1.05;
margin-bottom: 0;
white-space: normal;
text-wrap: balance;
}
.hero-shell :global(.fluid-subtitle) {
width: min(100%, 42rem);
margin-top: 0;
margin-left: 0;
margin-right: 0;
max-width: min(42rem, 100%);
text-align: center;
font-size: clamp(0.95rem, 1vw + 0.5rem, 1.15rem);
line-height: 1.75;
}
.overview-section,
.showcase-section {
display: flex;
flex-direction: column;
gap: 24px;
}
@media (max-width: 900px) {
.practice-page {
width: min(100%, calc(100% - 20px));
gap: 56px;
padding-bottom: 72px;
}
}
@media (max-width: 640px) {
.practice-page {
padding-top: 20px;
}
}
</style>