THAPA TECHNICAL

HOUSE OF WEB DEVELOPERS AND TECHNOLOGY.

Create a Website using HTML & CSS from Scratch in 20Min Challenge

Create a Website using HTML & CSS from Scratch in 20Min Challenge







Source Code


Index.html


<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div class="mainheader">
<div class="logo">
<img src="images/logo.png">
</div>

<nav>
<a href="#">home</a>
<a href="#">services</a>
<a href="#">about</a>
<a href="https://www.thapatechnical.com" target="_blank">contact</a>
</nav>

<div class="menubtn">
<button> HelpLine</button>
</div>
</div>

<!--  DONATION FOR SUPPORT:    PhonePay = vinodbahadur@ybl      GooglePay: vbthapa55@oksbi
 Believe me, all this money will be used to make more quality videos and to make my channel grow. So that I can always provide you awesome free videos :) -->

<main>
<section class="left-sec">
<h2> We Are Here For Your Care</h2>
<h1> We The Best Doctors</h1>
<p>We are here for your care 24/7. Any help just call us.</p>
<button>
Make an appointment
</button>
</section>

<section class="right-sec">
<figure>
<img src="images/mainbg.png">
</figure>
</section>
</main>
</header>
</body>
</html>


style.css


*{
margin: 0; padding: 0;
box-sizing: border-box;
font-family: 'Josefin Sans', sans-serif;
}

header{
width: 100%;
height: 100vh;
background-image: url('../images/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;

}

.mainheader{
width: 100%;
height: 100px;
display: flex;
justify-content: space-between;
align-items: center;
}

.mainheader .logo img{
width: 250px; height: 70px;
padding-left: 60px;
}

.mainheader nav{
width: 450px;
display: flex;
justify-content: space-around;
align-items: center;
}

.mainheader nav a{
text-decoration: none;
color: black;
text-transform: uppercase;
}

.menubtn{
margin-right: 60px;
}
.mainheader button{
padding: 10px 45px;
text-align: center;
font-size: 14px;
color: #fff;
border: none;
background-image: linear-gradient(to right,#649bff,#0070fa,#649bff);
border-radius: 10px;
}


main{
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}

main .right-sec{
padding-right: 70px;
}

main .left-sec{
padding-left: 100px;
}

.left-sec h2{
font-size: 20px;
text-transform: capitalize;
font-weight: lighter;
color: #242424;
margin-top: 100px;
}

.left-sec h1{
font-size: 55px;
text-transform: capitalize;
font-weight: 700;
margin: 15px 0;
}

.left-sec p{
margin-bottom: 20px;
}

.left-sec button{
padding: 15px 45px;
text-align: center;
font-size: 14px;
color: #fff;
border: none;
background-image: linear-gradient(to right,#649bff,#0070fa,#649bff);
border-radius: 10px;
}

9 comments: