Skip to content

Commit eaa21ae

Browse files
committed
rework layout
1 parent 4e5c313 commit eaa21ae

File tree

2 files changed

+42
-37
lines changed

2 files changed

+42
-37
lines changed

css/index.css

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ body {
2121
-moz-border-radius: 100px;
2222
-webkit-border-radius: 100px;
2323
display: block;
24-
margin: 0;
24+
margin-left: auto;
25+
margin-right: auto;
2526
}
2627

2728
.image-sphere .sphere {
2829
border: 1px solid #b9b9b9;
2930
width: 128px;
31+
margin-top: 64px;
32+
margin-bottom: 64px;
3033
}
3134

3235
h1,
@@ -35,26 +38,34 @@ h3 {
3538
line-height: 1.2;
3639
}
3740

38-
ul {
39-
list-style: none;
40-
line-height: 1.8;
41+
h1 {
42+
overflow: hidden;
43+
text-align: center;
44+
}
45+
46+
h1:before,
47+
h1:after {
48+
background-color: #b9b9b9;
49+
content: "";
50+
display: inline-block;
51+
height: 1px;
4152
position: relative;
42-
margin-left: 0;
43-
padding-left: 1.2em;
53+
vertical-align: middle;
54+
width: 50%;
55+
}
56+
57+
h1:before {
58+
right: 0.5em;
59+
margin-left: -50%;
4460
}
4561

46-
ul li:before {
47-
content: "▸";
48-
line-height: 1.8;
49-
position: absolute;
50-
left: 0;
62+
h1:after {
63+
left: 0.5em;
64+
margin-right: -50%;
5165
}
5266

53-
ul li:hover:before {
54-
content: "▹";
55-
line-height: 1.8;
56-
position: absolute;
57-
left: 0;
67+
.divtools {
68+
line-height: 2.2;
5869
}
5970

6071
a:active,

index.html

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<meta name="viewport" content="width=device-width, initial-scale=1" />
1313
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
1414
<link rel="stylesheet" type="text/css" href="css/index.css" />
15+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
1516
</head>
1617
<body>
1718
<div class="image-sphere">
1819
<div class="sphere">
19-
<img src="img/valr-128x128.png">
20+
<img src="img/valr-128x128.png" />
2021
</div>
2122
</div>
2223

2324
<h1>Death, be not proud</h1>
2425
<aside>by John Donne</aside>
25-
2626
<p>
2727
Death, be not proud, though some have called thee<br />
2828
Mighty and dreadful, for thou art not so;<br />
@@ -40,25 +40,19 @@ <h1>Death, be not proud</h1>
4040
And death shall be no more; Death, thou shalt die.<br />
4141
</p>
4242

43-
<h1>Source</h1>
44-
<ul>
45-
<li><a href="https://github.com/valr">GitHub</a></li>
46-
</ul>
47-
48-
<h1>Tools</h1>
49-
<ul>
50-
<li><a href="current-time.html">Current Time</a></li>
51-
<li><a href="diff-text.html">Diff Text</a></li>
52-
<li><a href="format-xml.html">Format XML</a></li>
53-
<li><a href="ip">IP:Port</a></li>
54-
<li>
55-
<form onsubmit="render_url()">
56-
Rendertron URL: <input type="text" id="url" /><br />
57-
<input type="submit" value="Submit" />
58-
<input type="reset" value="Clear" />
59-
</form>
60-
</li>
61-
</ul>
43+
<h1>Source & Tools</h1>
44+
<div class="divtools">
45+
<i class="fab fa-github fa-fw"></i>&nbsp&nbsp<a href="https://github.com/valr">GitHub</a><br />
46+
<i class="fas fa-clock fa-fw"></i>&nbsp&nbsp<a href="current-time.html">Current Time</a><br />
47+
<i class="fas fa-network-wired fa-fw"></i>&nbsp&nbsp<a href="ip">IP:Port</a><br />
48+
<i class="fas fa-not-equal fa-fw"></i>&nbsp&nbsp<a href="diff-text.html">Diff Text</a><br />
49+
<i class="fas fa-align-left fa-fw"></i>&nbsp&nbsp<a href="format-xml.html">Format XML</a><br />
50+
<form onsubmit="render_url()">
51+
<i class="fas fa-camera fa-fw"></i>&nbsp&nbspRendertron URL: <input type="text" id="url" />
52+
<input type="submit" value="Submit" />
53+
<input type="reset" value="Clear" /><br />
54+
</form>
55+
</div>
6256

6357
<script>
6458
function render_url() {

0 commit comments

Comments
 (0)