Tugas 3 PWEB B - Warteg

     Untuk penugasan kali ini, saya membuat tampilan untuk website warteg menggunakan HTML 5. Website kali ini dibuat dengan 1 file HTML dengan memperindah website menggunakan 1 file css dan di deploy di netlify. Link website : 

Warteg Tegal

Tampilan : 


Source Code :

HTML : 


<!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>Web Warung Tegal</title>
<link rel="stylesheet" href="style.css">
<script>
var slidePosition = 1;
SlideShow(slidePosition);
function plusSlides(n) {
SlideShow(slidePosition += n);
}
function currentSlide(n) {
SlideShow(slidePosition = n);
}
function SlideShow(n) {
var i;
var slides = document.getElementsByClassName("Containers");
if (n > slides.length) {
slidePosition = 1
}
if (n < 1) {
slidePosition = slides.length
}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slidePosition - 1].style.display = "block";
}
</script>
</head>
<body>
<div class="wrapper">
<header>
<h1>Warung Tegal</h1>
<nav>
<ul>
<li><a href="" class="current">Beranda</a></li>
<li><a href="">Daftar Masakan</a></li>
<li><a href="">Katering</a></li>
<li><a href="">Tentang</a></li>
<li><a href="">Kontak</a></li>
</ul>
</nav>
</header>
<section class="courses">
<h2 style="text-align: center;">Gambar Masakan</h2>
<div class="slideshow-container">
<div class="Containers ContainersImage">
<img src="https://asset.kompas.com/crops/5ege6Dvwyi1MrPdjWXxeCcAozGo=/3x0:700x465/750x500/data/photo/2021/04/14/6076818a1b601.jpg"
style="width:100%;">
<div class="Info" style="background-color: #02F0C8; color: white; ">Soto Ayam</div>
</div>
<div class="Containers">
<img src="https://asset.kompas.com/crops/etxkCgz_0N5ZbdP6YGJScpobPVk=/60x23:959x622/750x500/data/photo/2020/11/05/5fa3f16d9c1cf.jpg"
style="width:100%">
<div class="Info" style="background-color: #02F0C8; color: white;">Pecel</div>
</div>
<a class="Back" onclick="plusSlides(-1)">&#10094;</a>
<a class="forward" onclick="plusSlides(1)">&#10095;</a>
</div>
<h2 style="text-align: center; padding-top: 20px;">Postingan</h2>
<article>
<figure>
<img src="https://asset.kompas.com/crops/5ege6Dvwyi1MrPdjWXxeCcAozGo=/3x0:700x465/750x500/data/photo/2021/04/14/6076818a1b601.jpg"
alt="soto" />
<figcaption style="text-align: center; font-size: 16px;">Soto Indonesia</figcaption>
</figure>
<hgroup>
<h2>Soto Ayam</h2>
<h3>Makanan Berkuah</h3>
</hgroup>
<p>Soto ayam adalah makan khas Indonesia yang berupa sejenis sup ayam dengan kuah yang berwarna
kekuningan.</p>
</article>
<article>
<figure>
<img src="https://asset.kompas.com/crops/etxkCgz_0N5ZbdP6YGJScpobPVk=/60x23:959x622/750x500/data/photo/2020/11/05/5fa3f16d9c1cf.jpg"
alt="pecel" />
<figcaption style="text-align: center; font-size: 16px;">Pecel Indonesia</figcaption>
</figure>
<hgroup>
<h2>Masakan Pecel</h2>
<h3>Makanan dengan Bumbu Kacang</h3>
</hgroup>
<p>Pecel adalah makanan yang menggunakan bumbu sambal kacang sebagai bahan utamanya yang dicampur dengan
aneka jenis sayuran.</p>
</article>
</section>
<aside>
<section class="popular-recipes">
<h2>Masakan Populer</h2>
<iframe width="230" height="165" src="https://www.youtube.com/embed/6jRoh6IW16Q"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<a href="">Sayur Sop</a>
<a href="">Sayur Asem</a>
<a href="">Sayur Lodeh</a>
<a href="">Sayur Bayam</a>
</section>
<section class="contact-details">
<h2>Kontak</h2>
<p>Warung Tegal <br> di seluruh indonesia</p>
</section>
</aside>
<footer>
&copy; 2021 Warung Tegal
</footer>
</div>
</body>
</html>
view raw gistfile1.txt hosted with ❤ by GitHub

CSS:

header, section, footer, aside, nav, article, figure, figcaption {
display: block;
}
body {
color: #5D534A;
background-color: black;
background-image: url(http://p2k.um-surabaya.ac.id/_sepakbola/_baca_image.php?td=6&kodegb=220px-Food_at_Warung_Tegal.jpg);
background-position: center;
font-family: Georgia, 'Times New Roman', Times, serif;
font-weight: bold;
line-height: 1.4em;
margin: 0px;
background-repeat: no-repeat;
background-size: cover;
}
.wrapper {
width: 940px;
margin: 20px auto 20px auto;
border: 2px solid #000000;
background-color: #0EE347;
}
header {
background-image: url(https://media.suara.com/pictures/653x366/2018/06/13/19179-warteg-bahari-tebet.jpg);
height: 160px;
}
h1 {
text-indent: -9999px;
font-weight: bold;
width: 940px;
height: 130px;
margin: 0px;
}
nav, footer {
clear: both;
color: #ffffff;
background-color: #02F0C8;
height: 30px;
}
nav ul {
display: flex;
justify-content: center;
margin: 0px;
padding: 5px 0px 5px 30px;
}
nav li {
display: inline;
margin-right: 40px;
}
nav li a {
color: #ffffff;
}
nav li a:hover {
color: #b1b1b1
}
section.courses {
float: left;
width: 659px;
border-right: 1px solid #eeeeee;
}
article {
clear: both;
overflow: auto;
width: 100%;
}
hgroup {
margin-top: 40px;
}
figure {
float: left;
width: 290px;
height: 259px;
padding: 5px;
border: 1px solid #5D534A;
}
figcaption {
font-size: 90%;
text-align: left;
padding-bottom: -500px;
}
aside {
width: 230px;
float: left;
padding: 0px 0px 0px 20px;
}
aside section a {
display: block;
padding: 10px;
border-bottom: 1px solid #eeeeee;
}
aside section a:hover {
background-color: #3b3b3b;
}
a {
color: #5D534A;
text-decoration: none;
font-weight: bold;
}
h1,h2,h3 {
font-weight: bold;
}
h2 {
margin: 10px 0px 5px 0px;
padding: 0px;
}
h3 {
margin: 0px 0px 10px 0px;
color: #5D534A;
}
aside h2{
padding: 30px 0px 10px 0px;
color: #5D534A;
}
footer {
font-size: 80%;
padding: 7px 0px 0px 20px;
}
img {
width: 100%;
}
* {box-sizing:border-box}
* {box-sizing:border-box}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
}
/* Make the images invisible by default */
.Containers {
display: none;
}
.ContainersImage {
display: block;
}
/* forward & Back buttons */
.Back, .forward {
cursor: pointer;
position: absolute;
top: 48%;
width: auto;
margin-top: -23px;
padding: 17px;
color: grey;
font-weight: bold;
font-size: 19px;
transition: 0.4s ease;
border-radius: 0 5px 5px 0;
user-select: none;
}
/* Place the "forward button" to the right */
.forward {
right: 0;
border-radius: 4px 0 0 4px;
}
/*when the user hovers,add a black background with some little opacity */
.Back:hover, .forward:hover {
background-color: rgba(0,0,0,0.8);
}
/* Caption Info */
.Info {
color: #5D534A;
font-size: 24px;
padding: 10px 14px;
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
}
/* The circles or bullets and indicators */
.dots {
cursor: pointer;
height: 16px;
width: 16px;
margin: 0 3px;
background-color: #acc;
border-radius: 50%;
display: inline-block;
transition: background-color 0.5s ease;
}
.enable, .dots:hover {
background-color: #717161;
}
view raw gistfile1.txt hosted with ❤ by GitHub

Comments

Popular Posts