From 38fa411a0e4e94fc5d61350c276ba1a2e9f9a0a2 Mon Sep 17 00:00:00 2001 From: Zachary Elliott Date: Wed, 9 Jul 2014 17:50:41 -0400 Subject: [PATCH] Reformatting using bootstrap --- assets/sass/screen.scss | 59 --------- templates/index.html | 264 +++++++++++++++++----------------------- 2 files changed, 110 insertions(+), 213 deletions(-) delete mode 100644 assets/sass/screen.scss diff --git a/assets/sass/screen.scss b/assets/sass/screen.scss deleted file mode 100644 index be40252..0000000 --- a/assets/sass/screen.scss +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 5df51b4..0399b0f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,165 +3,121 @@ - - - - + + ifconfig.io -
+ - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Your Connection
IP Address{{ .ip }}
Remote Host{{ .host }}
User Agent{{ .ua }}
Port{{ .port }}
Language{{ .lang }}
Referer{{ .referer }}
Connection{{ .connection }}
KeepAlive{{ .keep_alive }}
Method{{ .method }}
Encoding{{ .encoding }}
MIME Type{{ .mime }}
Charset{{ .charset }}
Via{{ .via }}
X-Forwarded-For{{ .forwarded }}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command Line Interface
$ curl ifconfig.io{{ .ip }}
$ curl ifconfig.io/ip{{ .ip }}
$ curl ifconfig.io/host{{ .host }}
$ curl ifconfig.io/ua{{ .ua }}
$ curl ifconfig.io/port{{ .port }}
$ curl ifconfig.io/lang{{ .lang }}
$ curl ifconfig.io/keepalive{{ .keep_alive }}
$ curl ifconfig.io/connection{{ .connection }}
$ curl ifconfig.io/encoding{{ .encoding }}
$ curl ifconfig.io/mime{{ .mime }}
$ curl ifconfig.io/charset{{ .charset }}
$ curl ifconfig.io/via{{ .via }}
$ curl ifconfig.io/forwarded{{ .forwarded }}
$ curl ifconfig.io/all{{ .hash_as_yaml }}
$ curl ifconfig.io/all.xml{{ .hash_as_xml }}
$ curl ifconfig.io/all.json{{ .hash_as_json }}
+ +
+
+
+

Your Connection

+
+
    +
  • +
    IP Address
    {{ .ip }}
    +
  • +
  • +
    Remote Host
    {{ .host }}
    +
  • +
  • +
    User Agent
    {{ .ua }}
    +
  • +
  • +
    Port
    {{ .port }}
    +
  • +
  • +
    Language
    {{ .lang }}
    +
  • +
  • +
    Referer
    {{ .referer }}
    +
  • +
  • +
    Connection
    {{ .connection }}
    +
  • +
  • +
    KeepAlive
    {{ .keep_alive }}
    +
  • +
  • +
    Method
    {{ .method }}
    +
  • +
  • +
    Encoding
    {{ .encoding }}
    +
  • +
  • +
    MIME Type
    {{ .mime }}
    +
  • +
  • +
    Charset
    {{ .charset }}
    +
  • +
  • +
    Via
    {{ .via }}
    +
  • +
  • +
    X-Forwarded-For
    {{ .forwarded }}
    +
  • +
+
+
+
+

Your Connection

+
+
    +
  • +
    $ curl ifconfig.io
    {{ .ip }}
    +
  • +
  • +
    $ curl ifconfig.io/ip
    {{ .ip }}
    +
  • +
  • +
    $ curl ifconfig.io/host
    {{ .host }}
    +
  • +
  • +
    $ curl ifconfig.io/ua
    {{ .ua }}
    +
  • +
  • +
    $ curl ifconfig.io/port
    {{ .port }}
    +
  • +
  • +
    $ curl ifconfig.io/lang
    {{ .lang }}
    +
  • +
  • +
    $ curl ifconfig.io/keepalive
    {{ .keep_alive }}
    +
  • +
  • +
    $ curl ifconfig.io/connection
    {{ .connection }}
    +
  • +
  • +
    $ curl ifconfig.io/encoding
    {{ .encoding }}
    +
  • +
  • +
    $ curl ifconfig.io/mime
    {{ .mime }}
    +
  • +
  • +
    $ curl ifconfig.io/charset
    {{ .charset }}
    +
  • +
  • +
    $ curl ifconfig.io/via
    {{ .via }}
    +
  • +
  • +
    $ curl ifconfig.io/forwarded
    {{ .forwarded }}
    +
  • +
  • +
    $ curl ifconfig.io/all
    {{ .hash_as_yaml }}
    +
  • +
  • +
    $ curl ifconfig.io/all.xml
    {{ .hash_as_xml }}
    +
  • +
  • +
    $ curl ifconfig.io/all.json
    {{ .hash_as_json }}
    +
  • +
+
-
© 2014 ifconfig.io
+