Skip to content

Commit 07eac49

Browse files
author
Arthur
committed
The footer is placed in the center of the bottom.
The picture has changed differently.
1 parent e4b2713 commit 07eac49

4 files changed

Lines changed: 31 additions & 30 deletions

File tree

Wireframe/git-branches.png

24.1 KB
Loading

Wireframe/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ <h2>Featured Article</h2>
2020
<img
2121
src="https://media2.dev.to/dynamic/image/width=1280,height=720,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbqwje91mhujxu2gk5p83.jpg"
2222
alt="readme">
23-
<h3> What is the purpose of a README file? </h3>
23+
<h2> What is the purpose of a README file? </h2>
2424
<p>
2525
A README file is a markdown document that provides an introduction and documentation for a project hosted on
2626
GitHub. It is usually placed in the root directory of a repository and is automatically displayed on the
2727
repository’s main page.
2828
</p>
2929

30-
<h4>Other Purposes of a README File</h4>
30+
<h3>Other Purposes of a README File</h3>
3131
<ul>
3232
<li>Provides an overview of the project</li>
3333
<li>Describes installation and setup </li>
@@ -56,7 +56,7 @@ <h2>What is the purpose of a wireframe?</h2>
5656
</article>
5757

5858
<article class="side-card">
59-
<img src="https://images.surferseo.art/5f496a4a-799c-4502-8e9e-2f396dae9c91.png" alt="Branch in Git">
59+
<img src="git-branches.png" alt="Branch in Git">
6060
<h2>What is a branch in Git?</h2>
6161
<p>In Git, a branch is like a separate workspace where you can make changes and try new ideas without affecting
6262
the main project. Think of it as a " parallel universe " for your code. </p>

Wireframe/short link image.png

-18.9 KB
Binary file not shown.

Wireframe/style.css

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.page-header{
2-
display:flex;
3-
flex-direction:column;
4-
align-items: center;
5-
justify-content: center;
6-
text-align: center;
7-
min-height: 300px;
8-
background-color: #f4f4f4;
1+
.page-header {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
justify-content: center;
6+
text-align: center;
7+
min-height: 300px;
8+
background-color: #f4f4f4;
99
}
1010

1111
.page-header h1 {
@@ -26,11 +26,13 @@ body {
2626
color: var(--ink);
2727
font: var(--font);
2828
}
29+
2930
a {
3031
padding: var(--space);
3132
border: var(--line);
3233
max-width: fit-content;
3334
}
35+
3436
img,
3537
svg {
3638
width: 100%;
@@ -41,58 +43,57 @@ svg {
4143
display: grid;
4244
grid-template-columns: 1fr 1fr;
4345
gap: var(--space);
44-
46+
4547
max-width: var(--container);
46-
48+
4749
margin: 0 auto calc(var(--space) * 4) auto;
4850
}
4951

50-
.main-wrapper > *:first-child {
52+
.main-wrapper>*:first-child {
5153
grid-column: span 2;
5254
}
5355

5456
footer {
5557
position: fixed;
5658
bottom: 0;
59+
left: 0;
60+
right: 0;
61+
margin: 0 auto;
5762
text-align: center;
5863
}
5964

6065

6166
article {
6267
border: var(--line);
6368
padding-bottom: var(--space);
64-
display: flex;
65-
flex-direction: column;
66-
67-
height: 100%;
68-
69+
display: flex;
70+
flex-direction: column;
6971
padding: 0 var(--space) var(--space) var(--space);
70-
71-
overflow:hidden;
72+
overflow: hidden;
7273
}
7374

74-
article img{
75-
width: calc(100% + (var(--space) *2));
76-
margin-left: calc(var(--space)* -1);
75+
article img {
76+
width: 100%;
7777
height: 250px;
7878
object-fit: cover;
79-
margin-bottom: var(--space);
79+
display: block;
80+
flex-shrink: 0;
8081
}
8182

8283
article h2 {
83-
min-height: 5em;
84+
height: 4.0em;
8485
display: flex;
85-
align-items: center; /* Vertically centers the text if it's only one line */
86+
align-items: flex-start;
8687
margin-top: 0;
8788
margin-bottom: var(--space);
8889
}
8990

90-
article p{
91+
article p {
9192
flex-grow: 1;
9293
margin-bottom: var(--space);
9394
}
9495

95-
article a{
96+
article a {
9697
margin-top: auto;
9798
align-self: flex-start;
98-
}
99+
}

0 commit comments

Comments
 (0)