Skip to content

Commit

Permalink
Made cards responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
jespermhl committed Jul 24, 2024
1 parent c464090 commit 9508f1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def generate_card(title, date, path, author, snippet, image):
if len(filtered_pages) > 3:
more_page_path = os.path.join('more', f"{path_key}.html")
homepage_content += f"""
<div class="card" style="margin: 10px;">
<div class="card home-card" style="margin: 10px;">
<div class="card-body d-flex align-items-center justify-content-center">
<a href='{more_page_path}' class='btn btn-secondary mx-4'>More {section_title}</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main {
gap: 1rem;
}

.card {
.home-card {
max-width: 20%;
flex: 0 0 auto;
}
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h6 class="card-subtitle mb-2 text-muted">Posted on July 24, 2024 by Jesper</h6>
</div>
</div>

<div class="card" style="margin: 10px;">
<div class="card home-card" style="margin: 10px;">
<div class="card-body d-flex align-items-center justify-content-center">
<a href='more/updates.html' class='btn btn-secondary mx-4'>More Updates</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main {
gap: 1rem;
}

.card {
.home-card {
max-width: 20%;
flex: 0 0 auto;
}

0 comments on commit 9508f1e

Please sign in to comment.