Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve Tugas Ainun Nadhifah Syamsiyah #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Binary file added tugas/pelatihan-vcs-2023/ainun/img/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tugas/pelatihan-vcs-2023/ainun/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions tugas/pelatihan-vcs-2023/ainun/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Travel</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<nav>
<div class="logo">
<img src="img/logo.png" alt="" srcset="" />
</div>

<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="#">Tiket</a></li>
<li><a href="#">Hotel</a></li>
<li><a href="#">Kuliner</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>

<main class="contents">
<div class="row">
<div class="content-wrapper">
<h1>Travel, enjoy and live a new an full life.</h1>
<p>
Nikmati masa liburanmu detik demi detiknya sebelum kembali ke
aktivitas padatmu sehari-harinya
</p>
<a href="#" class="btn">LIBURAN SEKARANG</a>
</div>

<div class="content-wrapper">
<img src="img/2.jpg" alt="" srcset="" />
</div>
</div>
</main>
</body>
</html>
133 changes: 133 additions & 0 deletions tugas/pelatihan-vcs-2023/ainun/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

nav {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: 100%;
background-color: #fe735e;
height: 60px;
display: flex;
align-items: center;
justify-content: space-around;
margin-top: 0rem;
color: #fff;
}

nav .logo {
font-size: 1rem;
width: 30%;
}

nav .logo img {
padding-top: 0px;
width: 110px;
}

.nav-links {
list-style-type: none;
display: flex;
}

.nav-links li a {
color: inherit;
margin-left: 1rem;
cursor: pointer;
text-decoration: none;
}

.contents {
min-height: 100vh;
background-color: #ffffff;
}

.row {
display: flex;
flex-wrap: wrap;
width: 80%;
padding-top: 1rem;
margin: 0 auto;
}

.content-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
max-width: 50%;
}

.btn {
padding: 18px 34px;
font-size: 18px;
font-weight: 700;
display: inline-block;
margin-right: 24px;
margin-bottom: 24px;
color: #fff;
background-color: #ec6964;
border-color: #ec6964;
text-align: center;
vertical-align: middle;
cursor: pointer;
line-height: 1.5;
border-radius: 0.25;
}

a {
color: #007bff;
text-decoration: none;
background-color: transparent;
}

.content-wrapper img {
width: 90%;
margin: 0 auto;
padding-left: 60px;
}

/* responsive */

@media screen and (max-width: 768px) {
nav {
flex-direction: initial;
margin: 0rem;
}

nav .logo {
margin-top: 2rem;
text-align: left;
width: 100%;
}

nav ul {
padding-inline-start: 0;
margin: 3rem;
}

h1 {
margin-top: 0px;
}

.content-wrapper {
max-width: 100% !important;
margin-top: auto;
}

img {
width: 60%;
margin: 0 auto;
padding: 2rem 0 2rem 0;
}
}

@media screen and (min-width: 100px) {
.contents {
padding-top: 6rem;
}
}