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 @@
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
| 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. |
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
| 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. |
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.
-
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.
+ 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.
+