How to Create Profile Page in HTML,CSS,Bootstrap
इस Article में हम Profile Page को Create करना सीखेंगे। ये profile Showing Page है। जैसे Instagram Facebook या other Social Network में होता है। यहाँ पे मै उतना Professional तो नहीं Create करुगा। लेकिन कुछ आपको Idea दूंगा। जिससे आप उसको edit करके जैसा चाहे वैसा Page Create कर सकते है।
How to Create Profile Page in HTML,CSS, Bootstrap
इस Page को HTML CSS Bootstrap की मदद से Create किया है। कुछ Jquery का Use किया है। अगर आप Img Upload चाहते है। तो Jquery का use कर सकते है।
यहाँ पे पूरा HTML File का Code दे रहा हूँ। जिसमे HTML CSS Bootstrap सारा Include है।
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Profile Page </title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:opsz,wght@8..144,200&display=swap');
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i|Playfair+Display:400,400i,700,700i&display=swap");
/* -----------------
User Profile
----------------*/
.profile-pic img {
border-radius: 50%;
box-shadow: 0px 0px 5px 0px #c1c1c1;
cursor: pointer;
width: 150px;
height: 150px;
}
.profile-data {
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
height: 100%;
left: 0;
position: relative;
top: -32px;
width: 110%;
background-color: rgb(45, 56, 70);
}
.sign-head {
padding-bottom: 25px;
}
.userdata-row {
max-width: 800px;
padding-bottom: 50px;
padding-top: 50px;
}
.profile-txt p {
font-size: 26px;
font-weight: 600;
line-height: 120%;
margin-right: 24px;
}
.profile-username {
font-size: 15px !important;
margin: 0;
}
.profile-username span {
padding-right: 20px;
}
.user-dsc {
font-size: 12px !important;
margin-top: 20px;
font-weight: 400 !important;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="profile-data">
<div class="row mx-auto userdata-row">
<div class="col-md-3 col-sm-6 col-xs-12 profile-badge">
<!-- <img src="https://dummyimage.com/600x400/000/"> -->
<div class="profile-pic">
<img alt="User Pic" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4nVip6SmeFSiLweOeL0EJO-iBWQnO-lLlCSX8fKg51zSDyZW9h6IolfjWp7yp_8uQnroGFN8GRnx5h4MNrmAY80dzDOOypY9Tt3hv_qZta84o1CuJ28NN-XSGtBfIjKCKrUGCQTvvbfVdo3mpRgISuyJ-TaUY5TSKeK_kIy7uRs_8332CtZx8xoOa/s320/76.jpg" id="profile-image1" height="170">
<input id="profile-image-upload" class="hidden" type="file" onchange="previewFile()" >
<div style="color:#999;" > </div>
</div>
</div>
<div class=" text-center col-6 profile-txt">
<p class="text-white">Vishalss</p>
<div class="profile-username"> <span class=" text-white">Vishal Rathaur</span></div>
<p class="user-dsc text-white">My name is Vishal Rathaur. I have best Knowledge in Coding, Business, Finance, Trading, Web development, Analysis etc. </p>
<div style="width: 95%;">
<a href="www.codeofweb.com">www.codeofweb.com</a>
</div>
</div>
</div></div>
</body>
</html>
Comments
Post a Comment