styles + missing favicon file ;_;

This commit is contained in:
jomo
2014-11-10 22:47:30 +01:00
parent 7954f4ba23
commit 66914efb19
4 changed files with 43 additions and 17 deletions

View File

@@ -8,15 +8,15 @@ block content
hr
p Welcome to Crafatar, an API for Minecraft's faces!
h2 API
hr
h2 Documentation
h3 Endpoint
p
| Replace
mark.green uuid
| with a Mojang UUID to get the related head. All images are PNGs.
.well.code
.code
| <img src="#{domain}/avatars/
mark.green uuid
| ">
@@ -25,11 +25,11 @@ block content
h4 size
p The size of the image in pixels, 1 - 512. <br> Default is 160.
h4 default
p The image to be returned when the uuid has no skin. <br> Valid options are
p The image to be returned when the uuid has no skin (404). <br> Valid options are
a(href="/avatars/00000000000000000000000000000000?default=steve") steve
| or
a(href="/avatars/00000000000000000000000000000000?default=alex") alex
| .<br> The default is calculated based on the UUID (even = alex, odd = steve)
| .<br> The standard value is calculated based on the UUID (even = alex, odd = steve)
h4 helm
p Get an avatar with the second (helmet) layer applied. <br> The content of this parameter is ignored
@@ -42,18 +42,12 @@ block content
h3 Examples
p Get jeb_'s avatar, 160 × 160 pixels
img(src="/avatars/853c80ef3c3749fdaa49938b674adae6", alt="jeb_'s avatar")
.well.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6"&gt;
.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6"&gt;
p Get jeb_'s avatar, 64 × 64 pixels
img(src="/avatars/853c80ef3c3749fdaa49938b674adae6?size=64", alt="jeb_'s avatar")
.well.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64"&gt;
.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64"&gt;
p Get jeb_'s helmet avatar, 64 × 64 pixels
img(src="/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm", alt="jeb_'s avatar")
.well.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&amp;helm"&gt;
p Get jeb_'s avatar, 64 × 64 pixels, or fall back to steve if his avatar is not found
img(src="/avatars/00000000000000000000000000000000?default=steve&size=64", alt="jeb_'s avatar")
.well.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?default=steve&amp;size=64"&gt;
.col-md-2
.code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&amp;helm"&gt;
.col-md-2.center
.sideface.redstone_sheep(title="redstone_sheep")
.sideface.Jake0oo0(title="Jake0oo0")
.sideface.Notch(title="Notch")

View File

@@ -2,9 +2,9 @@ doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
link(rel="icon", sizes="16x16", type="image/png", href="/favicon.png")
link(href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.0/css/bootstrap.min.css", rel="stylesheet")
link(rel='stylesheet', href='/stylesheets/style.css')
meta(name="description", content="A Minecraft avatar service with UUID support")
meta(name="keywords", content="minecraft, avatar, uuid")
meta(name="viewport", content="initial-scale=1,maximum-scale=1")