Skip to content

Commit

Permalink
Refactor to resize assets on desktop viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
fscek committed Mar 20, 2024
1 parent 6541d2b commit f90574c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ footer {
border-radius: 5px; /* adds rounded corners for a softer look */
}

/* media query for desktop screens */
@media (min-width: 768px) { /* adjust the breakpoint as needed */
.release-image {
max-width: 30%; /* smaller max-width for larger screens */
}
}

.release-description {
padding-top: 10px; /* Adds padding above the description */
padding-bottom: 10px; /* Adds padding below the description */
Expand All @@ -416,6 +423,13 @@ footer {
border-radius: 5px; /* adds rounded corners for a softer look */
}

/* media query for desktop screens */
@media (min-width: 768px) { /* adjust the breakpoint as needed */
.mix-image {
max-width: 30%; /* smaller max-width for larger screens */
}
}

.mix-description {
padding-top: 10px; /* padding above the description */
padding-bottom: 10px; /* padding below the description */
Expand Down
2 changes: 1 addition & 1 deletion assets/data/releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
"title": "'hype kids' mixtape",
"releaseDate": "2015-10-27",
"year": 2015,
"description": "shout out to mops for the tag<br><br>mixtape/album, digital, self-released",
"description": "shout out to mops for the piece<br><br>mixtape/album, digital, self-released",
"image": "https://cdn.jsdelivr.net/gh/fscek/szch-me-assets/images/music/2015/releases/2015_hype_kids_mixtape.webp",
"links": [
{"platform": "Bandcamp", "url": "https://szch.bandcamp.com/track/hype-kids-mixtape"}
Expand Down

0 comments on commit f90574c

Please sign in to comment.