Skip to content

Commit 902155d

Browse files
committed
cleaning up the layout and the illustration
1 parent 1d4840a commit 902155d

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

src/components/Footer.astro

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
footer {
1111
display: flex;
1212
justify-content: center;
13-
width: 1051px;
13+
max-width: 1051px;
14+
width: 100%;
1415
margin: 1rem auto 0;
1516
padding: 1rem 0;
1617
border-top: 1px solid #ccc;

src/components/Header.astro

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import Nav from "./Nav.astro"
1212
display: flex;
1313
flex-direction: column;
1414
align-items: center;
15-
width: 1051px;
15+
max-width: 1051px;
16+
width: 100%;
1617
margin: 0 auto 1rem;
1718
padding: 0 0 1rem;
1819
border-bottom: 3px solid #ccc;

src/components/Welcome.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33

44
<div id="container">
5-
Welcome to my website!
5+
Spaceships, Comics, Rayguns, Sculptures, Toys & Posters. All I ever wanted to do is draw pictures and make things, so far so good.
66
</div>
77

88
<style>

src/layouts/Layout.astro

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ import Footer from '../components/Footer.astro';
4242
grid-template-rows: auto 1fr auto;
4343
}
4444
main {
45-
width: 1051px;
45+
max-width: 1051px;
46+
width: 100%;
4647
margin: 0 auto;
4748
display: flex;
4849
justify-content: center;

src/pages/jupiterjak.astro

+11-6
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@ import jupiter from "../assets/jupiterjak/jupiter.png";
44
---
55

66
<Layout>
7-
<div>
8-
<img src={jupiter.src} alt="Jupiter Jak, Sales Czar to the Solar System" />
7+
<div class="bg">
8+
<div class="image"></div>
99
</div>
1010
</Layout>
1111

1212
<style>
13-
div {
13+
.bg {
1414
display: flex;
1515
justify-content: center;
1616
width: 100%;
1717
background: #231f20 url('../assets/jupiterjak/stars.png');
1818
}
19-
img {
20-
width: 800px;
21-
height: 600px;
19+
.image {
20+
background-image: url('../assets/jupiterjak/jupiter.png');
21+
background-repeat: no-repeat;
22+
width: 100%;
23+
height: 100%;
24+
background-position: center;
25+
background-size: contain;
26+
max-width: 800px;
2227
}
2328
</style>

0 commit comments

Comments
 (0)