The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.
The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.
Below is the html code for this video.
index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search Page Template</title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<ul class="list-group list-group-horizontal">
<li class="list-group-item ms-auto d-flex justify-content-center align-items-center">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Mail</a>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Images</a>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center">
<span class="material-symbols-outlined dot9s">apps</span>
</li>
<li class="list-group-item d-flex justify-content-center align-items-center">
<button class="btn btn-primary btn-sign-in">Sign In</button>
</li>
</ul>
</div>
</div>
<div class="container-fluid">
<h1 class="display-1 text-center mt-5 mb-4 fw-bolder text-light">Search</h1>
<div class="row mb-4">
<div class="col"></div>
<div class="col-10 col-sm-10 col-md-8 col-lg-5 search-container d-flex">
<span class="material-symbols-outlined">search</span>
<input type="search" class="search-area w-100">
<span class="material-symbols-outlined ms-auto me-2" data-bs-toggle="tooltip" data-bs-placement="bottom"
data-bs-title="Search by voice">keyboard_voice</span>
<span class="material-symbols-outlined" data-bs-toggle="tooltip" data-bs-placement="bottom"
data-bs-title="Search by image">photo_camera</span>
</div>
<div class="col"></div>
</div>
<div class="row mb-4">
<div class="col d-flex">
<button class="btn btn-search w-auto ms-auto">Search</button>
</div>
<div class="col">
<button class="btn btn-search w-auto">Random Info</button>
</div>
</div>
<p class="text-center">
<span class="text-link">Search in:</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">lorem</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">ipsum</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">dolor</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">sit</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">amet</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">consect</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">adipisi</a>
</span>
<span>
<a href="#" class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover">elit</a>
</span>
</p>
</div>
<div class="container-fluid footer-bg position-absolute bottom-0">
<div class="row border-bottom py-2">
<span class="ps-4">Location</span>
</div>
<div class="row py-2">
<div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<ul class="list-group list-group-horizontal">
<li class="list-group-item ms-xl-0 ms-lg-auto ms-md-auto ms-sm-auto ms-auto">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">About</a>
</li>
<li class="list-group-item">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Advertising</a>
</li>
<li class="list-group-item text-nowrap me-xl-0 me-lg-auto me-md-auto me-sm-auto">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">
How Search Works</a>
</li>
</ul>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<ul class="list-group list-group-horizontal">
<li class="list-group-item ms-xl-auto ms-lg-auto ms-md-auto ms-sm-auto ms-auto">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Privacy</a>
</li>
<li class="list-group-item">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Terms</a>
</li>
<li class="list-group-item me-xl-0 me-lg-auto me-md-auto me-sm-auto me-auto">
<a href="#"
class="link-underline-light link-underline-opacity-0 link-underline-opacity-100-hover text-light">Settings</a>
</li>
</ul>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="index.js"></script>
</body>
</html>
Below is the css code for this video.
style.css
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100%;
background: #202124;
color: #bdc1c6;
overflow: hidden;
}
.material-symbols-outlined {
font-variation-settings: 'FILL'0, 'wght'400, 'GRAD'0, 'opsz'24
}
span.material-symbols-outlined {
color: #707579;
}
span.dot9s {
color: #ffffffbf;
padding: 10px;
}
span.dot9s:hover {
background: #e8eaed1a;
border-radius: 50%;
}
.list-group-horizontal>.list-group-item:first-child:not(:last-child), .list-group-horizontal>.list-group-item+.list-group-item {
background: transparent;
border: none;
padding: 10px;
}
.btn-sign-in {
padding: 5px 30px;
}
.search-container {
border: 1px solid #5f6368;
border-radius: 32px;
padding: 15px;
}
.search-container:hover {
background-color: #303134;
border-color: transparent;
box-shadow: 0 1px 5px #171717;
}
.search-area {
background: transparent;
color: #ffffff;
border: none;
padding: 0 10px;
}
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
display: inline-block;
height: 12px;
width: 12px;
background: linear-gradient(45deg, transparent 0%, transparent 43%, #707579 45%, #707579 55%, transparent 57%, transparent 100%),
linear-gradient(135deg, transparent 0%, transparent 43%, #707579 45%, #707579 55%, transparent 57%, transparent 100%);
margin-left: 10px;
}
.search-area:focus-visible {
border-right: 1px solid #707579;
margin-right: 10px;
padding: 0 10px;
outline: none;
}
.btn-search {
background-color: #303134;
color: #e8eaed;
border: 1px solid #303134;
}
.btn-search:hover {
background-color: #303134;
color: #e8eaed;
border: 1px solid #5f6368;
box-shadow: 0 1px 5px #17171740;
}
.footer-bg {
background-color: #171717;
}
Below is the javascript code for this video.
index.js
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
Thanks for visiting