Skip to content

Commit

Permalink
Merge pull request #23 from HYF-Class19/home-navbar
Browse files Browse the repository at this point in the history
Create navbar feature in index.html
  • Loading branch information
MichaelMugaiga authored Aug 5, 2022
2 parents c03fcbb + 36f9d2f commit 517c76c
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 492 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.formatOnSave": true,
"editor.renderIndentGuides": true,
"editor.tabSize": 2,
"files.autoSave": "onFocusChange",
"files.autoSave": "afterDelay",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"liveServer.settings.port": 5504,
"editor.guides.indentation": true
Expand Down
75 changes: 75 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap");

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

body {
font-family: "Lato", sans-serif;
color: #333;
line-height: 1.6;
}

ul {
list-style-type: none;
}

a {
text-decoration: none;
color: #333;
}

h1,
h2 {
font-weight: 300;
line-height: 1.2;
margin: 10px 0;
}

p {
margin: 10px 0;
}

img {
width: 100%;
}

.navbar {
background-color: #047aed;
color: #fff;
height: 70px;
}

.navbar ul {
display: flex;
}

.navbar a {
color: #fff;
padding: 10px;
margin: 0 5px;
}

.navbar a:hover {
border-bottom: 2px #fff solid;
}

.flex {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}

.navbar .flex {
justify-content: space-between;
}

.container {
max-width: 1100px;
margin: 0 auto;
overflow: auto;
padding: 0 40px;
}
3 changes: 0 additions & 3 deletions css/styles.css

This file was deleted.

29 changes: 25 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,30 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./client/assets/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>project!</title>

<link href="./styles/index.css" rel="stylesheet" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link href="css/style.css" rel="stylesheet" />
<title>Loruki | Cloud Hosting For Everyone</title>
</head>
<body></body>
<body>
<!-- Navbar -->
<div class="navbar">
<div class="container flex">
<h1 class="logo">Loruki.</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html">Features</a></li>
<li><a href="index.html">Docs</a></li>
</ul>
</nav>
</div>
</div>
</body>
</html>
<div></div>
Loading

0 comments on commit 517c76c

Please sign in to comment.