Showing posts with label HTML and CSS only. Show all posts
Showing posts with label HTML and CSS only. Show all posts

Clock Project Work (Build With HTML and CSS only)

       

This is Simple Clock project work Build using HTML and CSS only 

Github link: - Click

Live Website Click Here

HTML code is Given Here : -

<!DOCTYPE html>

<html lang="en">

<head>

    <link rel="stylesheet" href="clock.css">

    <link rel="icon" type ="image/x-icon" href="/image.jpg">

    <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>Clock</title>

</head>

<body>

    <div class="wrapper">

        <div class="dabba">

        <ul id="clock">

            <li class="numbers"><span>1</span></li>

            <li class="numbers"><span>2</span></li>

            <li class="numbers"><span>3</span></li>

            <li class="numbers"><span>4</span></li>

            <li class="numbers"><span>5</span></li>

            <li class="numbers"><span>6</span></li>

            <li class="numbers"><span>7</span></li>

            <li class="numbers"><span>8</span></li>

            <li class="numbers"><span>9</span></li>

            <li class="numbers"><span>10</span></li>

            <li class="numbers"><span>11</span></li>

            <li class="numbers"><span>12</span></li>

            <li id="hour"></li>

            <li id="minute"></li>

            <li id="second"></li>

            <p class="name">Vaibhav Yadav</p>

            

        </ul>

    </div>

    </div>

</body>

</html>

CSS code is given here : -

*{

    margin: 0;

    padding: 0;

}

.wrapper{

    height: 100vh;

    width: 100%;

    background-color: rgb(39, 25, 25);

    font-family: sans-serif;

    float: left;


}

#clock{

    width: 280px;

    height: 280px;

    background: rgb(59, 59, 8);

    margin: 200px auto;

    border-radius: 50%;

    position: relative;

    border: 9px solid rgb(12, 8, 8);

    box-shadow: 0 0 9px 8px rgb(121, 5, 5),15px 1px 8px 7px black;

}

#clock p {

    font-size: 20px;

    color: rgb(126, 93, 93);

    margin: 155px 74px;

    text-shadow: 0px 0px 2px rgb(68, 44, 44);

    


}

/* The below element is not showing its effect on the Clock means

till now I did't see any difference on using before or after */

#clock::before{

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    left: -18px;

    top: -18px;

    border: 10px solid #f70404;

    border-radius: 50%;

    z-index: -2;

}

#clock:after{

    content: "";

    width: 18px;

    height: 18px;

    background: #e94504;

    position: absolute;

    border-radius: 50%;

    left: calc(50% - 9px);

    top: calc(50% - 9px);

    box-shadow: 0 0 5px 6px rgb(77, 13, 5);

}

#clock li{

    list-style-type: none;

    position: absolute;

}

.numbers{

    position: absolute;

    width: 90%;

    height: 90%;

    padding: 5%;

    text-align: center;

}

.numbers span{

    display: block;

    color: #e5e8ee;

    font-size: 30px;

    text-shadow:0 0px 13px 6px #9aaac5;

}

.numbers:nth-child(1){

    transform: rotate(30deg);

}

.numbers:nth-child(1) span{

    transform: rotate(-30deg);

}

.numbers:nth-child(2){

    transform: rotate(60deg);

}

.numbers:nth-child(2) span{

    transform: rotate(-60deg);

}

.numbers:nth-child(3){

    transform: rotate(90deg);

}

.numbers:nth-child(3) span{

    transform: rotate(-90deg);

}

.numbers:nth-child(4){

    transform: rotate(120deg);

}

.numbers:nth-child(4) span{

    transform: rotate(-120deg);

}

.numbers:nth-child(5){

    transform: rotate(150deg);

}

.numbers:nth-child(5) span{

    transform: rotate(-150deg);

}

.numbers:nth-child(6){

    transform: rotate(180deg);

}

.numbers:nth-child(6) span{

    transform: rotate(-180deg);

}

.numbers:nth-child(7){

    transform: rotate(210deg);

}

.numbers:nth-child(7) span{

    transform: rotate(-210deg);

}

.numbers:nth-child(8){

    transform: rotate(240deg);

}

.numbers:nth-child(8) span{

    transform: rotate(-240deg);

}

.numbers:nth-child(9){

    transform: rotate(270deg);

}

.numbers:nth-child(9) span{

    transform: rotate(-270deg);

}

.numbers:nth-child(10){

    transform: rotate(300deg);

}

.numbers:nth-child(10) span{

    transform: rotate(-300deg);

}

.numbers:nth-child(11){

    transform: rotate(330deg);

}

.numbers:nth-child(11) span{

    transform: rotate(-330deg);

}

#second{

    width: 100%;

    height: 100%;

    /* This control the second line of clock */

    animation: sec 60s steps(60, end) infinite;

}

#second::after{

    content: "";

    width: 3px;

    height: 109px;

    border-radius: 9px;

    background: red;

    position: absolute;

    left: calc(50% - 2px);

    top: 55px;

    box-shadow: 4px 4px 3px black;

}

#minute{

    width: 100%;

    height: 100%;

    /* This line control the minute line of clock */

    animation: sec 3600s steps(60, end) infinite;

}

#minute::after{

    content: "";

    width: 6px;

    height: 79px;

    border-radius: 4px 4px 2px 2px;

    background: white;

    position: absolute;

    left: calc(50% + 30px);

    top: 29%;

    transform: rotate(-120deg);

    box-shadow: 4px 4px 8px black;

}

#hour{

    width: 100%;

    height: 100%;

    /* This line control the hour hand of clock */

    animation: sec 216000s steps(60, end) infinite;

}

#hour::after{

    content: "";

    width: 8px;

    height: 50px;

    border-radius: 5px 5px 3px 3px;

    background: steelblue;

    position: absolute;

    right: calc(50% - 4px);

    top: 50%;

    box-shadow: 4px 4px 8px black;

}

@keyframes sec {

    to{

        transform: rotate(360deg);

    }

}

Zomato Clone Build Using HTML and CSS Only.

 

This is  Basic Zomato Clone Page build using HTML and CSS .

GitHub Link:  Click Here

View the Live the live website :- Here

Given below is HTML and CSS.

                                                        <!-- HTML -->

<html>

    <head>

        <link rel="stylesheet" href="./index.css">

         <link rel="shortcut icon" href="https://b.zmtcdn.com/images/logo/zomato_logo_2017.png" type="image/x-icon">

         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />

    </head>

    <body>

        <header>

            <div class="nav">

        <div class="nav">

            <p>Get the app</p>

        </div>

            <ul class="nav-bar">

                <li>Investor relation</li>

                <li>Add resturant</li>

                <li>Login</li>

                <li>Sign up</li>

            </ul>

            </div>

            <div class="head">

                <img class="logo" src="https://b.zmtcdn.com/web_assets/8313a97515fcb0447d2d77c276532a511583262271.png">

                <h3>Discover the best food in Tagore Bhawan, Gkp</h3>

                <div class="search">

                    <div class="search-item">

                        <i class="fas fa-map-marker-alt"></i>

                        <p>Tagore Bhawan,MMMUT,Gorakhpur</p>

                    </div>

                    <div class="search-item">

                        <i class="fas fa-search"></i>

                        <input type="text" placeholder="Enter your laziz khaana">

                    </div>

                    </div>

                    </div>

                    <div class="header-image">

                        <img src="https://b.zmtcdn.com/web_assets/81f3ff974d82520780078ba1cfbd453a1583259680.png">

                    </div>

        </header>


        <!--Section 1 starts here-->


        <div>

        <section class="section-1">

            <div class="section-1-item">

                <div class="items-details">

                    <p>Food at Mess</p>

                </div>

                <img src="https://b.zmtcdn.com/webFrontend/e5b8785c257af2a7f354f1addaf37e4e1647364814.jpeg?output-format=webp&fit=around|402:360&crop=402:360;*,*" alt="">

            </div>

            <section class="section-1">

                <div class="section-1-item">

                    <div class="items-details">

                        <p>Campus Cafeteria</p>

                    </div>

                    <img src="https://b.zmtcdn.com/webFrontend/d026b357feb0d63c997549f6398da8cc1647364915.jpeg?output-format=webp&fit=around|402:360&crop=402:360;*,*" alt="">

                </div>

                <section class="section-1">

                    <div class="section-1-item">

                        <div class="items-details">

                            <p>Hostel Life</p>

                        </div>

                        <img src="https://b.zmtcdn.com/webFrontend/d9d80ef91cb552e3fdfadb3d4f4379761647365057.jpeg?output-format=webp&fit=around|402:360&crop=402:360;*,*" alt="">

                    </div>

                </section>

            </div>

        <!--Section 2 starts-->

        <section class="section-2">

            <div class="section-2-heading">

                <p>Popular Place in Gorakhpur</p>

            </div>

            <div class="section-2-container">

                <div class="section-2-items">

                    <div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div><div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div><div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div><div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div><div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div><div class="section-2-item">

                        <p class="item-head">Golghar</p>

                        <p class="item-subhead">Resturant</p>

                    </div>

                </div>

            </div>

        </section>


        <!--Section 3 starts-->

        <section class="section-3">

            <div class="section-3-container">

                <div class="section-3-img">

                    <img src="https://b.zmtcdn.com/data/o2_assets/a500ffc2ab483bc6a550aa635f4e55531648107832.png">

                </div>

                <div class="section-3-content">

                    <h1>Get the Zomato App</h1>

                    <p>Download the app by just clicking here</p>

                    <div class="section-3-download">

                        <img src="https://b.zmtcdn.com/data/webuikit/23e930757c3df49840c482a8638bf5c31556001144.png">

                        <img src="https://b.zmtcdn.com/data/webuikit/9f0c85a5e33adb783fa0aef667075f9e1556003622.png">

                    </div>

                </div>

            </div>

        </section>


        <!--Footer-->

        <footer>

            <hr>

            Made by <span>Vaibhav Yadav</span> <mark>❤</mark>

        </footer>

    </body>

</html>


Now CSS code is :-

                                                    /* CSS CODE */

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

body{

    margin: 0;

    padding: 0;

    text-decoration: none;

}

header{

    width: 100%;

    height: 70vh;

    overflow: hidden;

    position: relative;

    object-fit: cover;

}

.header-image{

    width: 100%;

    position: absolute;

    top: -20vh;

    z-index: -1;

}

.nav{

    display: flex;

    justify-content: space-between;


    color: white;

    margin: 0 40px;

    font-size: 3vh;


}

.nav-bar{

    list-style: none;

    font-weight: lighter;

    display: flex;

    gap: 1.5rem;

}

.head{

    display: flex;

    flex-direction: column;

    justify-content: center;

    margin-top: 7vh;

    align-items: center;

}

.logo{

    width: 35vh;

}

.head h3{

    font-size: 4vw;

    color: white;

}

.search{

    display: flex;

    width: 55vw;

    align-items: center;

    border-radius: 10px;

    background: white;

    padding:  5px 4px;

}

.search .search-item{

    display: flex;

    align-items: center;

    margin-left: 10px;

}

.search .search-item p{

    color: gray;

    border-right: 1px solid gray;

    font-size: 15px;

    margin-right: 10px;

    margin-left: 10px ;

    margin: 10px;

}

.search .search-item input{

    outline: none;

    border: none;

    width: 200%;

    padding-left: 10px;

    font-size: 15px;

}

.search .search-item:first-child{

    color: red;

    width: 30%;

}

.search .search-item:last-child{

    color: gray;

    width: 20%;

}

/* Section 1 css starts here */

.section-1{

    display: flex;

    justify-content: center;

    align-items: center;

    

}

.section-1 .section-1-item {

    position: relative;

    width: 15rem;

    margin: 3px 5px;

    overflow: hidden;

    border-radius: 10px;

    background: white;

    border: 1px solid white;

}

.section-1 .section-1-item img{

    width: 100%;

    border: 1px solid rgb(87, 83, 83);

    border-radius: 10px;

    z-index: -1;

}

.section-1 .section-1-item .items-details{

    position: absolute;

    bottom: 0px;

    align-items: center;

    border: 0 0 10px 10px;

    background: white;

    width: 100%;

    height: 25%;

    z-index: 2;

}

.section-1 .section-1-item .items-details p{

    text-align: center;

}


/* section 2 */

.section-2{

    width: 1000px;

    margin: 0 auto;

    margin-bottom: 4rem;

}

.section-2 .section-2-heading{

    font-size: 2rem;

    line-height: 1.2;

    font-weight: 400px;

}

.section-2 .section-2-container .section-2-items{

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

}

.section-2 .section-2-container .section-2-items .section-2-item{

    width: 100%;

    max-width: 26%;

    margin-bottom: 20px;

    border-radius: 10px;

    box-shadow: 0 2px 4px rgb(128, 125, 125);

    padding: 20px;

}

.section-2-item .item-head{

    font-size: 1.2rem;

    color: rgb(49, 48, 48);

    margin: 0;

    margin-bottom: 5px;

}

.section-2-item .item-subhead{

    color: gray;

    font-weight: lighter;

    margin: ;

}

/* section 3 starts */


.section-3{

    height: 620px;

    background-color: white;

}

.section-3-container{

    width: 1000px;

    height: 100%;

    margin: 0 auto;

    display: flex;

    justify-content: center;

    align-items: center;

}

.section-3-img{

    width: 40%;

}

.section-3-img img{

    

    width: 400px;

}

.section-3-content{

    font-size: 1.4rem;

    color: steelblue;

}

.section-3-content h1{

    border-bottom: 2px solid steelblue;

}

.section-3-download img{

    width: 40%;

    box-shadow: 1px 1px 5px black;

}


/* footer section starts here*/

footer{

    color: steelblue;

    font-size: 2rem;

    text-align: center;

    padding: 5%;


}

footer span{

    color: red;

    text-shadow: 1px 1px 5px yellow,1px 1px 5px black;

    text-decoration: underline;

}

                        

This is Complete Code for basic Structure of  famous known E-commerce website Zomato. 





Donation Page Build Using HTML and CSS Only ( Not Responsive ).


 This is Simple Web page Build using HTML and CSS Only .

View this page live by just Clicking Here

Github Link : - Click Here

Given Below is HTML and CSS Source Code : - 

                                        <!-- HTML -->

<!DOCTYPE html>

<html lang="en">

<head>

    <link rel="stylesheet" href="./index.css">

    <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>Donation Page</title>    

</head>

<body>

    <div class="container">

        <div><h2 style="text-decoration: underline; color: steelblue;">꧁•⊹٭Donate Here⊹•꧂</h2></div>

        <div class="container-heading">

            <div class="container-left">

            <p>Donate Now and get blessed ❣</p></div>

            <div class="container-right">

            <p>Every Donation Count ❤</p>

            </div>

        </div>

        <div class="bodycontainer">

            <p style="text-decoration: underline;">Select Donation Amount :</p>

            <span class="input-amount">

                <input type="checkbox">

                <label for="html">₹10</label>

                <input type="checkbox">

                <label for="html">₹50</label>

                <input type="checkbox">

                <label for="html">₹100</label>

                <input type="checkbox">

                <label for="html">₹500</label>

            </span>

            <div class="amountinput">

                <p>Or Enter the Amount :</p>

                <input type="text" placeholder=" ₹ 5000">

            </div>

            <div class="frequency">

                <label for="frequency">Choose Your Frequency</label><br>

                <select name="frequency" id="frequency">

                    <option value="frequency">One-Time</option>

                    <option value="frequency">Monthly</option>

                    <option value="frequency">Yearly</option>

                </select>

            </div>

            <div class="payment-method">

                <label for="payment">Select Your Payment Method</label>

                <select name="payment" id="payment">

                    <option value="payment">UPI</option>

                    <option value="payment">Credit Card</option>

                    <option value="payment">Debit Card</option>

                    <option value="payment">NetBanking</option>

                </select>

            </div>            

        </div>

        <div class="submitbutton">

            <button>Submit</button>

        </div>



    </div>

    <footer class="footer">

        <p>Made by -- Vaibhav Yadav ❤ ---</p>

    </footer>

</body>

</html>



CSS Source Code is Given Here: 

                                        CSS Code

body{

    margin: 0;

    padding: 0%;

    font-weight: bolder;

    font-family:sans-serif;

    background-image: url(./backimg.jpg);

    background-repeat: no-repeat;

    background-size: cover;

}

.container{

    backdrop-filter: blur(15px);

    border-radius: 10px;

    margin: 8em auto;

    padding: 2%;

    max-width: 50%;

    height: 50%;

    text-align: center;

    box-shadow: 5px 5px 10px black;

}

.container-heading{

    font-size: 25px;

    color: white;

    display: flex;

    padding: 4%;

    border-bottom: 2px solid black;

    animation: containerheading 7s infinite;

}

@keyframes containerheading {

    0%{color: red;text-shadow: 0 0 50px red,0 0 50px red;}

    25%{color: yellow;text-shadow: 0 0 50px yellow,0 0 50px yellow;}

    50%{color: green;text-shadow: 0 0 50px green,0 0 50px green;}

    100%{color:blue;text-shadow: 0 0 50px blue,0 0 50px blue;}

}

.container-left{

    padding: 0 4% 0 0;

    border-right: 2px solid black;

}

.container-right{

    padding: 0 0 0 4%;

    

}

/* Body parts Starts from here */

.bodycontainer{

    text-align: left;

    color: white;

}

.bodycontainer span{

    text-decoration: none;

    margin: 9%;

}

.amountinput{

    text-decoration: underline;

}

.amountinput input{

    width: 100%;

    padding: 1% 0;

    

}

.frequency{

    padding: 4% 0 0 0;

}

.frequency select{

    width: 100%;

    padding: 1% 0;

    text-align: left;

    margin: 2% 0 0 0;

}

.payment-method{

    padding: 4% 0 0 0;

}

.payment-method select{

    margin: 2% 0 0 0;

    width: 100%;

    padding: 1% 0;

}

label{

    text-decoration: underline;

}

.submitbutton{

    border-bottom: 2px solid gray;

}

.submitbutton button{

    margin: 3%;    

    border-radius: 3px;

    cursor: pointer;

}

.submitbutton button:hover{

    background-color: rgb(82, 197, 82);

}


.footer{

    background-color: rgb(2, 1, 1);

    padding: 1%;

    text-align: center;

    font-size: large;

    font-weight: bolder;

    color: red;

    text-shadow: 2px 2px 5px blueviolet;

    animation: name 2s infinite;

}

@keyframes name {

    0%{color: violet;}

    25%{color: indigo;}

    50%{color: blue;}

    75%{color: green;}

    100%{color: yellow;}

}

Operator Overloading in C++

#include<iostream> using namespace std; class Complex { private: int real, imag; public: Complex(int r = 0, int i = 0){       re...