Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

ROCK PAPER SCISSOR GAME BUILD USING HTML, CSS and Javascript


 This Rock Paper Scissor Game Build Using HTML CSS and Javascript .

Click Here to View the live website

Click Here to view the original source code at github

Below is the Source Code of Above game

<!--------------------------------- HTML CODE ------------------------->

<!DOCTYPE html>

<html lang="en">

<head>

    <link rel="stylesheet" href="style.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>Rockpaperscissor</title>

</head>

<body>

    <div class="container">

        <button class="game" value="Rock">✊</button>

        <button class="game" value="Paper">✋</button>

        <button class="game" value="Scissors">✌</button>

        <div class="showresult">

        <p id="player-score"></p>

        <p id="hands"></p>

        <p id="result"></p>

        </div>

        <button class="reset games" id="endGameButton">🔴</button>

    </div>

    <script src="javascr.js"></script>

    <footer>Made By Vaibhav Yadav with ❤❤</footer>

</body>

</html>

//                                    Javascript Code 

const totalscore = { computerScore: 0, playerScore: 0}


function getcomputerchoice() {

    const rpschoice = ['Rock','Paper','Scissors']

    const randomnumber = Math.floor( Math.random()*3 )

    return rpschoice[randomnumber]

}

function getResult(playerChoice, computerChoice) {

    let score;

    if( playerChoice == computerChoice){ 

    score = 0

    totalscore['computerScore']+= 0

    }

    else if ( playerChoice == 'Rock' && computerChoice == 'Scissors'){

        score = 1

    }

    else if ( playerChoice == 'Paper' && computerChoice == 'Rock'){

        score = 1

    } else if ( playerChoice == 'Scissors' && computerChoice == 'Paper'){

        score = 1

    }

    else{

       score = -1

       totalscore['computerScore']+= 1

 }

    return score

}

function showresult(score,playerChoice,computerChoice)

{

    const resultdiv = document.getElementById('result')

    const handdiv = document.getElementById('hands')

    const playerscorediv = document.getElementById('player-score')

    if(score == -1 ) {

        resultdiv.innerText = "You Lose"

    }

    else if(score == 0 ){

        resultdiv.innerText = "It's a tie"

    }

    else{

        resultdiv.innerText = "You Win"

    }

    handdiv.innerText = "Computer Choice is: " + computerChoice

    playerscorediv.innerText =  "Your Score is : " + totalscore["playerScore"] + "  Computer Score is : " +totalscore["computerScore"]

    

}

function onClickgames(playerChoice){

    // console.log({playerChoice})

    const computerChoice = getcomputerchoice()

    // console.log({computerChoice})

    const score = getResult(playerChoice, computerChoice)

    totalscore['playerScore'] += score

    // console.log({score})

    // console.log(totalscore) 

    showresult(score,playerChoice,computerChoice)

}

function playGame(){

    const games = document.querySelectorAll('.game')

    // games[0].onclick = () => alert(games[0].value)

    

    games.forEach(game => {

        game.onclick = () => onClickgames(game.value)

    })

}

const endgamebutton = document.getElementById("endGameButton")

endgamebutton.onclick = () =>endgame(totalscore)

function endgame(totalscore)

{

    totalscore['playerScore'] = 0

    totalscore['computerScore'] = 0


    const resultdiv = document.getElementById('result')

    const handdiv = document.getElementById('hands')

    const playerscorediv = document.getElementById('player-score')


    resultdiv.innerText = ''

    handdiv.innerText = ''

    playerscorediv.innerText = ''

}

playGame()

/*                              CSS CODE                    */

body{

    background-color: black;

    margin: 0;

    padding: 0;

    font-weight: bolder;

    font-family: sans-serif;

}

.container{

    border-radius: 4%;

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

    padding: 2vh;

    width: 80vh;

    text-align: center;

    background-color: steelblue;

    margin: 20vh auto;

}

.container button{

    background-color: transparent;

    border: none;

    

    margin: 3vh;

}

.game {

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

    border-radius: 9%;

    /* background-color: red; */

    font-size: 70px;

    cursor: pointer;

}

.reset{

    

    font-size: 50px;

    margin: 9vh 0 0 31vh;

    width: 20vh;

}

/* .container span:hover { 

    transform: rotate(-40deg);

} */

.showresult{

    padding: 2px;

    border-radius: 9px;

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

}

.showresultnone{

    height: 0;

    display: none;

}

.games{

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

    border-radius: 9%;

    /* background-color: red; */

    font-size: 70px;

    cursor: pointer;

}

button:active{

    transform: translate(2px, 2px);

}

footer{

    text-align: center;

    background-color: wheat;


Tip Calculator Build Using HTML, CSS and JAVASCRIPT Only

 

This is Tip calculator build using HTML, CSS and Javascript .

Click Here to View the Live website

Click Here to view Original Source Code at github

Given Below is HTML Source Code 

<!DOCTYPE html>

<html lang="en">

<head>

    <link rel="stylesheet" href="tip.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>Tip Calculator</title>

</head>

<body>

    <div class="container">

    <div class="header">Tip calculator</div>

    <p>Bill Total</p>

    <div class="billtotal">

        <input type="text" id="billTotalInput" placeholder="0.00" onkeyup="calculateBill()"/>

    </div>


    <p>Tip(%)</p>

    <div class="tipinput">

        <input type="text" id="tipInput" placeholder="10" onkeyup="calculateBill()"/>

    </div>

    <div class="bottomcontainer">

    <span class="noofpeople">No. of People <br>

        <span class="buttoncontainer">

        <span class="increase" onclick="increasePeople()"><button>+</button></span>

        <span class="textvalue" id="numberofPeople">1</span>

        <span class="decrease" onclick="decreasePeople()"><button>-</button></span>

        </span>

    </span>


    <span class="totalcontainer">

        <span class="title">Total Per Person </span><br><span class="total">₹</span>

        <span class="total" id="perPersonTotal">0.00</span>

    </span>

    </div>

</div>

<footer><H2>Made By Vaibhav Yadav with ❤❤</H2></footer>


<script src="tip.js"></script>

</body>

</html>

                                                             CSS Code is Given Here:

body{

    font-family: sans-serif;

    margin: 0;

    padding: 0;

    font-weight: bolder;

}

.container{

    width: 60vh;

    border-radius: 8px;

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

    margin: 20vh auto;

    background-color: steelblue;

    padding: 5vh;

}

.container input{

    box-sizing: border-box;

    padding: 0.4vh;

    border-radius: 6px;

    width: 100%;

}

input[type=text]:focus{

    outline: none;

    background-color: lightcyan;

}

footer {

    text-align: center;

}

.header{

    text-align: center;

    font-size: 25px;

    font-family: 'Times New Roman', Times, serif;

    padding: 2vh;

}

.textvalue{

    padding: 1vh;

}

.tipinput{

    margin: 0;

    padding: 0;

}

.totalcontainer{

    margin: 2vh auto;

    text-align: center;

    

}

.total{

    font-family: Arial, Helvetica, sans-serif;

    font-size: 20px;

    color: black;

}

.noofpeople{

    margin: 2vh auto;

}

.bottomcontainer{

    display: flex;

    

    

}

                                                    This is Javascript File

const billInput = document.getElementById('billTotalInput')

const tipInput = document.getElementById('tipInput')

const numberofPeopleDiv = document.getElementById('numberofPeople')

const perPersonTotalDiv = document.getElementById('perPersonTotal')


let numberofPeople = Number(numberofPeopleDiv.innerText)


const calculateBill = () => {

    

    

    


    const bill = Number(billInput.value)

    

    const tipPercent  = Number(tipInput.value)/100


    const tipAmount = bill*tipPercent


    const total = tipAmount + bill

    const perPersonTotal = total/numberofPeople

    perPersonTotalDiv.innerText = perPersonTotal.toFixed(2)

}

const increasePeople = () => {

    numberofPeople+=1

    numberofPeopleDiv.innerText = numberofPeople

    if(numberofPeople>1){

        numberofPeopleDiv.style.color = "black";

    }

    calculateBill()

}


const decreasePeople = ( ) => {

    if(numberofPeople<=1){

        numberofPeopleDiv.style.color = "red";

        alert("Invalid, Input")

        return

    }

    numberofPeople -=1

    numberofPeopleDiv.innerText = numberofPeople

    calculateBill( )

}


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. 





Railway Reservation Portal Using HTML and CSS Only.

 


 Hello There !! , This is basic clone of railway reservation Portal that is made using HTML and CSS       only,
 Source Code For HTML and CSS is Attached here, where you can have look and can also     use in         your project work also.

                        
 Github Link is given here : Click Here
 View The live Website by  Clicking Here

Full HTML Code is:-

<!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>Clonepage</title>
</head>
<body>
    <div class="container">
        <div class="azadi"><img src="./azadikaamritmahotsav.jpg"></div>
        <div class="containerleft">
            <img src="./Background.png">
            <h1> Indian Railways</h1>
            <h2>भारतीय रेल सेवा</h2>
        </div>
        <div class="containerright">
                <div class="containerrightbox">
            <h2>Check Availability</h2>
            <hr class="hr">
            <label for="city">Choose Your Route: </label>
            <form>
                <div class="form">
                <label>From:</label>
                <select name="city">
                    <option >Jaunpur</option>
                    <option >Gorakhpur</option>
                    <option >Varanshi</option>
                    <option >Prayagraj</option>
                    <option >Gonda</option>
                </select>
                <label>To:</label>
                <select name="city">
                    <option >Gorakhpur</option>
                    <option >Jaunpur</option>
                    <option >Varanshi</option>
                    <option >Prayagraj</option>
                    <option >Gonda</option>
                </select>
                </div>
                <label>Select Your Class </label>>
                <select>
                    <option >AC First Class</option>
                    <option >AC 2-Tier</option>
                    <option >AC 3-Tier</option>
                    <option >First Class</option>
                    <option >AC Chair Car</option>
                    <option >Sleeper</option>
                    <option >Second Sitting</option>
                </select><br>
                <label>Type</label>
                <select>
                    <option >GENERAL</option>
                    <option >LADIES</option>
                    <option >LOWER BERTH/SR.CITIZEN</option>
                    <option >PERSON WITH DISABILITY</option>
                    <option >TATKAL</option>
                    <option >PREMIUM TATKAL</option>
                </select>
                <div class="checkbox">
                    <input type="checkbox">
                    <label>Divyaang Concession</label>
                    <input type="checkbox">
                    <label>Flexible With Date</label><br>
                    <input type="checkbox">
                    <label>Train with Available Berth</label>
                    <input type="checkbox">
                    <label>Railway Pass Concession</label>
                </div>
                <div class="submitbutton">
                    <button>Search</button>
                </div>
            </form>
            </div>
        </div>
    </div>
    <footer>
        <h2>Made by -- Vaibhav Yadav --</h2>
    </footer>
</body>
</html>
             
// Full CSS Code is: -


body{
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0%;
    width: 100%;
    height: 100%;
    padding: 0;
    background-image: url(./rail2.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-weight: bolder;
}
.container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.containerleft{
    padding: 10%;
    margin: 2% auto;
}
.containerleft h1 h2{

}
.azadi{
    width:1%;
}
.containerleft img{
    text-align: center;
    width: 50%;
    backdrop-filter: blur(5px);
}
.containerright{
    padding: 5% 20% 0 0;

}
.containerrightbox{
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1% 7% 15% 7%;
    box-shadow: 0px 0px  50px black;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
.containerrightbox .form{
    display: flex;
    

    
}
.containerrightbox form select{
    margin: 1% 4% 5% 2%;
    color: gray;
}
.submitbutton{
    text-align: center;
    margin: 10% 0 0 5%;
}
.hr{
    color: black;
}
footer{
    text-align: center;
    font-size: large;
    animation: vaibhav 2s infinite ;
    padding: 2% 0 0 0;
}
@keyframes vaibhav {
    0%{color: violet;}
    25%{color: blueviolet;}
    50%{color: green;}
    75%{color: yellow;}
    100%{color: red;}
}


                                // Made by Vaibhav Yadav




 

Operator Overloading in C++

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