Compare commits
2 Commits
becd2f4b27
...
56f1e88172
Author | SHA1 | Date |
---|---|---|
emma | 56f1e88172 | |
emma | 22f0f0bad1 |
12
index.php
12
index.php
|
@ -11,7 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<?php include "./includes/nav.php" ?>
|
<?php include "./includes/nav.php" ?>
|
||||||
<main>
|
<main>
|
||||||
<section>
|
<section class="welcome-section">
|
||||||
<img src="img/baxter-welcome.webp" alt="My cat Baxter, sitting in a cardboard box looking at the camera.">
|
<img src="img/baxter-welcome.webp" alt="My cat Baxter, sitting in a cardboard box looking at the camera.">
|
||||||
|
|
||||||
<h1>Welcome to the homepage of all things Baxter!</h1>
|
<h1>Welcome to the homepage of all things Baxter!</h1>
|
||||||
|
@ -34,8 +34,9 @@
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section class="baxter-info">
|
||||||
<h3>Baxter facts!</h3>
|
<h3 class="facts-header">Baxter facts!</h3>
|
||||||
|
<div class="baxter-is">
|
||||||
<p>Baxter is:</p>
|
<p>Baxter is:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>A cat</li>
|
<li>A cat</li>
|
||||||
|
@ -52,7 +53,9 @@
|
||||||
<li>A fan of changes in routine</li>
|
<li>A fan of changes in routine</li>
|
||||||
<li>Anything other than amazing</li>
|
<li>Anything other than amazing</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="baxter-loves">
|
||||||
<p>Baxter loves:</p>
|
<p>Baxter loves:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Pets</li>
|
<li>Pets</li>
|
||||||
|
@ -68,9 +71,10 @@
|
||||||
<li>Closed doors</li>
|
<li>Closed doors</li>
|
||||||
<li>Not getting enough cuddle time</li>
|
<li>Not getting enough cuddle time</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section class="favorite-baxter-photos">
|
||||||
<h3>My favorite photos of Baxter</h3>
|
<h3>My favorite photos of Baxter</h3>
|
||||||
<figure>
|
<figure>
|
||||||
<img src="./img/posed-baxter.jpg" alt="My cat Baxter laying on my chest over a blanket in bed looking at the camera. The many details and patterns of his mackeral tabby fur pattern are fully visible">
|
<img src="./img/posed-baxter.jpg" alt="My cat Baxter laying on my chest over a blanket in bed looking at the camera. The many details and patterns of his mackeral tabby fur pattern are fully visible">
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
*, *::before, *::after {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
width: 50rem;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baxter-info {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1.5rem 1fr;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
justify-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
width: 50rem;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baxter-info p {
|
||||||
|
margin: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baxter-info ul {
|
||||||
|
margin: 1rem;
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.facts-header {
|
||||||
|
grid-column: 1/4;
|
||||||
|
grid-row: 1/2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baxter-is {
|
||||||
|
grid-column: 1/3;
|
||||||
|
grid-row: 2/3;
|
||||||
|
padding-right: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.baxter-loves {
|
||||||
|
grid-column: 2/4;
|
||||||
|
grid-row: 2/3;
|
||||||
|
padding-left: 5rem;
|
||||||
|
}
|
Loading…
Reference in New Issue