Reformatting using bootstrap

This commit is contained in:
Zachary Elliott 2014-07-09 17:50:41 -04:00
parent 7fbc0ab612
commit 38fa411a0e
2 changed files with 110 additions and 213 deletions

View File

@ -1,59 +0,0 @@
$gray: #757575;
$white: #fff;
body {
width: 750px;
border: 1px solid $gray;
margin: 20px auto;
color: $gray;
}
nav, footer {
background-color: $gray;
color: $white;
height: 20px;
line-height: 20px;
padding: 5px;
}
header {
h1 {
margin: .67em;
}
}
nav {
}
main {
min-height:300px;
table {
margin: 10px;
width: 730px;
tbody {
border: 1px solid $gray;
}
tr {
border-bottom: 1px solid $gray;
th {
text-align: left;
padding: 20px;
font-size: 1.5em;
}
td {
padding: 10px;
width: 30%;
}
td + td {
width: 70%;
}
}
}
}
footer {
text-align: center;
}

View File

@ -3,165 +3,121 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" /> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" />
<style> <style>li.list-group-item{overflow:auto;padding-top:6px;padding-bottom:6px;}</style>
body {
width: 750px;
border: 1px solid #757575;
margin: 20px auto;
color: #757575; }
nav, footer {
background-color: #757575;
color: white;
height: 20px;
line-height: 20px;
padding: 5px; }
header h1 {
margin: .67em; }
main {
min-height: 300px; }
main table {
margin: 10px;
width: 730px; }
main table tbody {
border: 1px solid #757575; }
main table tr {
border-bottom: 1px solid #757575; }
main table tr th {
text-align: left;
padding: 20px;
font-size: 1.5em; }
main table tr td {
padding: 10px;
width: 30%; }
main table tr td + td {
width: 70%; }
footer {
text-align: center; }
</style>
<script type="application/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- script type="application/javascript" src="/js/main.js"></script-->
<title>ifconfig.io</title> <title>ifconfig.io</title>
</head> </head>
<body> <body>
<header> <header class="page-header container">
<h1>What is my ip address? - <small>ifconfig.io</small></h1> <h1>What is my ip address? - <small>ifconfig.io</small></h1>
</header> </header>
<nav></nav> <nav class="container"></nav>
<main> <main class="container">
<table> <div class="panel panel-default">
<thead> <div class="panel-heading">
<tr><th colspan="2">Your Connection</th></tr> <h4>Your Connection</h4>
</thead> </div>
<tfoot></tfoot> <ul class="list-group">
<tbody> <li class="list-group-item">
<tr> <div class="col-sm-3">IP Address</div><div class="col-sm-9">{{ .ip }}</div>
<td>IP Address</td><td>{{ .ip }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Remote Host</div><div class="col-sm-9">{{ .host }}</div>
<td>Remote Host</td><td>{{ .host }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">User Agent</div><div class="col-sm-9">{{ .ua }}</div>
<td>User Agent</td><td>{{ .ua }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Port</div><div class="col-sm-9">{{ .port }}</div>
<td>Port</td><td>{{ .port }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Language</div><div class="col-sm-9">{{ .lang }}</div>
<td>Language</td><td>{{ .lang }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Referer</div><div class="col-sm-9">{{ .referer }}</div>
<td>Referer</td><td>{{ .referer }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Connection</div><div class="col-sm-9">{{ .connection }}</div>
<td>Connection</td><td>{{ .connection }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">KeepAlive</div><div class="col-sm-9">{{ .keep_alive }}</div>
<td>KeepAlive</td><td>{{ .keep_alive }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Method</div><div class="col-sm-9">{{ .method }}</div>
<td>Method</td><td>{{ .method }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Encoding</div><div class="col-sm-9">{{ .encoding }}</div>
<td>Encoding</td><td>{{ .encoding }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">MIME Type</div><div class="col-sm-9">{{ .mime }}</div>
<td>MIME Type</td><td>{{ .mime }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Charset</div><div class="col-sm-9">{{ .charset }}</div>
<td>Charset</td><td>{{ .charset }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">Via</div><div class="col-sm-9">{{ .via }}</div>
<td>Via</td><td>{{ .via }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-3">X-Forwarded-For</div><div class="col-sm-9">{{ .forwarded }}</div>
<td>X-Forwarded-For</td><td>{{ .forwarded }}</td> </li>
</tr> </ul>
</tbody> </div>
</table> <div class="panel panel-default">
<table> <div class="panel-heading">
<thead> <h4>Your Connection</h4>
<tr> </div>
<th colspan="2">Command Line Interface</th> <ul class="list-group">
</tr> <li class="list-group-item">
</thead> <div class="col-sm-4">$ curl ifconfig.io</div><div class="col-sm-8">{{ .ip }}</div>
<tfoot></tfoot> </li>
<tbody> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/ip</div><div class="col-sm-8">{{ .ip }}</div>
<td>$ curl ifconfig.io</td><td>{{ .ip }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/host</div><div class="col-sm-8">{{ .host }}</div>
<td>$ curl ifconfig.io/ip</td><td>{{ .ip }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/ua</div><div class="col-sm-8">{{ .ua }}</div>
<td>$ curl ifconfig.io/host</td><td>{{ .host }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/port</div><div class="col-sm-8">{{ .port }}</div>
<td>$ curl ifconfig.io/ua</td><td>{{ .ua }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/lang</div><div class="col-sm-8">{{ .lang }}</div>
<td>$ curl ifconfig.io/port</td><td>{{ .port }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/keepalive</div><div class="col-sm-8">{{ .keep_alive }}</div>
<td>$ curl ifconfig.io/lang</td><td>{{ .lang }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/connection</div><div class="col-sm-8">{{ .connection }}</div>
<td>$ curl ifconfig.io/keepalive</td><td>{{ .keep_alive }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/encoding</div><div class="col-sm-8">{{ .encoding }}</div>
<td>$ curl ifconfig.io/connection</td><td>{{ .connection }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/mime</div><div class="col-sm-8">{{ .mime }}</div>
<td>$ curl ifconfig.io/encoding</td><td>{{ .encoding }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/charset</div><div class="col-sm-8">{{ .charset }}</div>
<td>$ curl ifconfig.io/mime</td><td>{{ .mime }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/via</div><div class="col-sm-8">{{ .via }}</div>
<td>$ curl ifconfig.io/charset</td><td>{{ .charset }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/forwarded</div><div class="col-sm-8">{{ .forwarded }}</div>
<td>$ curl ifconfig.io/via</td><td>{{ .via }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/all</div><div class="col-sm-8">{{ .hash_as_yaml }}</div>
<td>$ curl ifconfig.io/forwarded</td><td>{{ .forwarded }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/all.xml</div><div class="col-sm-8">{{ .hash_as_xml }}</div>
<td>$ curl ifconfig.io/all</td><td>{{ .hash_as_yaml }}</td> </li>
</tr> <li class="list-group-item">
<tr> <div class="col-sm-4">$ curl ifconfig.io/all.json</div><div class="col-sm-8">{{ .hash_as_json }}</div>
<td>$ curl ifconfig.io/all.xml</td><td>{{ .hash_as_xml }}</td> </li>
</tr> </ul>
<tr> </div>
<td>$ curl ifconfig.io/all.json</td><td>{{ .hash_as_json }}</td>
</tr>
</tbody>
</table>
</main> </main>
<footer>&copy; 2014 ifconfig.io</footer> <footer class="container">&copy; 2014 ifconfig.io</footer>
</body> </body>
</html> </html>