Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions first/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* width: calc(100%/3 - 110px); */

body {
font-family: sans-serif;
width: 85%;
margin: 0 auto;
}

.box-wrp {
display: flex;
justify-content: space-evenly;
}

.box {
height: 200px;
width: 100%;
margin: 25px;
}

.one {
background-color: red;
}

.two {
background-color: skyblue;
}

.three {
background-color: grey;
}

.text-block {
padding: 25px;
font-size: 24px;s
}

.center {
margin: 0 auto;
}

.full-height {
height: 100%;
}

.width-85 {
width: 85%;
}

.width-75 {
width: 75%;
}

.width-33 {
width: 33%;
}

.pull-left {
float: left;
}

.pull-right {
float: right;
}

.content-box {
height: 500px;
margin: 25px
}

footer {
margin: 25px;
height: 150px;
}

.box-blue {
background-color: skyblue;
}
35 changes: 35 additions & 0 deletions first/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>First </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="box-wrp">
<div class="box one"> </div>
<div class="box two"> </div>
<div class="box three"> </div>
</div>

<div class="text-block">
<p>Lorem ipsum dolor sit amet, tempor labore sadipscing over the years, and a great idea, but you should work per month exciting Eirmod tempor diam erat, sed diam of the project. But, in truth, two minutes, and just, and feel, and the things to preview them. At vero eos, no hendreri is lorem ipsum carrots. Lorem ipsum carrots, consetetur sadipscing over the years, but the throw nonumy</p>

<p>Lorem ipsum dolor sit amet, tempor labore sadipscing over the years, and a great idea, but you should work per month exciting Eirmod tempor diam erat, sed diam of the project. But, in truth, two minutes, and just, and feel, and the things to preview them. At vero eos, no hendreri is lorem ipsum carrots.</p>
</div>

<div class="content-box two">
<div class="one full-height width-33 pull-left"></div>
</div>

<footer class="box-blue">
<div class="width-33 full-height pull-right one">
<div class="center full-height width-75 three"></div>
</div>
</footer>

</body>
</html>
91 changes: 91 additions & 0 deletions second/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@

/*Main CSS */

body {
height: 100vh;
margin: 0;
font-family: sans-serif;
background-color: lightgray;
}

main {
box-sizing: border-box;
height: calc(100% - 75px);
padding: 40px 20%;
}

.btn-red {
background-color: red;
}

.btn-blue {
background-color: blue;s
}

.btn-inline {
height: 50px;
width: 150px;
margin: 20px 20px 0 0;
color: white;
font-size: 24px;
border: none;
}

.content-wrp {
margin-bottom: 40px;
}

.content {
height: 100%;
padding: 40px;
box-sizing: border-box;
background-color: white;
}

.content img {
width: 100%;
height: 400px;
margin: 0 auto;
}

.content .content-text {
font-size: 18px;
line-height: 28px;
margin: 0;
}

.image-content {
box-sizing: border-box;
min-height: 600px;
height: calc(75% - 40px);
}

/*END Main CSS */


/*Footer CSS */

.fixed-bottom {
position: fixed;
bottom: 0;
box-sizing: border-box;
width: 100%;
height: 70px;
}

.footer-link {
text-decoration: none;
color: white;
font-size: 20px;
margin-left: 50px;
}

footer {
display: flex;
justify-content: flex-end;
align-items: center;
background-color: #4a4a4a;
padding: 0 20%;
}

/* END Footer CSS */
47 changes: 47 additions & 0 deletions second/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Second </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<main>
<div class="content-wrp">
<div class="content">
<p class="content-text">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet.
</p>
<div>
<button class="btn-inline btn-red">Click</button>
<button class="btn-inline btn-blue">Click</button>
</div>
</div>
</div>

<div class="content-wrp image-content">
<div class="content">
<img width="500px" height="300px" src="https://picsum.photos/500/300"/>

<p class="content-text">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
</div>
</div>
</main>
<footer class="fixed-bottom">
<a class="footer-link" href="">Apple</a>
<a class="footer-link" href="">Google</a>
</footer>
</body>
</html>
75 changes: 75 additions & 0 deletions third/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

/*Main CSS */

body {
font-family: sans-serif;
margin: 0;
}

main {
height: 100%;
padding: 40px;
}

main h1 {
margin-top: 32px;
margin-bottom: 0;
font-size: 48px;
color: gray;
float: left;
}

.header-nav {
background-color: gray;
height: 70px;
padding: 24px 40px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}

.header-nav .nav-link {
color: white;
font-size: 24px;
text-decoration: none;
margin-right: 40px;
}

.article-img {
box-sizing: border-box;
width: 50%;
margin: 24px 0 0 0;
padding-left: 8px;
float: right;
display: flex;
align-items: center;
justify-content: center;
}

.article-img img {
width: 100%;
}

.text-column {
padding: 12px;
box-sizing: border-box;
max-width: 50%;
text-align: justify;
}

.text-column p {
font-size: 18px;
}

.pull-right {
float: right;
clear: right;
}

.pull-left {
float: left;
clear: left;
}

/*END Main CSS */
Loading