DEV Community

A K I L A N
A K I L A N

Posted on

Day 19 (You tube)

Youtube clone
html code

/head>
<body>
    <header>
        <div class="aa" style="grid-area:box1;">
            <i style="width: 40px; margin: 20px;border-radius: 50px;position: relative;"  class="fa-solid fa-bars"></i>
            <img src="./PHOTO/ytimg.png" alt="">
        </div>
        <div class="ab" style="grid-area: box2;">

            <button><input type="text" placeholder="Search"><i style="width: 25px ;height: 35px; padding-left: 5px;" class="fa-solid fa-magnifying-glass"></i></button> 
            <i style="margin-left:20px;height:40px;width: 20px;margin-bottom: 5px;" class="fa-solid fa-microphone"></i>

        </div>
        <div class="ac" style="grid-area: box3;">
             <button id="two"> <i class="fa-solid fa-plus"></i>  <b>Create</b></button>
             <i class="fa-solid fa-bell" style="width: 30px;height: 30px;margin-top: 10px;margin-left: 10px;"></i>
             <i class="fa-regular fa-circle-user" style="height: 40px;width: 40px;"></i>
        </div>

    </header>

    <main>
        <div class="left">
            <i class="fa-solid fa-house" style="height: 40px;width: 40px;margin-top: 30px;"></i>
            <p>Home</p>
            <br>
            <i class="fa-brands fa-youtube-shorts"style="height: 40px;width: 40px;"></i>
            <p>Shorts</p>
            <br>
            <i class="fa-brands fa-square-youtube"style="height: 40px;width: 40px;"></i>
            <p>subscription</p>
            <br>
            <i class="fa-regular fa-circle-user" style="height: 40px;width: 40px;"></i>
            <p>You</p>
        </div>
        <div class="right">
            <div class="righttop">
                <button style="background-color: black;color: white;">All</button>
                <button>Mass films</button>
                <button>Music</button>
                <button>satire</button>
                <button>Live</button>
                <button>Indian Music</button>
                <button>Recently Uploaded</button>
                <button>Watched</button>
                <button>New to you</button>
            </div>
            <div class="rightbottom">
                <div><img src="./PHOTO/yt/6tEPG0r9cBs-SD.jpg" alt=""> <img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>FC 26 || Messi ||World cup 2026</span> <br><p style="margin-left: 43px;"> AK Gaming  <i class="fa-solid fa-play"></i> 1.5m</p> </div>
                <div><img src="./PHOTO/yt/lAhW3nJtj8s-SD.jpg" alt=""><img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>Village Comedy Marathon</span> <br><p style="margin-left: 43px;"> Adithya TV  <i class="fa-solid fa-play"></i> 1.m</p></div>
                <div><img src="./PHOTO/yt/LxnilbLr2nQ-SD.jpg" alt=""><img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>Messi Vs Ronaldo</span> <br><p style="margin-left: 43px;"> Football <i class="fa-solid fa-play"></i> 1.m</p></div>
                <div><img src="./PHOTO/yt/oZCbTceAF70-HD.jpg" alt=""><img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>Singam Mass scencs</span> <br><p style="margin-left: 43px;"> K TV <i class="fa-solid fa-play"></i> 2.5m</p></div>
                <div><img src="./PHOTO/yt/rjiB5r1UAPc-SD.jpg" alt=""><img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>Ep:1 Yaaru Indha Kushkoo?</span> <br><p style="margin-left: 43px;"> VJ siddhu Volgs  <i class="fa-solid fa-play"></i> 6.5m</p></div>
                <div><img src="./PHOTO/yt/yt1.jpg" alt=""><img  style="width: 30px;height: 30px;margin: 5px;" src="./PHOTO/yt/business-avatar-profile-black-icon-man-of-user-symbol-in-trendy-flat-style-isolated-on-male-profile-people-diverse-face-for-social-network-or-web-vector.jpg" alt=""> <span>Aadugalam</span> <br><p style="margin-left: 43px;"> K TV   <i class="fa-solid fa-play"></i> 1.5m</p></div>

            </div>
        </div>

    </main>

</body>
Enter fullscreen mode Exit fullscreen mode

Css code

   *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        header{
            /* border: 1px solid black; */
            height: 70px;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            grid-template-areas: 
            "box1 box2 box3";
        }
        header>div{
            /* border: 1px solid ; */
        }
        header > div > img{
           /* border: 1px solid green; */
           position: relative;
           right: 20px;
           bottom: 10px;
        }
        input{
            outline: none;
            width: 550px;
            height: 37px;
            border: none;
            border-radius: 25px 0 0 25px;
            margin-left: 0;
            border-right: 1px solid gray;
            position: relative;
            bottom: 10px;
            right: 8px;


        }
        .ab{

            display: flex;
            justify-content: center;
            align-items: center;
        }
        .ac{
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            justify-content: end;

        }
        button{
            height: 40px;
             width: 600px;
            border-radius: 25px;
            margin-top: 10px



        }
        main{
            /* border: 1px solid red; */
            height:1000px;
        }
        #two{

            width: 100px;

        }
        main{
            display: grid;
            grid-template-columns: 0.2fr 3fr;
        }
        .left{
            /* border: 1px solid blue; */
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }
        .right{
            /* border: 1px solid green; */
            display: grid;
            grid-template-rows: 0.1fr auto;
        }
        .righttop{
            display: flex;
            gap: 20px;
        }
        .rightbottom{
            /* border: 1px solid; */
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows: 420px 420px 420px;
        }
        .righttop > button{

            width: fit-content;
            border-radius: 10px;
            padding:10px;
            font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: medium;
        }
        .rightbottom > div {
            /* border: 1px solid ; */
            margin: 10px;
            border-radius: 15px;

        }
        .rightbottom > div >img {
            width: 100%;
            height: 80%;
            border-radius: 15px;
        }
        span{
            /* border: 1px solid ; */
            position: relative;
            bottom: 15px;
        }

         div > img > p{




        }

        .rightbottom > div:hover{

            background-color: #FBE4EA;
           transform: translateY(3px) scale(1.01);
           transition:transform 0.2s;
        }

Enter fullscreen mode Exit fullscreen mode

Top comments (0)