Skip to content

Commit

Permalink
Fix about page
Browse files Browse the repository at this point in the history
  • Loading branch information
jotonedev committed Mar 1, 2024
1 parent a317b50 commit fa26a58
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
jekyll-theme-tallneck (0.2.4)
jekyll-theme-tallneck (0.2.6)
jekyll (>= 4.0, < 5.0)
jekyll-feed (~> 0.17)
jekyll-seo-tag (~> 2.8)
Expand Down
2 changes: 1 addition & 1 deletion _includes/post-card.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<article class="post-card" id="{{ include.post.id }}">
<a href="{{ include.post.url | relative_url }}" class="post-card--link post-card--flex">
<div class="post-card--image">
<img src="{{ include.post.image | relative_url }}" alt="{{ include.post.title }}" aria-hidden="true">
<img src="{{ include.post.image | relative_url }}" alt="{{ include.post.title }}" aria-hidden="true" width="900" height="640">
</div>
<div class="post-card--content">
<h2 class="post-card--title">{{ include.post.title }}</h2>
Expand Down
17 changes: 13 additions & 4 deletions _sass/tallneck/components/about.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.about {
display: flex;
flex-flow: row wrap;
display: grid;
grid-template-columns: minmax($about-img-min-width, $about-img-max-width) 1fr;
grid-template-rows: auto;

@media (max-width: $about-wrap-max-width) {
grid-template-columns: 1fr;
}

justify-content: space-between;

margin-left: auto;
Expand All @@ -14,8 +20,11 @@
flex: 1 1 38%;
align-self: center;

min-width: 250px;
max-width: 500px;
width: 100%;
height: auto;

max-width: $about-img-max-width;
min-width: $about-img-min-width;

margin-left: auto;
margin-right: auto;
Expand Down
4 changes: 4 additions & 0 deletions _sass/tallneck/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ $card-max-width: 18rem !default;
$card-min-width: 16rem !default;
$card-min-height: 400px !default;

$about-img-min-width: 250px !default;
$about-img-max-width: 400px !default;
$about-wrap-max-width: 800px !default;

// Colors
:root {
--background-color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion jekyll-theme-tallneck.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "jekyll-theme-tallneck"
spec.version = "0.2.5"
spec.version = "0.2.6"
spec.authors = ["John Toniutti"]
spec.email = ["[email protected]"]

Expand Down

0 comments on commit fa26a58

Please sign in to comment.