Skip to content

Commit 02e3369

Browse files
Add footer, improve menu layout
1 parent fe2b2d0 commit 02e3369

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/index.css

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,22 @@ footer {
3838
bottom: 0;
3939
left: 0;
4040
right: 0;
41-
padding: 0;
4241
}
4342

44-
footer span {
45-
position: relative;
46-
top: -0.75em;
43+
footer .footerleft {
44+
float: left;
45+
margin: 0 0 0.75em 1em;
4746
}
4847

4948
footer a {
5049
color: #CAE2E9;
5150
}
5251

52+
footer .footerright {
53+
margin: 0.5em 1em 0 0;
54+
float: right;
55+
}
56+
5357
h1 {
5458
font-family: GothamRndMedium;
5559
font-size: 42px;
@@ -116,21 +120,23 @@ input:focus{
116120
header {
117121
background-color: #18222E;
118122
color: #fff;
123+
height: 1.75em;
119124
text-align: left;
120125
padding: 1em;
121126
}
122127

123128
header .logo {
124-
width: 15%;
129+
float: left;
130+
width: 13em;
125131
}
126132

127133
.menu {
128-
float: right;
129-
width: 40%;
134+
text-align: right;
130135
}
131136

132137
.menuitem {
133-
float: right;
138+
display: inline-block;
139+
font-size: 18px;
134140
padding-left: 4%;
135141
}
136142

@@ -307,7 +313,7 @@ img.headericon {
307313
position: absolute;
308314
right: 0;
309315
bottom: 0;
310-
max-height: 100%;
316+
max-height: 75%;
311317
max-width: 35%;
312318
}
313319

src/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<div class="menuitem"><a href="#" class="menubutton" onclick="menuChange(event,1)">Features</a></div>
2929
<div class="menuitem"><a href="#" class="menubutton" onclick="menuChange(event,5)">About</a></div>
3030
<div class="menuitem"><a href="#" class="menubutton" onclick="menuChange(event,4)">Contact&nbsp;and&nbsp;Donate</a></div>
31-
<!-- <div class="menuitem">© 2024 Built with<a href="https://pears.com/" target="_blank"><img class="pearslogo" src="../images/pears-logo.svg"></a> <a href="https://github.com/PeerViewer/" target="_blank"><img class="githublogo" src="../images/github-mark-white.svg"></a></div> -->
3231
</div>
3332
</header>
3433
<div class="main-content" id="content6">
@@ -140,6 +139,10 @@ <h3>Building blocks</h3>
140139
<button class="bigbutton" onClick="menuChange(event,4)">Any suggestions? Let us know!</button>
141140
</div>
142141
</div>
142+
<footer>
143+
<span class="footerleft"><a href="https://peerviewer.org" target="_blank">PeerViewer</a> © 2024 Built with<a href="https://pears.com/" target="_blank"><img class="pearslogo" src="../images/pears-logo.svg"></a></span>
144+
<span class="footerright"><a href="https://github.com/PeerViewer/" target="_blank"><img class="githublogo" src="../images/github-mark-white.svg"></a></span>
145+
</footer>
143146
</div>
144147
<script>
145148
function adaptForWeb() {

0 commit comments

Comments
 (0)