Skip to content

Instantly share code, notes, and snippets.

@PrimeTimeTran
Created September 23, 2019 09:41
Show Gist options
  • Save PrimeTimeTran/2664a79d6a3cbf9e65de933789866e4d to your computer and use it in GitHub Desktop.
Save PrimeTimeTran/2664a79d6a3cbf9e65de933789866e4d to your computer and use it in GitHub Desktop.
Google Landing page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World</title>
<link rel="icon" href="coderschool.png">
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="nav">
<a href="https://www.gmail.com">Gmail</a>
<a href="https://www.facebook.com">Images</a>
<i class="fas fa-clock icon"></i>
</div>
<div class="main-content">
<img class="logo" src="logo.gif" />
<br>
<div class="input-container">
<i class="fas fa-clock icon left-icon"></i>
<input />
<img class="right-icon" src="mic2.png" />
</div>
<br>
<div class="button-container">
<button>Google Search</button>
<button>I'm feeling lucky</button>
</div>
</div>
<script src="js/scripts.js"></script>
</body>
</html>
body {
margin: 0px;
padding: 0px;
}
.nav {
padding: 5px;
height: 50px;
text-align: right;
background-color: lightgrey;
}
a {
color: white;
}
.icon {
color: red;
}
.main-content {
width: 100vw;
height: 80vh;
}
img.logo {
margin-top: 5%;
margin-left: 20%;
}
input {
width: 60%;
border-radius: 10px;
display: inline-block;
}
.button-container {
padding-left: 35%;
}
button {
height: 50px;
width: 150px;
border-radius: 10px;
}
button:hover {
border: 1px solid grey;
}
img:hover {
cursor: pointer;
}
.right-icon {
top: 7px;
width: 24px;
right: 36px;
height: 24px;
position: relative;
}
.left-icon {
top: 5px;
width: 24px;
height: 24px;
right: -36px;
position: relative;
}
.input-container > input {
height: 50px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment