Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardazafer committed Oct 16, 2019
0 parents commit e7adacf
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 0 deletions.
Binary file added assets/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/keyboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/microphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Google Home Page</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="nav">
<a class="nav-link" href="#">Gmail</a>
<a class="nav-link" href="#">Images</a>
<img id="grid-icon" src="assets/grid.png" />
<img
id="profile-pic"
src="https://avatars2.githubusercontent.com/u/22233490?v=4"
/>
</div>
<div class="main">
<div class="top-half">
<img id="logo" src="assets/google.png" />
<div id="input-container">
<img id="search-icon" src="assets/search.png" />
<input id="input" />
<img id="right-icon" src="assets/keyboard.png" />
<img id="right-icon" src="assets/microphone.png" />
</div>
<div id="button-container">
<button>Google Search</button>
<button>I'm Feeling Lucky</button>
</div>
</div>
</div>
<div class="footer">
<div class="footer-half">
<span id="footer-text">
Turkey
</span>
</div>
<div class="footer-half" id="bottom-footer">
<div>
<span id="footer-text"> Advertising </span
><span id="footer-text"> Business </span
><span id="footer-text"> About </span
><span id="footer-text">How Search works </span>
</div>
<div>
<span id="footer-text"> Privacy </span
><span id="footer-text"> Terms </span
><span id="footer-text">Settings </span>
</div>
</div>
</div>
</body>
</html>
176 changes: 176 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
/*
Clearing the margin and padding of the body element.
(The border-gaps inside and outside the whole page)
*/
body {
margin: 0;
padding: 0;
}

/* ---------------------------------------- Style of the Navigation Bar ---------------------------------------- */

/*
We used "flex" display for the alignment of the buttons in the navigation bar.
Aligned everything to the end of the navigation bar horizontally using "justify-content" property.
Aligned everything to the middle vertically using "align-items" property.
*/
.nav {
display: flex;
height: 6vh;
justify-content: flex-end;
align-items: center;
}
/*
We gave 10px of margin to both the right and the left side of the links (Gmail and Images)
"text-decoration: none" means we don't want to underline the text. By default all the "a" tags have underline.
*/
.nav-link {
margin: 0 10px 0 10px;
text-decoration: none;
font-size: 15px;
color: rgba(0, 0, 0, 0.87);
}

/*
We draw an underline when the cursor is hovering over the link
*/
.nav-link:hover {
text-decoration: underline;
}
/*
We gave 10px of margin to both the right and the left side of the grid image.
*/
#grid-icon {
margin: 0 10px 0 10px;
width: 20px;
height: 20px;
cursor: pointer;
}
/*
We gave 30px of margin to the right side and 10px of margin to the left side of the profile picture.
We set the border radius to half of the width and height of the image size in order to make it a perfect circle.
*/
#profile-pic {
margin: 0 30px 0 10px;
width: 35px;
height: 35px;
border-radius: 17.5px;
cursor: pointer;
}

/* ---------------------------------------- Style of the Main Container ---------------------------------------- */

.main {
height: 94vh;
}

.top-half {
display: flex;
height: 50%;
justify-content: center;
align-items: center;
flex-direction: column;
}

#logo {
width: 272px;
height: 92px;
}

#input-container {
margin-top: 30px;
width: 584px;
height: 44px;
border-radius: 22px;
border: 1px solid #dfe1e5;
display: flex;
align-items: center;
}

#input-container:hover {
box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.1);
}

#search-icon {
margin-left: 15px;
width: 15px;
height: 15px;
}

#right-icon {
margin: 0 10px 0 10px;
max-width: 24px;
max-height: 24px;
}

#input {
width: 100%;
height: 90%;
margin: 0 10px 0 10px;
font-size: 15px;
border: none;
}

#input:focus {
outline: none;
}

#button-container {
margin-top: 30px;
}

#button-container button {
cursor: pointer;
margin: 0 3px 0 3px;
padding: 0 15px 0 15px;
height: 40px;
font-size: 12px;
background-color: #f4f4f4;
border: none;
border-radius: 5px;
}

#button-container button:focus {
outline: none;
}

#button-container button:hover {
background-color: #f6f6f6;
border-width: 1px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------- Style of the Footer ---------------------------------------- */

.footer {
position: absolute;
height: 80px;
width: 100%;
bottom: 0;
}

.footer span {
margin: 0 10px 0 10px;
cursor: pointer;
}
.footer span:hover {
text-decoration: underline;
}

.footer-half {
display: flex;
flex-direction: row;
height: 50%;
background-color: #f4f4f4;
border-top: 1px solid #e9e9e9;
border-bottom: 1px solid #e9e9e9;
padding: 0 10px 0 10px;
align-items: center;
font-size: 15px;
color: #6f6f6f;
}

#bottom-footer {
justify-content: space-between;
}

0 comments on commit e7adacf

Please sign in to comment.