Skip to content

Commit 5546b97

Browse files
committed
fix: home view under lg breakpoint
1 parent 352a808 commit 5546b97

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

assets/sass/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ $side-bar-size: 300px;
273273
}
274274
}
275275

276+
.my-home-profile-img {
277+
max-width: Min(400px, 100%);
278+
}
279+
276280
.my-name {
277281
font-family: "Roboto Condensed", sans-serif;
278282
padding: 1rem;

layouts/_default/home.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{{ define "main" }}
22
<div class="container p-3">
33
<div class="my-home">
4-
<div class="align-self-center" style="flex-basis:33%">
5-
<img
6-
src="/profile.jpg"
7-
class="img-fluid img-thumbnail d-block my-auto"
8-
alt="Profile Picture"
9-
/>
10-
</div>
11-
<div class="p-3" style="flex-basis:66%">
12-
{{ .Content }}
4+
<div class="row">
5+
<div class="align-self-center col-12 col-lg-4">
6+
<img
7+
src="/profile.jpg"
8+
class="img-fluid img-thumbnail my-home-profile-img d-block mx-auto"
9+
alt="Profile Picture"
10+
/>
11+
</div>
12+
<div class="p-3 col-12 col-lg-8">
13+
{{ .Content }}
14+
</div>
1315
</div>
1416
</div>
1517
</div>

0 commit comments

Comments
 (0)