Skip to content

Commit 7ef7bd2

Browse files
Fonts and more styling
1 parent b464c35 commit 7ef7bd2

File tree

5 files changed

+59
-28
lines changed

5 files changed

+59
-28
lines changed

src/fonts/GothamRnd-Bold.otf

124 KB
Binary file not shown.

src/fonts/GothamRnd-Light.otf

125 KB
Binary file not shown.

src/fonts/GothamRnd-Medium.otf

130 KB
Binary file not shown.

src/index.css

Lines changed: 50 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1+
@font-face {
2+
font-family: GothamRndLight;
3+
src: url(fonts/GothamRnd-Light.otf);
4+
}
5+
6+
@font-face {
7+
font-family: GothamRndMedium;
8+
src: url(fonts/GothamRnd-Medium.otf);
9+
}
10+
11+
/* Not used for now:
12+
@font-face {
13+
font-family: GothamRndBold;
14+
src: url(fonts/GothamRnd-Bold.otf);
15+
}
16+
*/
17+
118
body {
2-
background: #f2f2f2;
19+
background-color: #CAE2E9;
320
color: #424242;
421
margin: 0;
5-
font-family: Arial, sans-serif;
22+
font-family: GothamRndLight, sans-serif;
623
}
724

825
header {
@@ -41,8 +58,14 @@ header .logo {
4158
width: 25%;
4259
}
4360

44-
header h1 {
45-
display: inline;
61+
h2 {
62+
margin-top: 0;
63+
text-align: center;
64+
font-family: GothamRndMedium;
65+
}
66+
67+
label {
68+
font-weight: bold;
4669
}
4770

4871
.main-content {
@@ -57,10 +80,10 @@ header h1 {
5780
}
5881

5982
.column {
60-
flex: 1;
61-
padding: 1em;
6283
box-sizing: border-box;
63-
border: 1px solid #ddd;
84+
flex: 1;
85+
margin-top: 2em;
86+
padding: 2em;
6487
position: relative;
6588
}
6689

@@ -86,19 +109,24 @@ header h1 {
86109
padding: 1em 2em 1em 2em;
87110
}
88111

112+
#column1 {
113+
border-right: solid;
114+
}
115+
116+
/* why?
89117
#column1, #column2 {
90118
flex: 3;
91119
}
120+
*/
92121

93122
#pubkey {
94123
margin-bottom: 1em;
95-
font-weight: bold;
96124
font-size: 18px;
97125
}
98126

99127
#serverhelptext {
128+
font-size: 14px;
100129
margin-bottom: 1em;
101-
font-style: italic;
102130
}
103131

104132
#serverstatus, #clientstatus {
@@ -111,22 +139,27 @@ header h1 {
111139
left: 1em;
112140
}
113141

114-
.bluebutton {
142+
.connectcontainer {
143+
text-align: center;
144+
}
145+
146+
.bigbutton {
115147
display: inline-block;
116-
padding: 10px 20px;
117-
background-color: #44aaff;
148+
padding: 1.2em;
149+
background-color: #18222E;
118150
color: #fff;
119151
text-align: center;
120152
text-decoration: none;
121153
font-size: 16px;
154+
font-weight: bold;
122155
cursor: pointer;
123156
border: none;
124-
border-radius: 4px;
157+
border-radius: 0.5em;
125158
margin: 1em 0;
126159
}
127160

128-
.bluebutton:hover {
129-
background-color: #0060a0;
161+
.bigbutton:hover {
162+
background-color: #000;
130163
}
131164

132165
.feature {
@@ -159,10 +192,6 @@ header h1 {
159192
height: 2em;
160193
}
161194

162-
#content1 .bluebutton {
163-
font-size: 1.2em;
164-
}
165-
166195
.pearslogo {
167196
position: relative;
168197
width: 3em;
@@ -187,7 +216,7 @@ header h1 {
187216
left: 10em;
188217
}
189218

190-
.bluebutton.downloadbutton {
219+
.bigbutton.downloadbutton {
191220
border-radius: 35px;
192221
font-size: 32px;
193222
font-weight: bold;
@@ -197,7 +226,7 @@ header h1 {
197226
width: 70%;
198227
position: relative;
199228
}
200-
.bluebutton.downloadbutton:hover {
229+
.bigbutton.downloadbutton:hover {
201230
background-color: #0060a0;
202231
box-shadow: 0 0 60px #44aaff;
203232
}

src/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,26 @@
3333
</header>
3434
<div class="main-content" id="content0">
3535
<div class="coverremotecontrol">
36-
<a href="https://github.com/PeerViewer/codebase/releases/" class="bluebutton downloadbutton"><div>Download PeerViewer to get started</div></a>
36+
<a href="https://github.com/PeerViewer/codebase/releases/" class="bigbutton downloadbutton"><div>Download PeerViewer to get started</div></a>
3737
</div>
3838
<div class="column" id="column1">
3939
<h2>Allow Remote Control</h2>
40-
<label for="pubkey">YOUR ID:</label>
40+
<label for="pubkey">Your ID</label>
4141
<input type="text" name="pubkey" id="pubkey" disabled size="43">
4242
<a href="#copy" onclick="javascript:copyYourId();"><img width="26" src="../images/copy-icon.png" class="copyicon"></a>
4343
<div id="serverhelptext">When you give your ID to someone running PeerViewer, they can operate your computer until you close this window.</div>
44-
<!-- <button class="bluebutton" onclick="runServer()">Run Server</button> -->
44+
<!-- <button class="bigbutton" onclick="runServer()">Run Server</button> -->
4545
<div id="serverstatus">Initializing...</div>
4646
</div>
4747
<div class="column" id="column2">
4848
<h2>Control Remote Computer</h2>
4949
<p>
50-
<label for="connectto">Partner ID:</label>
50+
<label for="connectto">Partner ID</label>
5151
<input type="text" id="connectto" name="connectto" size="43" onKeyPress="javascript:checkSubmit(event)"/>
5252
</p>
53-
<button class="bluebutton connectbutton" onclick="runClient()">CONNECT</button>
53+
<div class="connectcontainer">
54+
<button class="bigbutton" onclick="runClient()">Connect</button>
55+
</div>
5456
<div id="clientstatus">Ready to connect.</div>
5557
</div>
5658
</div>
@@ -63,7 +65,7 @@ <h2>Control Remote Computer</h2>
6365
<div id="featuregallery">
6466
<!-- This gets filled up by JavaScript. -->
6567
</div>
66-
<button class="bluebutton" onClick="menuChange(event,3)">Feel free to request a different feature using the contact form</button>
68+
<button class="bigbutton" onClick="menuChange(event,3)">Feel free to request a different feature using the contact form</button>
6769
</div>
6870
</div>
6971
<div class="main-content" id="content2">
@@ -113,7 +115,7 @@ <h3>Building blocks</h3>
113115
<li>Electron, for building standalone applications using open web standards.</li>
114116
<li>Bitcoin and Lightning, for accepting payments without needing anyone's permission or approval.</li>
115117
</ul>
116-
<button class="bluebutton" onClick="menuChange(event,2)">If you like this project, or have suggestions, let us know!</button>
118+
<button class="bigbutton" onClick="menuChange(event,2)">If you like this project, or have suggestions, let us know!</button>
117119
</div>
118120
</div>
119121
<footer><span><a href="https://peerviewer.org" target="_blank">PeerViewer</a> © 2023 Built with<a href="https://pears.com/" target="_blank"><img class="pearslogo" src="../images/pears-logo.svg"></a></span></footer>

0 commit comments

Comments
 (0)