Skip to content

Instantly share code, notes, and snippets.

@marcusp619
Created January 30, 2015 06:55
Show Gist options
  • Save marcusp619/4fcd89581a45f183bc30 to your computer and use it in GitHub Desktop.
Save marcusp619/4fcd89581a45f183bc30 to your computer and use it in GitHub Desktop.
Google HomePage

Google HomePage

Tried recreating the google page. Had a little trouble with the buttons and the footer. Please crituque

A Pen by Mark on CodePen.

License.

<div class="wrapper">
<body>
<header>
<nav>
<ul>
<a href="#">+mark</a>
<a href="#">Gmail</a>
<a href="#">Images</a>
</ul>
</nav>
</header>
<div class="logo">
<img src="https://www.google.com/images/srpr/logo11w.png" alt="Google Logo" />
</div>
<div class="search-bar">
<form action="http://www.google.com"><input type="search" size="60" placeholder="Say 'OK Google'" class="search-bar"/></form>
</div>
<div class="google-button">
<button>Google Search</button>
<button>I'm Feeling Lucky</button>
</div>
</div>
<footer>
<div class="left-side">
<a href="#">Advertising</a>
<a href="#">Business</a>
<a href="#">About</a>
</div>
<div class="right-side">
<a href="#">Privacy</a>
<a href="#">Terms</a>
<a href="#">Settings</a>
</div>
</footer>
</body>
</div>
.wrapper{
max-width: 100%;
}
header {
float: right;
}
.logo{
width:50%;
margin: 0px auto;
padding-top: 20%;
padding-bottom: 20px;
}
a{
color: rgba(0,0,0,1);
text-decoration: none;
margin: 5px
}
form {
width: 50%;
margin: 0 150px 10px auto;
}
.google-button{
padding-bottom: 200px;
text-align: center;
height: 32px;
font-weight: bold;
background-color: rgba(0,0,0,0.);
}
footer {
right: 0;
bottom: 0;
left: 0;
padding: 10px;
background-color: #efefef;
text-align: center;
}
.left-side{
float: left;
}
.right-side{
float: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment