diff --git a/lib/public/stylesheets/style.css b/lib/public/stylesheets/style.css index 5ac5b2e..2874ba0 100644 --- a/lib/public/stylesheets/style.css +++ b/lib/public/stylesheets/style.css @@ -13,11 +13,6 @@ a { color: #00B7FF; } -a.anchor { - position: relative; - top: -50px; -} - a.forkme { top: 0; right: 0; @@ -47,22 +42,8 @@ a.sponsor { margin: 5px; } -.container > .navbar-header { - display: inline-block; - margin: inherit; -} - -a.navbar-brand.twitter { - color: #55acee; -} - -a.navbar-brand.twitter:before { - content: ""; - background: url("/images/twitter.png"); - display: inline-block; - height: 16px; - width: 16px; - vertical-align: middle; +.alert { + font-size: 1rem; } mark.green { @@ -81,7 +62,7 @@ thead { margin-left: auto; } -h1, h2, h3, h4, h5, h6 { +h1, h2, h3, h4, h6 { font-weight: 200; } diff --git a/lib/views/index.html.ejs b/lib/views/index.html.ejs index 9273d06..6f0c334 100644 --- a/lib/views/index.html.ejs +++ b/lib/views/index.html.ejs @@ -53,13 +53,18 @@
+ +

Documentation

-

Avatars

Replace - userid with a Mojang UUID or username to get the related head. All images are PNGs. -
<%= domain %>/avatars/ - userid +

Avatars

+
<%= domain %>/avatars/uuid

Avatar Parameters

@@ -84,8 +89,8 @@ string The standard value is calculated based on the UUID (even = MHF_Alex, odd = MHF_Steve).
Usernames always default to MHF_Steve. - The image to be served when the userid has no skin.
- Valid options are any userid, including MHF_Steve and MHF_Alex, or a custom URL. + The image to be served when the player has no skin.
+ Valid options are any name or uuid, including MHF_Steve and MHF_Alex, or a custom URL. helm @@ -132,8 +137,7 @@

3D Renders

Crafatar also provides support for 3D renders of Minecraft skins.
Please note that this feature is currently beta!
- Replace - userid with a Mojang UUID or username to get a render of the skin. The head render type returns a render of the skin's head.<%= domain %>/renders/head/useridThe body render returns a render of the entire skin.<%= domain %>/renders/body/userid

+ The head render type returns a render of the skin's head.<%= domain %>/renders/head/uuidThe body render returns a render of the entire skin.<%= domain %>/renders/body/uuid

Render Parameters

@@ -163,8 +167,8 @@ - +
string The standard value is calculated based on the UUID (even = MHF_Alex, odd = MHF_Steve).
Usernames always default to MHF_Steve.
The image to be served when the userid has no skin.
- Valid options are any userid, including MHF_Steve and MHF_Alex, or a custom URL.
The image to be served when the uuid has no skin.
+ Valid options are any uuid, including MHF_Steve and MHF_Alex, or a custom URL.
@@ -188,10 +192,8 @@

Skins

You can also get the full skin file of a player.
- Replace - userid with a Mojang UUID or username to get the related skin.
The user's skin is returned, or the default image is served.
- You can use the default parameter here as well.<%= domain %>/skins/userid

+ You can use the default parameter here as well.<%= domain %>/skins/uuid

Skin Parameters

@@ -209,8 +211,8 @@ - +
string The standard value is calculated based on the UUID (even = MHF_Alex, odd = MHF_Steve).
Usernames always default to MHF_Steve.
The image to be served when the userid has no skin.
- Valid options are any userid, including MHF_Steve and MHF_Alex, or a custom URL.
The image to be served when the uuid has no skin.
+ Valid options are any uuid, including MHF_Steve and MHF_Alex, or a custom URL.
@@ -234,11 +236,8 @@

Capes

A cape endpoint is also available to get the active cape of a user.
- Replace - userid with a Mojang UUID or username to get the related cape.
The user's cape is returned, otherwise a 404 is returned.
-

<%= domain %>/capes/ - userid +
<%= domain %>/capes/uuid

@@ -282,7 +281,7 @@
  • downloaded: 2 external requests. First request or skin changed, skin downloaded.
  • server error: This can happen, for example, when Mojang's servers are down.
    If possible, a cached image is served instead.
  • -
  • user error: You have done something wrong, such as requesting a malformed userid.
    +
  • user error: You have done something wrong, such as requesting a malformed uuid.
    Check the response body for details.
  • @@ -292,12 +291,16 @@ If you think something is wrong with your request, please contact us and provide this ID.

    -
    -

    About Usernames

    -

    We strongly advise you to use UUIDs instead of usernames in production.
    - Usernames are deprecated by Mojang and you should only use usernames for testing.
    - You don't have to change anything when using UUIDs and someone changes their Username.
    - Malformed usernames are rejected.

    +
    +

    About Usernames

    +

    + We strongly advise you to use UUIDs instead of usernames! UUIDs never change while usernames do.
    + Looking up players by username has officially been deprecated by Mojang ever since UUIDs were introduced.
    + Crafatar uses a legacy API to retrieve skins for usernames that updates very slowly.
    + Skins come without any details, including whether a player uses the Alex or Steve skin model.
    + Additionally, Mojang has stated that this legacy interface may be disabled anytime, causing all requests to fail.
    + Malformed usernames are rejected. +

    About UUIDs