-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhero.html
More file actions
219 lines (199 loc) · 6.06 KB
/
hero.html
File metadata and controls
219 lines (199 loc) · 6.06 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>µCSS — Hero</title>
<link rel="stylesheet" href="../dist/mu.css">
</head>
<body>
<main class="container">
<hgroup>
<h1>Hero</h1>
<p>Full-width hero sections with gradient background, badges and call-to-action buttons.</p>
</hgroup>
<p><a href="index.html">← Back to examples</a></p>
<p><button class="btn btn-sm btn-secondary" onclick="document.documentElement.dataset.theme = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark'">Toggle dark mode</button></p>
</main>
<!-- Full hero (primary) -->
<section class="hero hero-primary">
<div class="container">
<h1>µCSS Framework</h1>
<p class="hero-tagline">Lightweight CSS framework built on PicoCSS</p>
<p class="hero-subtitle">20 themes, 14 components, dark mode, zero JavaScript</p>
<div class="hero-badges">
<span class="badge badge-pill">~15 KB gzipped</span>
<span class="badge badge-pill">Zero dependencies</span>
<span class="badge badge-pill">MIT license</span>
</div>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Get Started</a>
<a class="btn btn-secondary" href="#">GitHub</a>
</div>
</div>
</section>
<main class="container">
<section>
<h2>11 color variants</h2>
</section>
</main>
<section class="hero hero-primary">
<div class="container">
<h1>Primary</h1>
<p class="hero-tagline">The default hero color</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-secondary">
<div class="container">
<h1>Secondary</h1>
<p class="hero-tagline">Secondary color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-tertiary">
<div class="container">
<h1>Tertiary</h1>
<p class="hero-tagline">Tertiary color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-contrast">
<div class="container">
<h1>Contrast</h1>
<p class="hero-tagline">Contrast color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-success">
<div class="container">
<h1>Success</h1>
<p class="hero-tagline">Success color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-info">
<div class="container">
<h1>Info</h1>
<p class="hero-tagline">Info color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-warning">
<div class="container">
<h1>Warning</h1>
<p class="hero-tagline">Warning color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-error">
<div class="container">
<h1>Error</h1>
<p class="hero-tagline">Error color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-accent">
<div class="container">
<h1>Accent</h1>
<p class="hero-tagline">Accent color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-pop">
<div class="container">
<h1>Pop</h1>
<p class="hero-tagline">Pop color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<section class="hero hero-spark">
<div class="container">
<h1>Spark</h1>
<p class="hero-tagline">Spark color variant</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<!-- Flat variant -->
<main class="container">
<section>
<h2>Flat variant</h2>
<p>Use <code>.hero-flat</code> for a solid background without gradient.</p>
</section>
</main>
<section class="hero hero-primary hero-flat">
<div class="container">
<h1>Flat Hero</h1>
<p class="hero-tagline">Solid background, no gradient</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<!-- Left-aligned variant -->
<main class="container">
<section>
<h2>Left-aligned variant</h2>
<p>Use <code>.hero-start</code> for left-aligned content.</p>
</section>
</main>
<section class="hero hero-primary hero-start">
<div class="container">
<h1>Left-Aligned</h1>
<p class="hero-tagline">Content aligned to the start</p>
<p class="hero-subtitle">Useful for landing pages with asymmetric layouts</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#">Action</a>
<a class="btn btn-secondary" href="#">Learn more</a>
</div>
</div>
</section>
<!-- Minimal -->
<main class="container">
<section>
<h2>Minimal hero</h2>
<p>Title and tagline only, no badges or actions.</p>
</section>
</main>
<section class="hero hero-secondary">
<div class="container">
<h1>Minimal Hero</h1>
<p class="hero-tagline">Just a title and a tagline</p>
</div>
</section>
</body>
</html>