Dokumentasi Pemrograman Web - Week 4 - clone web
Website Clone of MammothMarch
Nama: Geraldo Benjamin Nainggolan
Kelas: Rekayasa Perangkat Lunak
NRP: 5053231014
Dalam tugas ini, saya mengclone website dari web bernama MammothMarch.
Web itu berisi mengenai event-event hiking yang berada di Amerika Serikat.
Web yang saya buat belum sepenuhnya memiliki responsivitas yang baik. Untuk itu, disarankan membuka menggunakan laptop
Link Website: Clone website of MammothMarch
Berikut Kode HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<nav>
<a href=""><img style="width: 200px; margin-bottom: 20px; margin-top: 20px;" src="./assets/mammoth-march-logo-570x174.gif" alt="logo MammothMarch"></a>
<div class="container-1">
<ul class="tags">
<li><a href="#about-us">About Us</a></li>
<li><a href="#upcoming-events">Upcoming Events</a></li>
<li><a href="">Reviews</a></li>
<li><a href="">Partners</a></li>
<li>
<div class="button-wrapper" data-tippy-content="Click to copy button 50">
<button class="button-50" role="button">Tickets</button>
</div>
</li>
</ul>
</div>
</nav>
<section id="about-us" class="container-2">
<h1 style="text-align: center;">Welcome, we are MammothMarch</h1>
<p>Started as a virtual hiking challenge during the coronavirus pandemic, MammothMarch is conquering the US with its unique long-distance hiking events</p>
<p>In today's hectic world full of (digital) distraction, information overload and daily routine, we are looking for ways to slow down recharge - our bodies, mind and souls</p>
<p>At the same time, we must get out of our comfot zone and push our boundaries to become a better version of ourselves as well as to help reverse the decline in the evironmental health of our planet</p>
<p>MammothMarch is one-of-a kind adventure that gives you the opportunity to do all of the above</p>
</section>
<section class="container-3">
<h2 style="text-align: center; font-size: 30px;">Upcoming Events</h2>
<div class="event-container">
<div class="img-container">
<img src="./assets/Event/Mammoth_Event-1.webp" alt="">
</div>
<div class="info">
<div class="event-details">
<p>Sunday, Sept 8, 2024 | Defiance Ridge Vineyards</p>
</div>
<div class="event-title">
<h3>Missouri 2024</h3>
</div>
<div class="button-container">
<input type="button" value="MERCHANDISE" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
</div>
<div class="event-container">
<div class="info">
<div class="event-details">
<p>Sunday, Sept 15, 2024 | Meadow/Countryside Farmers' market</p>
</div>
<div class="event-title">
<h3>Cuyahoga Valley 2024</h3>
</div>
<div class="button-container">
<input type="button" value="MERCHANDISE" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
<div class="img-container">
<img src="./assets/Event/Mammoth-Event-2.webp" alt="">
</div>
</div>
<div class="event-container">
<div class="img-container">
<img src="./assets/Event/Mammoth-3.webp" alt="">
</div>
<div class="info">
<div class="event-details">
<p>Saturday, Sept 21, 2024 | Bear Brook State Park</p>
</div>
<div class="event-title">
<h3>New Hampshire 2024</h3>
</div>
<div class="button-container">
<input type="button" value="REGISTER" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
</div>
<div class="event-container">
<div class="info">
<div class="event-details">
<p>Saturday, Feb 1, 2025 | Dunns Creek State Park</p>
</div>
<div class="event-title">
<h3>Northeast Florida 2025</h3>
</div>
<div class="button-container">
<input type="button" value="REGISTER" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
<div class="img-container">
<img src="./assets/Event/mammoth-4.webp" alt="">
</div>
</div>
<div class="event-container">
<div class="img-container">
<img src="./assets/Event/mammoth-5.webp" alt="">
</div>
<div class="info">
<div class="event-details">
<p>Saturday, March 22, 2025 | Silver Falls State Park</p>
</div>
<div class="event-title">
<h3>Oregon 2025</h3>
</div>
<div class="button-container">
<input type="button" value="REGISTER" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
</div>
<div class="event-container">
<div class="info">
<div class="event-details">
<p>Saturday, June 7, 2025 | Wompatuck State Park</p>
</div>
<div class="event-title">
<h3>Boston 2024</h3>
</div>
<div class="button-container">
<input type="button" value="REGISTER" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
<div class="img-container">
<img src="./assets/Event/mammoth-6.webp" alt="">
</div>
</div>
<div class="event-container">
<div class="img-container">
<img src="./assets/Event/mammoth-7.webp" alt="">
</div>
<div class="info">
<div class="event-details">
<p>Saturday, Sept 6, 2024 | Alafia River State Park</p>
</div>
<div class="event-title">
<h3>Tampa Bay 2024</h3>
</div>
<div class="button-container">
<input type="button" value="MERCHANDISE" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
</div>
<div class="event-container">
<div class="info">
<div class="event-details">
<p>Saturday, June 8, 2025 | Long Lake Recreation Area</p>
</div>
<div class="event-title">
<h3>Wisconsin 2025</h3>
</div>
<div class="button-container">
<input type="button" value="REGISTER" class="btn merch-btn">
</div>
<div class="button-container">
<input type="button" value="DETAILS" class="btn details-btn">
</div>
</div>
<div class="img-container">
<img src="./assets/Event/mammoth-8.webp" alt="">
</div>
</div>
</section>
<footer>
<p>© 2024 by Geraldo |</p>
<p style="text-decoration: underline;"> Privacy Policy |</p>
<p style="text-decoration: underline;"> Terms of Use</p>
</footer>
</body>
</html>
Berikut Kode styling menggunakan CSS:
body{
margin: 0px 0px 0px 0px
}
nav {
display: flex;
flex-direction: row;
justify-content: space-evenly;
width: 100%;
border-bottom: black solid 5px;
background-color: #fff;
position: fixed;
z-index: 10;
}
.container-1{
display: flex;
}
ul.tags {
list-style-type: none;
margin: 0;
display: flex;
gap: 20px;
justify-self: center;
margin-top: 30px;
margin-left: 30px;
}
ul.tags li {
justify-content: center;
font-size: 24px;
margin-right: 10px;
}
li a{
color: black;
text-decoration: none;
}
li a:hover{
text-shadow: 2px 2px 5px rgb(15, 1, 1);
}
.button-50 {
appearance: button;
background-color: #000;
background-image: none;
border: 1px solid #000;
border-radius: 4px;
box-shadow: #fff 4px 4px 0 0,#000 4px 4px 0 1px;
box-sizing: border-box;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: ITCAvantGardeStd-Bk,Arial,sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 20px;
margin: 0 5px 10px 0;
overflow: visible;
padding: 12px 40px;
text-align: center;
text-transform: none;
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
vertical-align: middle;
white-space: nowrap;
}
.button-50:focus {
text-decoration: none;
}
.button-50:hover {
text-decoration: none;
}
.button-50:active {
box-shadow: rgba(231, 6, 6, 0.125) 0 3px 5px inset;
outline: 0;
}
.button-50:not([disabled]):active {
box-shadow: #d71313 2px 2px 0 0, #9e0808 2px 2px 0 1px;
background-color: #d71313;
transform: translate(2px, 2px);
}
@media (min-width: 768px) {
.button-50 {
padding: 12px 50px;
}
}
.container-2 {
padding: 40px;
text-align: center;
max-width: 800px;
margin: 0 auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 2rem;
background: #f0f0f0;
}
.container-2 h1 {
font-size: 2.5em;
margin-bottom: 20px;
color: #333;
}
.container-2 p {
font-size: 1.1em;
line-height: 1.6;
color: #8e7373;
margin-bottom: 20px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.container-2 p:last-of-type {
margin-bottom: 0;
}
.container-3{
display: flex;
flex-direction: column;
}
.event-container{
display: grid;
grid-template-columns: auto auto;
margin-left: 100px;
}
.event-container div{
display: flex;
flex-direction: column;
align-items: center;
}
.img-container{
display: flex;
justify-content: center;
align-items: center;
}
.info {
display: grid;
grid-template-columns: 1fr;
gap: 25px;
align-items: center;
font-family: Arial, sans-serif;
margin: 100px;
padding: 20px;
}
.event-details p {
font-family: "Quicksand", sans-serif;
font-optical-sizing: auto;
font-style: normal;
margin: 0;
font-size: 17.5px;
color: #333;
}
.event-title h3 {
margin: 0;
font-size: 30px;
color: #222;
}
.btn {
padding: 12px 24px;
width: 170px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s, border 0.3s;
}
.merch-btn {
background-color: #d00606;
color: #f9f9f9;
}
.details-btn {
background-color: #000;
color: #f0f0f0;
}
.btn:hover {
background-color: #f0f0f0;
color: #000;
}
footer{
display: flex;
flex-direction: row;
background-color: #000;
justify-content: center;
}
footer p {
color: #f0f0f0;
}
@media (max-width: 600px){
nav {
padding: 10px;
flex-direction: column;
align-items: center;
border-bottom: none;
}
.container-1 {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
ul.tags {
display: flex;
flex-direction: row;
align-items: center;
padding: 0;
list-style: none;
margin: 10px 0;
}
ul.tags li {
font-size: 16px;
margin: 5px 0;
}
li a {
color: black;
text-decoration: none;
font-size: 10px;
}
li a:hover {
text-shadow: 2px 2px 5px rgb(15, 1, 1);
}
.button-wrapper {
margin-top: 10px;
}
.button-50 {
width: 60%;
height: 50%;
padding: 10px 20px 10px 20px;
font-size: 10px;
margin-right: 50px;
}
.container-2{
padding: 40px;
text-align: center;
max-width: 800px;
margin: 0 auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 2rem;
background: #f0f0f0;
}
.container-2 h1{
margin-top: 300px;
}
.event-container {
display: flex;
flex-direction: column;
margin: 0;
padding: 10px;
}
.event-container div {
display: flex;
flex-direction: column;
align-items: center;
}
.img-container img {
max-width: 100%;
height: auto;
}
.info {
margin: 0;
padding: 10px;
text-align: center;
}
.event-details p {
font-size: 14px;
}
.event-title h3 {
font-size: 24px;
}
.btn {
padding: 10px 20px;
width: auto;
font-size: 14px;
}
.merch-btn, .details-btn {
width: 100%;
margin: 5px 0;
}
}
Comments
Post a Comment