layout dengan pengambilan website online

script html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="web.aspx.cs" Inherits="WebApplication4.web" %>

<!DOCTYPE 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" />
    <link rel="stylesheet" href="style.css">
    <link
      href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css"
      rel="stylesheet"
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/>
      <link href="StyleSheet1.css" rel="stylesheet" />
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/>
      
  </head>
  <body>
    <header>
      <div class="header">
        <img id="logotribun" src="https://cdn-1.tstatic.net/img/logo/tribun/svg/tribunnews.svg" alt="Tribun" width="164" height="40">
      </div>
    </header>
    <nav>
        <div>
        <ul class="topnav">
          <li><a class="active" id="navbar-konten" href="#">Home</a></li>
          <li><a class="hidenav" id="navbar-konten" href="#">About</a></li>
          <li><a class="hidenav" id="navbar-konten" href="#">Services</a></li>
          <li><a class="hidenav" id="navbar-konten" href="#">Gallery</a></li>
          <li><a class="hidenav" id="navbar-konten" href="#">Feedback</a></li>
          <div class="search">
          <li><input class="input" type="text" placeholder=" Search..."></li>
          </div>
        </ul>
      </div>
      <div class="dropdown">
        <button class="dropbtn">Menu 
          <i class="fa fa-caret-down"></i>
        </button>
        <div class="dropdown-content">
          <a href="#">Home</a>
          <a href="#">About</a>
          <a href="#">Services</a>
          <a href="#">Gallery</a>
          <a href="#">Feedback</a>
        </div>
    </nav>
    <section class="overlay"></section>
    <!-- content -->
    <div class="konten">
      <div class="daftar-berita">
        <ul>
          <li><p>Berita populer</p></li>
          <hr>
          <li><a href="https://www.tribunnews.com/metropolitan/2022/09/13/demo-tolak-bbm-buruh-kecam-sejumlah-partai-merupakan-partai-borjuis-merampok-hak-rakyat" title="Demo Tolak BBM, Buruh Kecam Sejumlah Partai Merupakan Partai Borjuis: Merampok Hak Rakyat" class="tulian2 ">
						Demo Tolak BBM, Buruh Kecam Sejumlah Partai Merupakan Partai Borjuis: Merampok Hak Rakyat</a><img src="https://cdn-2.tstatic.net/tribunnews/foto/bank/thumbnails2/gerakan-buruh-bersama-rakyat-gebrak-nih3.jpg" class="gambar2" height="69" width="90" alt="gerakan-buruh-bersama-rakyat-gebrak-nih3.jpg"></li>
        <hr>
          </ul>
      </div>
    <div class="main-konten">
      <h3 style="text-align:center;">content</h3><br>
      <ul>
        <hr>
        <li> <a href="https://www.tribunnews.com/sport/2022/09/13/ilham-leoisa-berlatih-keras-untuk-sebuah-tujuan-bidik-gelar-kedua" title="Ilham Leoisa Berlatih Keras Untuk Sebuah Tujuan, Bidik Gelar Kedua" class="tulian">
            Ilham Leoisa Berlatih Keras Untuk Sebuah Tujuan, Bidik Gelar Kedua</a> <img src="https://cdn-2.tstatic.net/tribunnews/foto/bank/thumbnails2/ilham-leoisa-berlatih-keras-untuk-sebuah-tujuan-bidik-gelar-kedua.jpg" class="gambar" height="90" width="120" alt="ilham-leoisa-berlatih-keras-untuk-sebuah-tujuan-bidik-gelar-kedua.jpg"></li>
        <hr>
        <li><a href="https://www.tribunnews.com/nasional/2022/09/13/profil-bjork-musisi-wanita-nyentrik-ada-di-foto-profil-hacker-bjorka-pernah-manggung-di-indonesia" title="PROFIL Bjork, Musisi Wanita Nyentrik Ada di Foto Profil Hacker Bjorka, Pernah Manggung di Indonesia" class="tulian">
          PROFIL Bjork, Musisi Wanita Nyentrik Ada di Foto Profil Hacker Bjorka, Pernah Manggung di Indonesia.<br><span class="deskripsion">Berikut profil Bjork, penyanyi wanita asal Islandia yang terpampang di foto profil hacker Bjorka</span></a><img data-src="https://cdn-2.tstatic.net/tribunnews/foto/bank/thumbnails2/kolase-foto-bjork-kanan-foto-profil-h.jpg" class="gambar" height="90" width="120" alt="kolase-foto-bjork-kanan-foto-profil-h.jpg" src="https://cdn-2.tstatic.net/tribunnews/foto/bank/thumbnails2/kolase-foto-bjork-kanan-foto-profil-h.jpg" data-loaded="true"></li>
        <hr>
        </ul>
    </div>
        <div class="iklan">
          <img  src="https://static.criteo.net/design/dt/81974/210414/dcfcd81462344012bfefdc0939aa70a3_image_ad_160x600.jpg" width="99%" height="100%">
          
        </div>
      </div>
      
      <div>
        <footer>
          <div class="content">
            <div class="left box">
              <div class="upper">
                <div class="topic">referensi</div>
                <div><a href="https://www.tribunnews.com/">Tribunnews</a></div>
              </div>
              <div class="lower">
                <div class="topic">Contact us</div>
                <div class="phone">
                  <a href="#"><i class="fas fa-phone-volume"></i>+007 9089 6767</a>
                </div>
                <div class="email">
                  <a href="#"><i class="fas fa-envelope"></i>abc@gmail.com</a>
                </div>
              </div>
            </div>
            <div class="middle box">
              <div class="topic">Our Services</div>
              <div><a href="#">Web Design, Development</a></div>
              <div><a href="#">Web UX Design, Reasearch</a></div>
              <div><a href="#">Web User Interface Design</a></div>
              <div><a href="#">Theme Development, Design</a></div>
              <div><a href="#">Mobile Application Design</a></div>
              <div><a href="#">Wire raming & Prototyping</a></div>
            </div>
            <div class="right box">
              <div class="topic">Subscribe us</div>
              <form action="#">
                <input type="text" placeholder="Enter email address">
                <input type="submit" name="" value="Send">
                <div class="media-icons">
                  <a href="#"><i class="fab fa-facebook-f"></i></a>
                  <a href="#"><i class="fab fa-instagram"></i></a>
                  <a href="#"><i class="fab fa-blogger"></i></a>
                  <a href="#"><i class="fab fa-youtube"></i></a>
                  <a href="#"><i class="fab fa-whatsapp"></i></a>
                </div>
              </form>
            </div>
          </div>
          <div class="bottom">
          </div>
        </footer>
      </div>
      <script src="script.js"></script>
  </body>
</html>


script css
/* Google Fonts - Poppins */
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap"); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Poppins", sans-serif; */
}

body {
    background: #212121;
}

.konten {
    justify-content: center;
    display: flex;
    margin-top: 70px;
    width: 100%;
    height: 100%;
    background-color: #EEEEEE;
}

    .konten div {
        font-size: 25px;
        /* font-weight: 700; */
    }

.deskripsion {
    margin: 0;
    font: message-box;
}

.main-konten {
    margin: 0 20px 0 20px;
    border: 3px solid black;
    color: black;
    width: 55%;
    float: left;
    background-color: white;
    padding: 20px;
    /* margin-left: 21%; */
}

.shou2-bgwhite {
    margin: 10px;
}

.main-konten ul li {
    padding: 10px;
    display: flex;
    /* border: 1px solid black; */
}

.tulian {
    padding: 10px;
    color: black;
}

.gambar {
    margin-left: 50px;
}

.tulian2 {
    color: black;
    font-size: 10px;
}

.daftar-berita {
    margin: 0 20px 0 20px;
    border: 3px solid black;
    color: black;
    width: 20%;
    float: left;
    background-color: white;
    padding: 20px;
}

    .daftar-berita ul li {
        padding: 10px;
        display: flex;
        /* border: 1px solid black; */
    }

.kontent {
    margin: 20px 60px 20px 20px;
    color: black;
}

.iklan {
    /* background-color: #707070; */
    margin-right: 2px;
    padding: 8px;
    color: white;
    border: 3px solid black;
    color: white;
    width: 10%;
    display: flex;
}

.header {
    background-color: white;
}


.dropdown {
    float: left;
    overflow: hidden;
}

    .dropdown .dropbtn {
        display: none;
        font-size: 16px;
        border: none;
        outline: none;
        color: black;
        padding: 14px 16px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
    }

.dropdown-content {
    top: 70px;
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown-content a:hover {
            background-color: gray;
            transition: all 0.4s ease;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.input {
    padding: 7px;
    border-radius: 20px;
    /* background-color: red; */
    position: absolute;
    top: 10px;
    right: 4px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
}

.search {
    display: flex;
}

.bx-search {
}

nav {
    display: flex;
    position: absolute;
    top: 44px;
    left: 0;
    height: 70px;
    width: 100%;
    align-items: center;
    background: #fff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

    nav .logo {
        display: flex;
        align-items: center;
        margin: 0 24px;
    }

.logo .menu-icon {
    color: #333;
    font-size: 24px;
    margin-right: 14px;
    cursor: pointer;
}

.logo .logo-name {
    color: #333;
    font-size: 22px;
    font-weight: 500;
}

.list .nav-link {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 14px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.lists .nav-link:hover {
    background-color: gray;
}

.nav-link .icon {
    margin-right: 14px;
    font-size: 20px;
    color: #707070;
}

.nav-link .link {
    font-size: 16px;
    color: #707070;
    font-weight: 400;
}

.lists .nav-link:hover .icon,
.lists .nav-link:hover .link {
    color: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: -100%;
    height: 1000vh;
    width: 200%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
}

nav.open ~ .overlay {
    opacity: 1;
    left: 260px;
    pointer-events: auto;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

    nav ul li {
        margin: 0 5px;
    }

        nav ul li a {
            color: black;
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 5px;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

            nav ul li a.active,
            nav ul li a:hover {
                color: #111;
                background: gray;
            }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    text-decoration: none;
}

footer {
    display: inline;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: white;
}

    footer .content {
        max-width: 1350px;
        margin: auto;
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

        footer .content p, a {
            color: white;
        }

        footer .content .box {
            width: 33%;
            transition: all 0.4s ease;
        }

        footer .content .topic {
            font-size: 22px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 16px;
        }

        footer .content p {
            text-align: justify;
        }

        footer .content .lower .topic {
            margin: 24px 0 5px 0;
        }

        footer .content .lower i {
            padding-right: 16px;
        }

        footer .content .middle {
            padding-left: 80px;
        }

            footer .content .middle a {
                line-height: 32px;
            }

        footer .content .right input[type="text"] {
            height: 45px;
            width: 100%;
            outline: none;
            color: #d9d9d9;
            background: #000;
            border-radius: 5px;
            padding-left: 10px;
            font-size: 17px;
            border: 2px solid #222222;
        }

        footer .content .right input[type="submit"] {
            height: 42px;
            width: 100%;
            font-size: 18px;
            color: #d9d9d9;
            background: #eb2f06;
            outline: none;
            border-radius: 5px;
            letter-spacing: 1px;
            cursor: pointer;
            margin-top: 12px;
            border: 2px solid #eb2f06;
            transition: all 0.3s ease-in-out;
        }

.content .right input[type="submit"]:hover {
    background: none;
    color: #eb2f06;
}

footer .content .media-icons a {
    font-size: 16px;
    height: 45px;
    width: 45px;
    display: inline-block;
    text-align: center;
    line-height: 43px;
    border-radius: 5px;
    border: 2px solid #222222;
    margin: 30px 5px 0 0;
    transition: all 0.3s ease;
}

.content .media-icons a:hover {
    border-color: #eb2f06;
}

footer .bottom {
    width: 100%;
    text-align: right;
    color: #d9d9d9;
    padding: 0 40px 5px 0;
}

    footer .bottom a {
        color: #eb2f06;
    }

footer a {
    transition: all 0.3s ease;
}

    footer a:hover {
        color: #eb2f06;
    }



@media (max-width:1100px) {
    .iklan {
        display: none;
        visibility: hidden;
    }

    footer .content .middle {
        padding-left: 50px;
    }

    .konten {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body {
        width: 100%;
    }

    nav ul li a {
        font-size: 12px;
    }
}

@media (max-width:950px) {
    footer .content .box {
        width: 50%;
    }

    .content .right {
        margin-top: 40px;
    }
}

@media (max-width:560px) {
    .main-konten {
        width: 100%;
    }

    .daftar-berita {
        display: none;
    }

    footer {
        display: flex;
    }

        footer .content .box {
            width: 100%;
            margin-top: 30px;
        }

        footer .content .middle {
            padding-left: 0;
        }

    .hidenav {
        margin: 0;
        padding: 0;
        font-size: 0px;
        visibility: hidden;
        width: 0%;
    }

    .active {
        margin: 0;
        padding: 0;
        font-size: 0;
        visibility: hidden;
        width: 0%;
    }

    .dropdown .dropbtn {
        display: block;
    }

    .sidebar {
        overflow: scroll;
    }

    .input {
        padding: 7px;
        border-radius: 20px;
        position: absolute;
        top: 10px;
        right: 4px;
        height: 50px;
        width: 150px;
        display: flex;
        align-items: center;
    }
}


Posting Komentar

Lebih baru Lebih lama