Skip to content

Commit

Permalink
Align header logo and website description
Browse files Browse the repository at this point in the history
  • Loading branch information
dreezyduh committed Jan 30, 2024
1 parent 6c91302 commit b295e53
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# landingpage-project
Project using `learned css skills in order to test current knowledge
Project using learned css skills in order to test current knowledge
32 changes: 17 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,24 @@
</head>
<body>
<div class="hero">
<div class="first-part">
<div class="header">Header Logo</div>
<ul>
<li><a href="#">header link one</a></li>
<li><a href="#">header link two</a></li>
<li><a href="#">header link three</a></li>
</ul>
</div>
<div class="second-part">
<div class="leftdescrip">
<div class="description">This website is awesome</div>
<div class="subtext">This website has some subtext that goes here under the main title. It's a smaller font and the color is lower contrast</div>
<button class="button">Sign up</button>
<div class="header-container">
<div class="first-part">
<div class="header">Header Logo</div>
<ul>
<li><a href="#">header link one</a></li>
<li><a href="#">header link two</a></li>
<li><a href="#">header link three</a></li>
</ul>
</div>
<div class="rightdescrip">
<img src="./images/porci.png" alt="porci pe wow">
<div class="second-part">
<div class="leftdescrip">
<div class="description">This website is awesome</div>
<div class="subtext">This website has some subtext that goes here under the main title. It's a smaller font and the color is lower contrast</div>
<button class="button">Sign up</button>
</div>
<div class="rightdescrip">
<img src="./images/porci.png" alt="porci pe wow">
</div>
</div>
</div>
</div>
Expand Down
14 changes: 6 additions & 8 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ body {
.hero {
background-color: #1F2937;
display: flex;
flex: 1;
flex-direction: column;
padding: 16px;
justify-content: center;

}

.first-part {
display: flex;
align-items: center;
justify-content: space-evenly;
justify-content: space-between;
margin: 0;
padding: 0;
}

.header {
Expand All @@ -42,8 +42,7 @@ body {

.second-part {
display: flex;
justify-content: center;
align-items: center;
justify-content: space-between;
margin-top: 60px;
margin-bottom: 60px;
text-wrap: wrap;
Expand Down Expand Up @@ -145,8 +144,6 @@ a {

.adbutton {
padding: 150px;
display: flex;
justify-content: center;
}

.adbutton-container{
Expand Down Expand Up @@ -176,6 +173,7 @@ a {
color: #F9FAF8;
font-size: 20px;
width: 150px;
flex-shrink: 0;
}

.footer {
Expand Down

0 comments on commit b295e53

Please sign in to comment.