Welcome folks today in this blog post we will be building a google search engine results layout landing page in html5 and css3. All the full source code is given below.
Get Started
In order to get started you need to make an index.html
file and copy paste the below code
index.html
First of all we will breakdown the whole layout of landing page of google search engine results. First of all we will design the header section of this landing page which includes the google company logo on the left side and also the input field side by side where the search icon will also be there. Now we will write the html code for this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<!DOCTYPE html> <html lang="en"> <head> <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>Google Search Engine Layout in HTML5 & CSS3</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="wrapper"> <div class="header"> <div class="headerContent"> <div class="logoContainer"> <a href="index.php"> <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google Title"> </a> </div> <div class="searchContainer"> <form action="" method=""> <div class="searchBarContainer"> <input type="text" class="searchBox" name="term" value=""> <button class="searchButton"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADjCAMAAADdXVr2AAAAb1BMVEX39/dJkOL9+/g8iuH+/PhAjOFCjeH5+fc5ieFIkOH19vfw8/aDsOiMtent8fZenOTe6PTU4fLj6/SUuup1qOZRlePg6fSmxeycv+vE1/Cjw+xdm+R8rOeNtulpoeXL3PG0ze680u9upOa3z+6wye2hOIKGAAALtklEQVR4nO1da5uqOAzWljaAoKIy3kXU//8bF3TmTAJ4G9IWXd9nP+zZ56ztS9Jcekl6vQ8++OCDDz744INrgCpcT4gJBRMhIBxMkmyZ58fjMc+XWTIZhOV/fm2WJbPhOF9Fh1SrElKqb+j0EK+W46EnXpNiQQ0m+XQXFJS07tehtZQy3U2XE3g1igDeMJuOSik1ECMki7+yW2QD73UYghgsN6m8S+2Xop9ulgPxCgRBhFmkH6b2S1HHWa/rDAulXK39Z7l9M/TX80JJXVO4DhBJJOWfuF2g/HjcVQkW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Xxdro65dl4CLd7zdfQPfn9A1xoCs+75A3QlCPdg+guPxZUO1N2Qj8ZcZufwS6jlnBHfm/O793l9w725Xb8YrzbqGF4by+/9+bn1Q8X38u+vDe/psPhd+J3R37+y/P7f8vv9f3f29uX2uUhDBW/uPyAdiV6Q/m9uX7WL7e9G78318/a5T1qX16dn3eT37vL7/X5iTv8Xt3/Vd+OUPjbV5ffHfvyBvxu+ofta9O7Kz+LD32NAODa1bYz0k60cWkBELf48bafd4Hb8gteXXyl/K7bF976Lk5QfWdLtLNtiecO4IZ+atPvNm3guvzegl79Peo7KWevlN+mUX6tGxF2BFfWn/uixUxolJ+r2moG0MSvG60DeQC9TUU/pdOiqdyorj+/A8XeOVE+nP53DVF3o+MqK8R4pqUqr1SqGd+j5e4AvEk+jaPpccL8pL4rKO8gek9dqfzggw8++OCDD14N/wEkA5O5FHXcPwAAAABJRU5ErkJggg=="></button> </div> </form> </div> </div> </div> </div> </body> </html> |
As you can see we have given some custom css classes that we will define inside the style.css file which we will create in the next step. Basically we have the parent div called wrapper and inside we have header section which includes two sections one for logo and second for the input field where the user will search for the favourite topic on google search engine. Now we will write the css code
style.css
1 2 3 4 5 6 7 8 9 |
* { font-family: arial, sans-serif; color: #545454; } html, body { margin: 0; height: 100%; } |
Basically first of all we need to write some base css styles which is removing margin and padding of all elements and setting it to 0 and also changing font-family of all elements to arial and also the text color.
Styling the Parent div
1 2 3 4 5 6 7 8 |
.wrapper { display: flex; flex-direction: column; min-height: 100%; } .wrapper.indexPage { justify-content: center; } |
Now as you can see we are targeting the parent div wrapper and changing the display to flex and changing min-height to 100%.
Styling the Input Field and Form
Now we will style the input field which is there inside the form section of the main content section. The css styles are as follows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
.mainSection { display: flex; flex-direction: column; align-items: center; } .mainSection .searchContainer { margin-top: 20px; width: 100%; } .mainSection .searchContainer form { display: flex; flex-direction: column; align-items: center; } .searchContainer .searchButton { color: #757575; background-color: #f5f5f5; border: none; height: 36px; width: 125px; border-radius: 1px; font-size: 13px; font-weight: bold; margin-top: 20px; cursor: pointer; outline: none; } .mainSection .searchContainer .searchBox { border: none; box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08); height: 44px; border-radius: 2px; outline: none; padding: 10px; box-sizing: border-box; font-size: 16px; width: 70%; max-width: 630px; color: #000; } .headerContent .searchBarContainer .searchButton { background-color: #fff; height: 44px; margin-top: 0; width: 44px; padding-right: 20px; display: flex; justify-content: center; } .headerContent .searchBarContainer .searchButton img { width: 17px; margin-top:11px; } |
As you can see we have a material like input field which has some box shadow attached to it and also on the right hand side we have the search icon placed in a perfect position.
Styling the Google Company Logo
Now we will be styling the company logo inside this header section in the left hand side. The css styles are as follows
1 2 3 4 5 6 7 8 9 10 11 12 |
.mainSection .logoContainer { width: 220px; text-align: center; } .logoContainer img { width: 100%; } .headerContent .logoContainer { width: 150px; padding: 5px 20px; box-sizing: border-box; } |
Styling the Tabs UI Section
Now we will write the tabs section html code which are as follows.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<div class="tabsContainer"> <ul class="tabList"> <li class="active"> <a href="search.php?term=&type=sites"> All </a> </li> <li class=""> <a href="search.php?term=&type=images"> Images </a> </li> </ul> </div> |
As you can see inside this html code we have two tabs namely All and Images. These filters are really helpful when differentiating the results based on text and images
Now we will write the css code for styling these tabs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
.tabsContainer { margin-left: 150px; } .tabsContainer .tabList { padding: 0; margin: 0; } .tabsContainer .tabList li { display: inline-block; padding: 0 16px 12px 16px; color: #777; font-size: 13px; } .tabsContainer .tabList li a { text-decoration: none; } .tabsContainer .tabList li.active { border-bottom: 3px solid #1A73E8; } .tabsContainer .tabList li.active a { font-weight: bold; color: #1A73E8; } |
Styling Search Results Pages and Hyperlinks
Now we will add the html code for storing all the search results and hyperlinks. First of all inside this div we have the section which represents the total number of results which are returned after searching it will get displayed
1 2 3 4 |
<div class="mainResultsSection"> <p class='resultsCount'>About 24 results</p> <div class='siteResults'></div> </div> |
Now we need to style this 24 results value in css as shown below
1 2 3 4 5 6 7 8 9 10 11 12 13 |
.mainResultsSection { flex: 1; } .mainResultsSection .resultsCount { font-size: 13px; color: #808080; margin-left: 150px; } .mainResultsSection .siteResults { margin-left: 150px; } |
Now we add the different serp’s html where each page will contain the hyperlink and title and description as well. Each serp will have a common class called resultContainer. The html code is as shown below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
<div class="mainResultsSection"> <p class='resultsCount'>About 24 results</p> <div class='siteResults'> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.youtube.com/?tab=w1' data-linkId='4'> YouTube </a> </h3> <span class='url'>https://www.youtube.com/?tab=w1</span> <span class='description'>Enjoy the videos and music that you love, upload original content and share it all with friends, family and the world on YouTube.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.co.in/imghp?hl=en&tab=wi' data-linkId='1'> Google Images </a> </h3> <span class='url'>https://www.google.co.in/imghp?hl=en&tab=wi</span> <span class='description'>Google Images. The most comprehensive image search on the web.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://maps.google.co.in/maps?hl=en&tab=wl' data-linkId='2'> Google Maps </a> </h3> <span class='url'>https://maps.google.co.in/maps?hl=en&tab=wl</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://play.google.com/?hl=en&tab=w8' data-linkId='3'> Android Apps on Google Play </a> </h3> <span class='url'>https://play.google.com/?hl=en&tab=w8</span> <span class='description'>Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Anytime, anywhere, across your devices.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://news.google.com/?tab=wn' data-linkId='5'> Google News </a> </h3> <span class='url'>https://news.google.com/?tab=wn</span> <span class='description'>Comprehensive, up-to-date news coverage, aggregated from sources all over the world by Google News.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://mail.google.com/mail/?tab=wm' data-linkId='6'> Gmail </a> </h3> <span class='url'>https://mail.google.com/mail/?tab=wm</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://drive.google.com/?tab=wo' data-linkId='7'> Google Drive: Sign-in </a> </h3> <span class='url'>https://drive.google.com/?tab=wo</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.co.in/intl/en/about/products?tab=wh' data-linkId='8'> Browse All of Google's Products & Services - Google </a> </h3> <span class='url'>https://www.google.co.in/intl/en/about/products?tab=wh</span> <span class='description'>Browse a list of Google products designed to help you work and play, stay organized, get answers, keep in touch, grow your business, and more.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='http://www.google.co.in/history/optout?hl=en' data-linkId='9'> Google - Search Customization </a> </h3> <span class='url'>http://www.google.co.in/history/optout?hl=en</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://google.com/preferences?hl=en' data-linkId='10'> Search Settings </a> </h3> <span class='url'>https://google.com/preferences?hl=en</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ' data-linkId='11'> Sign in - Google Accounts </a> </h3> <span class='url'>https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://google.com/advanced_search?hl=en-IN&authuser=0' data-linkId='12'> Google Advanced Search </a> </h3> <span class='url'>https://google.com/advanced_search?hl=en-IN&authuser=0</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=hi&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAU' data-linkId='13'> खोज सेटिंग </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=hi&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAU</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=bn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAY' data-linkId='14'> সার্চ সেটিংস </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=bn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAY</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=te&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAc' data-linkId='15'> శోధన సెట్టింగ్లు </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=te&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAc</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=mr&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAg' data-linkId='16'> शोध सेटिंग्ज </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=mr&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAg</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ta&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAk' data-linkId='17'> தேடல் அமைப்புகள் </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ta&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAk</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=gu&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAo' data-linkId='18'> શોધ સેટિંગ </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=gu&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAo</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=kn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAs' data-linkId='19'> ಹುಡುಕಾಟ ಸೆಟ್ಟಿಂಗ್ಗಳು </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=kn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAs</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ml&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAw' data-linkId='20'> തിരയൽ ക്രമീകരണം </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ml&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAw</span> <span class='description'></span> </div> </div> </div> |
Now we will add the custom css styles for styling these serp’s in google search engine
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
.resultContainer { display: flex; flex-direction: column; margin-bottom: 26px; } .resultContainer .title { margin: 0; } .resultContainer .title a { color: #1a0dab; text-decoration: none; font-weight: normal; font-size: 18px; } .resultContainer .title a:hover { text-decoration: underline; } .resultContainer .url { color: #006621; font-size: 14px; } .resultContainer .description { font-size: 12px; } .paginationContainer { display: flex; justify-content: center; margin-bottom: 25px; } .pageButtons { display: flex; } .pageNumberContainer, .pageNumberContainer a { display: flex; flex-direction: column; align-items: center; text-decoration: none; } .pageNumberContainer img { height: 37px; } .pageNumber { color: #000; font-size: 13px; } a .pageNumber { color: #4285f4; } .mainResultsSection .imageResults { margin: 20px; } .gridItem { position: relative; } .gridItem img { max-width: 200px; min-width: 50px; visibility: hidden; } .gridItem .details { visibility: hidden; position: absolute; bottom: 0px; left: 0px; width: 100%; overflow: hidden; background-color: rgba(0,0,0,0.8); color: #fff; font-size: 11px; padding: 3px; box-sizing: border-box; white-space: nowrap; } .gridItem:hover .details { visibility: visible; } @keyframes shine { to { background-position: 200% center; } } |
FULL SOURCE CODE
Now wrapping it all just copy all the html and css code for this awesome layout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
<!DOCTYPE html> <html lang="en"> <head> <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>Google Search Engine Layout in HTML5 & CSS3</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="wrapper"> <div class="header"> <div class="headerContent"> <div class="logoContainer"> <a href="index.php"> <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google Title"> </a> </div> <div class="searchContainer"> <form action="" method=""> <div class="searchBarContainer"> <input type="text" class="searchBox" name="term" value=""> <button class="searchButton"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADjCAMAAADdXVr2AAAAb1BMVEX39/dJkOL9+/g8iuH+/PhAjOFCjeH5+fc5ieFIkOH19vfw8/aDsOiMtent8fZenOTe6PTU4fLj6/SUuup1qOZRlePg6fSmxeycv+vE1/Cjw+xdm+R8rOeNtulpoeXL3PG0ze680u9upOa3z+6wye2hOIKGAAALtklEQVR4nO1da5uqOAzWljaAoKIy3kXU//8bF3TmTAJ4G9IWXd9nP+zZ56ztS9Jcekl6vQ8++OCDDz744INrgCpcT4gJBRMhIBxMkmyZ58fjMc+XWTIZhOV/fm2WJbPhOF9Fh1SrElKqb+j0EK+W46EnXpNiQQ0m+XQXFJS07tehtZQy3U2XE3g1igDeMJuOSik1ECMki7+yW2QD73UYghgsN6m8S+2Xop9ulgPxCgRBhFmkH6b2S1HHWa/rDAulXK39Z7l9M/TX80JJXVO4DhBJJOWfuF2g/HjcVQkW5GZPK2WNoNokXSRYkpNtyZXQatY5CYL4iljIXQhGX50iKAYLrR6Y9zce+IuLgXBN6gcgluktg6IL3114wXS9O8wKHEZp/xKY3fh/VJp3RIBi+K2XQRM1KYN1NF8m40H4kzb0wnCSLE/bXarkdVHKzaQDAgRvGVzRS6X8dbxPhqKMm0nQBec8whuMj/HavyZFrXPnXhDCbSm6uuC0DDb7yT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ffHfvyBvxu+ofta9O7Kz+LD32NAODa1bYz0k60cWkBELf48bafd4Hb8gteXXyl/K7bF976Lk5QfWdLtLNtiecO4IZ+atPvNm3guvzegl79Peo7KWevlN+mUX6tGxF2BFfWn/uixUxolJ+r2moG0MSvG60DeQC9TUU/pdOiqdyorj+/A8XeOVE+nP53DVF3o+MqK8R4pqUqr1SqGd+j5e4AvEk+jaPpccL8pL4rKO8gek9dqfzggw8++OCDD14N/wEkA5O5FHXcPwAAAABJRU5ErkJggg=="></button> </div> </form> </div> </div> <div class="tabsContainer"> <ul class="tabList"> <li class="active"> <a href="search.php?term=&type=sites"> All </a> </li> <li class=""> <a href="search.php?term=&type=images"> Images </a> </li> </ul> </div> </div> <div class="mainResultsSection"> <p class='resultsCount'>About 24 results</p> <div class='siteResults'> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.youtube.com/?tab=w1' data-linkId='4'> YouTube </a> </h3> <span class='url'>https://www.youtube.com/?tab=w1</span> <span class='description'>Enjoy the videos and music that you love, upload original content and share it all with friends, family and the world on YouTube.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.co.in/imghp?hl=en&tab=wi' data-linkId='1'> Google Images </a> </h3> <span class='url'>https://www.google.co.in/imghp?hl=en&tab=wi</span> <span class='description'>Google Images. The most comprehensive image search on the web.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://maps.google.co.in/maps?hl=en&tab=wl' data-linkId='2'> Google Maps </a> </h3> <span class='url'>https://maps.google.co.in/maps?hl=en&tab=wl</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://play.google.com/?hl=en&tab=w8' data-linkId='3'> Android Apps on Google Play </a> </h3> <span class='url'>https://play.google.com/?hl=en&tab=w8</span> <span class='description'>Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Anytime, anywhere, across your devices.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://news.google.com/?tab=wn' data-linkId='5'> Google News </a> </h3> <span class='url'>https://news.google.com/?tab=wn</span> <span class='description'>Comprehensive, up-to-date news coverage, aggregated from sources all over the world by Google News.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://mail.google.com/mail/?tab=wm' data-linkId='6'> Gmail </a> </h3> <span class='url'>https://mail.google.com/mail/?tab=wm</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://drive.google.com/?tab=wo' data-linkId='7'> Google Drive: Sign-in </a> </h3> <span class='url'>https://drive.google.com/?tab=wo</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.co.in/intl/en/about/products?tab=wh' data-linkId='8'> Browse All of Google's Products & Services - Google </a> </h3> <span class='url'>https://www.google.co.in/intl/en/about/products?tab=wh</span> <span class='description'>Browse a list of Google products designed to help you work and play, stay organized, get answers, keep in touch, grow your business, and more.</span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='http://www.google.co.in/history/optout?hl=en' data-linkId='9'> Google - Search Customization </a> </h3> <span class='url'>http://www.google.co.in/history/optout?hl=en</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://google.com/preferences?hl=en' data-linkId='10'> Search Settings </a> </h3> <span class='url'>https://google.com/preferences?hl=en</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ' data-linkId='11'> Sign in - Google Accounts </a> </h3> <span class='url'>https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://google.com/advanced_search?hl=en-IN&authuser=0' data-linkId='12'> Google Advanced Search </a> </h3> <span class='url'>https://google.com/advanced_search?hl=en-IN&authuser=0</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=hi&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAU' data-linkId='13'> खोज सेटिंग </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=hi&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAU</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=bn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAY' data-linkId='14'> সার্চ সেটিংস </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=bn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAY</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=te&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAc' data-linkId='15'> శోధన సెట్టింగ్లు </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=te&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAc</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=mr&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAg' data-linkId='16'> शोध सेटिंग्ज </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=mr&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAg</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ta&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAk' data-linkId='17'> தேடல் அமைப்புகள் </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ta&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAk</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=gu&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAo' data-linkId='18'> શોધ સેટિંગ </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=gu&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAo</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=kn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAs' data-linkId='19'> ಹುಡುಕಾಟ ಸೆಟ್ಟಿಂಗ್ಗಳು </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=kn&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAs</span> <span class='description'></span> </div> <div class='resultContainer'> <h3 class='title'> <a class='result' href='https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ml&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAw' data-linkId='20'> തിരയൽ ക്രമീകരണം </a> </h3> <span class='url'>https://www.google.com/setprefs?sig=0_VmYk-CfXjog0uDTUnwr4Zbt0fdU%3D&hl=ml&source=homepage&sa=X&ved=0ahUKEwj54fOW8Mr6AhVZ8jgGHdwhCCEQ2ZgBCAw</span> <span class='description'></span> </div> </div> </div> </div> </body> </html> |
style.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
* { font-family: arial, sans-serif; color: #545454; } html, body { margin: 0; height: 100%; } .textGradient { margin-top: 10px; text-align: center; background: linear-gradient(to right, #66d9ff 20%, #8c66ff 40%, #8c66ff 60%, #66d9ff 80%); background-size: 200% auto; color: #000; background-clip: text; text-fill-color: transparent; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 1s linear infinite; } .wrapper { display: flex; flex-direction: column; min-height: 100%; } .wrapper.indexPage { justify-content: center; } .mainSection { display: flex; flex-direction: column; align-items: center; } .mainSection .searchContainer { margin-top: 20px; width: 100%; } .mainSection .searchContainer form { display: flex; flex-direction: column; align-items: center; } .searchContainer .searchButton { color: #757575; background-color: #f5f5f5; border: none; height: 36px; width: 125px; border-radius: 1px; font-size: 13px; font-weight: bold; margin-top: 20px; cursor: pointer; outline: none; } .mainSection .searchContainer .searchBox { border: none; box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08); height: 44px; border-radius: 2px; outline: none; padding: 10px; box-sizing: border-box; font-size: 16px; width: 70%; max-width: 630px; color: #000; } .mainSection .logoContainer { width: 220px; text-align: center; } .logoContainer img { width: 100%; } .header { background-color: #FAFAFA; border-bottom: 1px solid #ebebeb; } .wrapper .headerContent { display: flex; align-items: center; } .headerContent .logoContainer { width: 150px; padding: 5px 20px; box-sizing: border-box; } .headerContent .searchContainer { flex: 1; } .headerContent .searchContainer form { margin: 15px 0 28px 0; } .headerContent .searchBarContainer { height: 44px; border-radius: 2px; background-color: #fff; box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08); width: 70%; max-width: 630px; box-sizing: border-box; display: flex; } .headerContent .searchBarContainer .searchBox { flex: 1; border: none; background-color: transparent; padding: 12px; font-size: 16px; color: #000; } .headerContent .searchBarContainer .searchButton { background-color: #fff; height: 44px; margin-top: 0; width: 44px; padding-right: 20px; display: flex; justify-content: center; } .headerContent .searchBarContainer .searchButton img { width: 17px; margin-top:11px; } .tabsContainer { margin-left: 150px; } .tabsContainer .tabList { padding: 0; margin: 0; } .tabsContainer .tabList li { display: inline-block; padding: 0 16px 12px 16px; color: #777; font-size: 13px; } .tabsContainer .tabList li a { text-decoration: none; } .tabsContainer .tabList li.active { border-bottom: 3px solid #1A73E8; } .tabsContainer .tabList li.active a { font-weight: bold; color: #1A73E8; } .mainResultsSection { flex: 1; } .mainResultsSection .resultsCount { font-size: 13px; color: #808080; margin-left: 150px; } .mainResultsSection .siteResults { margin-left: 150px; } .resultContainer { display: flex; flex-direction: column; margin-bottom: 26px; } .resultContainer .title { margin: 0; } .resultContainer .title a { color: #1a0dab; text-decoration: none; font-weight: normal; font-size: 18px; } .resultContainer .title a:hover { text-decoration: underline; } .resultContainer .url { color: #006621; font-size: 14px; } .resultContainer .description { font-size: 12px; } .paginationContainer { display: flex; justify-content: center; margin-bottom: 25px; } .pageButtons { display: flex; } .pageNumberContainer, .pageNumberContainer a { display: flex; flex-direction: column; align-items: center; text-decoration: none; } .pageNumberContainer img { height: 37px; } .pageNumber { color: #000; font-size: 13px; } a .pageNumber { color: #4285f4; } .mainResultsSection .imageResults { margin: 20px; } .gridItem { position: relative; } .gridItem img { max-width: 200px; min-width: 50px; visibility: hidden; } .gridItem .details { visibility: hidden; position: absolute; bottom: 0px; left: 0px; width: 100%; overflow: hidden; background-color: rgba(0,0,0,0.8); color: #fff; font-size: 11px; padding: 3px; box-sizing: border-box; white-space: nowrap; } .gridItem:hover .details { visibility: visible; } @keyframes shine { to { background-position: 200% center; } } |