Merge pull request 'design navbar for client' (#2) from SpookyDervish/chookchat:master into master
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2
build.sh
2
build.sh
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p server/src/generated
|
||||
|
||||
bin2cpp --file=client/header_top.html --output=server/src/generated
|
||||
bin2cpp --file=client/header_bottom.html --output=server/src/generated
|
||||
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<div id="brand">
|
||||
<h2><a href="/">chookchat</a></h2>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a href="/login">login</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="postbox">
|
||||
<form action="/make_post" method="post">
|
||||
<div>
|
||||
|
||||
@@ -6,6 +6,8 @@ body {
|
||||
color: lime;
|
||||
background-color: black;
|
||||
line-height: 1.1;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
@@ -60,6 +62,37 @@ img {
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
nav {
|
||||
background: rgb(25, 25, 25);
|
||||
display: flex;
|
||||
padding: 16px;
|
||||
margin-bottom: 1em;
|
||||
|
||||
#brand h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: lime;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-left: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
input, textarea, button {
|
||||
font-size: 16px;
|
||||
|
||||
Reference in New Issue
Block a user