From 48d33eae25d53da63e2f682c70f000455abc7450 Mon Sep 17 00:00:00 2001 From: jomo Date: Sun, 19 Oct 2014 21:31:56 +0200 Subject: [PATCH] highlight keywords that need to be replaced --- README.md | 3 ++- public/stylesheets/style.css | 7 +++++++ views/index.jade | 23 +++++++++++++++++------ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 12adef1..afda8f7 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,5 @@ See the [API Usage]('http://skins.jake0oo0.me') * Clone the repository * npm install -* npm start \ No newline at end of file +* npm start +* http://localhost:3000 \ No newline at end of file diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 30e047d..f671cca 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -5,4 +5,11 @@ body { a { color: #00B7FF; +} + +mark.green { + background: inherit; + color: #008000; + font-weight: bold; + padding: 0; } \ No newline at end of file diff --git a/views/index.jade b/views/index.jade index f2c2610..58bd564 100644 --- a/views/index.jade +++ b/views/index.jade @@ -9,17 +9,28 @@ block content p Welcome to Crafatar, a website for server Minecraft skins and heads! h2 API hr - p Replace [uuid] with a Mojang UUID to get the related head. - .well <img src="https://skins.jake0oo0.me/avatars/[uuid]"> + p + | Replace + mark.green uuid + | with a Mojang UUID to get the related head. + .well + | <img src="https://skins.jake0oo0.me/avatars/ + mark.green uuid + | "> p(style="margin-top: 10px;") Example: UUID: '2d5aa9cdaeb049189930461fc9b91cc5', Username: Jake0oo0 .well <img src="https://skins.jake0oo0.me/avatars/2d5aa9cdaeb049189930461fc9b91cc5"> p(style="margin-top: 10px;") There is also an option to include a size, default is 180x180px. - .well <img src="https://skins.jake0oo0.me/avatars/[uuid]/[size]"> - p(style="margin-top: 10px;") Example: UUID: '2d5aa9cdaeb049189930461fc9b91cc5', Size: 250px, Username: Jake0oo0 - .well <img src="https://skins.jake0oo0.me/avatars/2d5aa9cdaeb049189930461fc9b91cc5/250"> + .well + | <img src="https://skins.jake0oo0.me/avatars/ + mark.green uuid + | / + mark.green size + | "> + p(style="margin-top: 10px;") Example: UUID: 'ae795aa86327408e92ab25c8a59f3ba1', Size: 250px, Username: redstone_sheep + .well <img src="https://skins.jake0oo0.me/avatars/ae795aa86327408e92ab25c8a59f3ba1/250"> .col-md-2 img(src= "/avatars/2d5aa9cdaeb049189930461fc9b91cc5") + img(src= "/avatars/ae795aa86327408e92ab25c8a59f3ba1") img(src= "/avatars/dab0a06256934c28bf0211142b388c33") img(src= "/avatars/3c7db14dac4b4e35b2c63b2237f382be") - img(src= "/avatars/ae795aa86327408e92ab25c8a59f3ba1") img(src= "/avatars/62c41f0e133d4192ad33f0896f47d23a")