Skip to content

Commit 701aae7

Browse files
committed
fixing homepage image
1 parent e45be64 commit 701aae7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/routes/home/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Home = () => (
55
<div class={style.home}>
66
<div class={style.about}>
77
<div class={style.imageContainer}>
8-
<img class={style.image} src="/assets/profile.jpg" />
8+
<div class={style.image} />
99
</div>
1010
<div class={style.quote}>
1111
<div class={style.details}>

src/routes/home/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
}
1313

1414
.image {
15-
height: 30vw;
15+
height: 30vw;
16+
background-image: url(/assets/profile.jpg);
17+
background-size: cover;
18+
background-position: center;
1619
}
1720

1821
.quote {
@@ -75,7 +78,7 @@
7578
}
7679

7780
.image {
78-
height: auto;
81+
height: 50vw;
7982
width: 100%;
8083
}
8184

0 commit comments

Comments
 (0)