Skip to content

Commit 8147ecf

Browse files
committed
Albums Example layout fixes
- navbar hamburger button - add btn-icon class - align content at bottom of cards - use a valid background color for albums (main content)
1 parent b193830 commit 8147ecf

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

site/src/assets/examples/album/index.astro

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
3030
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true" class="me-2" viewBox="0 0 24 24"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
3131
<strong>Album</strong>
3232
</a>
33-
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
33+
<button class="btn-icon navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
3434
<svg class="navbar-toggler-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"><path d="M1 3.5h14M1 8h14M1 12.5h14"/></svg>
3535
</button>
3636
</div>
@@ -45,14 +45,14 @@ import Placeholder from "@shortcodes/Placeholder.astro"
4545
<h1 class="fw-light">Album example</h1>
4646
<p class="lead fg-2">Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.</p>
4747
<p>
48-
<a href="#" class="btn-solid theme-primary my-2">Main call to action</a>
49-
<a href="#" class="btn-solid theme-secondary my-2">Secondary action</a>
48+
<a href="#" class="btn-solid theme-primary m-2">Main call to action</a>
49+
<a href="#" class="btn-solid theme-secondary m-2">Secondary action</a>
5050
</p>
5151
</div>
5252
</div>
5353
</section>
5454

55-
<div class="album py-5 bg-body-tertiary">
55+
<div class="album py-5 bg-1">
5656
<div class="container">
5757

5858
<div class="row row-cols-1 sm:row-cols-2 md:row-cols-3 g-3">
@@ -61,7 +61,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
6161
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
6262
<div class="card-body">
6363
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
64-
<div class="d-flex justify-content-between align-items-center">
64+
<div class="d-flex justify-content-between align-items-center w-100">
6565
<div class="btn-group">
6666
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
6767
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -76,7 +76,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
7676
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
7777
<div class="card-body">
7878
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
79-
<div class="d-flex justify-content-between align-items-center">
79+
<div class="d-flex justify-content-between align-items-center w-100">
8080
<div class="btn-group">
8181
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
8282
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -91,7 +91,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
9191
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
9292
<div class="card-body">
9393
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
94-
<div class="d-flex justify-content-between align-items-center">
94+
<div class="d-flex justify-content-between align-items-center w-100">
9595
<div class="btn-group">
9696
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
9797
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -107,7 +107,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
107107
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
108108
<div class="card-body">
109109
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
110-
<div class="d-flex justify-content-between align-items-center">
110+
<div class="d-flex justify-content-between align-items-center w-100">
111111
<div class="btn-group">
112112
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
113113
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -122,7 +122,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
122122
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
123123
<div class="card-body">
124124
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
125-
<div class="d-flex justify-content-between align-items-center">
125+
<div class="d-flex justify-content-between align-items-center w-100">
126126
<div class="btn-group">
127127
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
128128
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -137,7 +137,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
137137
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
138138
<div class="card-body">
139139
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
140-
<div class="d-flex justify-content-between align-items-center">
140+
<div class="d-flex justify-content-between align-items-center w-100">
141141
<div class="btn-group">
142142
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
143143
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -153,7 +153,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
153153
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
154154
<div class="card-body">
155155
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
156-
<div class="d-flex justify-content-between align-items-center">
156+
<div class="d-flex justify-content-between align-items-center w-100">
157157
<div class="btn-group">
158158
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
159159
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -168,7 +168,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
168168
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
169169
<div class="card-body">
170170
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
171-
<div class="d-flex justify-content-between align-items-center">
171+
<div class="d-flex justify-content-between align-items-center w-100">
172172
<div class="btn-group">
173173
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
174174
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>
@@ -183,7 +183,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
183183
<Placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" />
184184
<div class="card-body">
185185
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
186-
<div class="d-flex justify-content-between align-items-center">
186+
<div class="d-flex justify-content-between align-items-center w-100">
187187
<div class="btn-group">
188188
<button type="button" class="btn-outline theme-secondary btn-sm">View</button>
189189
<button type="button" class="btn-outline theme-secondary btn-sm">Edit</button>

0 commit comments

Comments
 (0)