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
10 changes: 6 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>

<body>
<section class="container">
<section class="header">
<div class="half-width">
<h1>YOUNG OBAMA</h1>
<h4>Superstar Web Developer</h4>
Expand All @@ -20,7 +20,7 @@ <h4>Superstar Web Developer</h4>
<img src="images/user_avatar.png">
</div>
</section>
<section class="container">
<section class="about">
<div class="half-width">
<img src="images/about-avatar.png">
</div>
Expand All @@ -34,8 +34,9 @@ <h2>About Me</h2>
web development just for 5 days. Ignore them, they are ex.</p>
</div>
</section>
<section class="container">
<section>
<h2>What I do</h2>
<div class="service">
<div class="service-item">
<img src="images/icon/service/intersection.png">
<h2>Web Development</h2>
Expand All @@ -54,8 +55,9 @@ <h2>App Development</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
tincidunt ut laoreet dolore magna aliquam erat.</p>
</div>
</div>
</section>
<footer class="container">
<footer class="footer">
<p>All right reserved Young Obama @ 2020</p>
</footer>
</body>
Expand Down
67 changes: 57 additions & 10 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,77 @@ body {
font-family: roboto, sans-serif;
color: #707070;
}

h1 {
font-size: 60px;
margin: 20px 0;
}
h2, h4 {

h2,
h4 {
font-size: 30px;
text-align: center;
margin-bottom: 30px;
color: #000;
}
.container {
max-width: 1140px;
padding: 60px 0;
margin: auto;
clear: both;

.header {
width: 100%;
display: flex;
gap: 80px;
justify-content: center;
align-items: center;
}

.about {
width: 100%;
display: flex;
justify-content: center;
align-items: center;

}

.service {
width: 100%;
display: flex;
align-items: center;
}

.half-width {
max-width: 50%;
float: left;
display: flex;
flex-direction: column;
justify-content: center;
}
.footer {
text-align: center;
}

.service-item {
max-width: 25%;
float: left;
margin: 0px 15px 20px 15px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 20px;
overflow: hidden;
}

/* Responsive styles */
@media only screen and (max-width: 600px) {

.header {
flex-direction: column-reverse;
justify-content: center;
text-align: center;
}

.about {
flex-direction: column;
justify-content: center;
text-align: center;
}
.service {
flex-direction: column-reverse;
justify-content: center;
text-align: center;
}

}