Gerald Elroy Website Warteg

 

TUGAS 3 PWEB - A

Membuat Website Warteg


Perkenalkan, nama saya Gerald Elroy Van Ryan. Saya merupakan mahasiswa Institut Teknologi Sepuluh Nopember jurusan Teknik Informatika angkatan 2019.

Pada penugasan kali ini, saya membuat Website Warteg menggunakan HTML, CSS, dan JS. Website ini masih berbentuk static. Web ini menampilkan menu-menu dari warteg beserta deskripsi dari menunya.

Tampilan depan dari Website saya :




Atau bisa langsung melalui situs ini : https://warteg-gerald.netlify.app/

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="styles.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 = 0i < slides.lengthi++) {
          slides[i].style.display = "none";
        }
        slides[slidePosition - 1].style.display = "block";
      }
    </script>
  </head>
  <body>
    <div class="wrapper">
      <header>
        <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: #000000; 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: #000000; 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>


Source Code CSS :

header,
section,
footer,
aside,
nav,
article,
figure,
figcaption {
  displayblock;
}
body {
  color#ececec;
  background-colorblack;
  background-imageurl(https://images.unsplash.com/photo-1494500764479-0c8f2919a3d8?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8&w=1000&q=80);
  background-positioncenter;
  font-familyGeorgia"Times New Roman"Timesserif;
  line-height1.4em;
  margin0px;
  background-repeatno-repeat;
  background-sizecover;
}
.wrapper {
  width940px;
  margin20px auto 20px auto;
  border2px solid #000000;
  background-color#1e1e1e;
}
header {
  background-imageurl(https://media.suara.com/pictures/653x366/2018/06/13/19179-warteg-bahari-tebet.jpg);
  height160px;
}
h1 {
  text-indent-9999px;
  width940px;
  height130px;
  margin0px;
}
nav,
footer {
  clearboth;
  color#ffffff;
  background-color#0a0a0a;
  height30px;
}
nav ul {
  margin0px;
  padding5px 0px 5px 30px;
}
nav li {
  displayinline;
  margin-right40px;
}
nav li a {
  color#ffffff;
}
nav li a:hover {
  color#b1b1b1;
}
section.courses {
  floatleft;
  width659px;
  border-right1px solid #eeeeee;
}
article {
  clearboth;
  overflowauto;
  width100%;
}
hgroup {
  margin-top40px;
}
figure {
  floatleft;
  width290px;
  height270px;
  padding5px;
  margin20px;
  border1px solid #eeeeee;
}
figcaption {
  font-size90%;
  text-alignleft;
  padding-bottom-500px;
}
aside {
  width230px;
  floatleft;
  padding0px 0px 0px 20px;
}
aside section a {
  displayblock;
  padding10px;
  border-bottom1px solid #eeeeee;
}
aside section a:hover {
  background-color#3b3b3b;
}
a {
  color#de6581;
  text-decorationnone;
}
h1,
h2,
h3 {
  font-weightnormal;
}
h2 {
  margin10px 0px 5px 0px;
  padding0px;
}
h3 {
  margin0px 0px 10px 0px;
  color#de6581;
}
aside h2 {
  padding30px 0px 10px 0px;
  color#de6581;
}
footer {
  font-size80%;
  padding7px 0px 0px 20px;
}
img {
  width100%;
}
* {
  box-sizingborder-box;
}

* {
  box-sizingborder-box;
}

/* Slideshow container */
.slideshow-container {
  max-width1000px;
  positionrelative;
  marginauto;
}

/* Make the images invisible by default */
.Containers {
  displaynone;
}

.ContainersImage {
  displayblock;
}

/* forward & Back buttons */
.Back,
.forward {
  cursorpointer;
  positionabsolute;
  top48%;
  widthauto;
  margin-top-23px;
  padding17px;
  colorgrey;
  font-weightbold;
  font-size19px;
  transition0.4s ease;
  border-radius0 5px 5px 0;
  user-selectnone;
}

/* Place the "forward button" to the right */
.forward {
  right0;
  border-radius4px 0 0 4px;
}

/*when the user hovers,add a black background with some little opacity */
.Back:hover,
.forward:hover {
  background-colorrgba(0000.8);
}

/* Caption Info */
.Info {
  color#000000;
  font-size16px;
  padding10px 14px;
  positionabsolute;
  bottom10px;
  width100%;
  text-aligncenter;
}

/* The circles or bullets and indicators */
.dots {
  cursorpointer;
  height16px;
  width16px;
  margin0 3px;
  background-color#acc;
  border-radius50%;
  displayinline-block;
  transition: background-color 0.5s ease;
}

.enable,
.dots:hover {
  background-color#717161;
}


Sekian penjelasan untuk penugasan ini, apabila ada kekurangan serta kesalahan mohon dimaafkan. Terima kasih.

Comments

Popular posts from this blog

EAS PWEB A 2021

PBKK - Tugas 2