Răsfoiți Sursa

highlight keywords that need to be replaced

jomo 10 ani în urmă
părinte
comite
48d33eae25
3 a modificat fișierele cu 26 adăugiri și 7 ștergeri
  1. 2 1
      README.md
  2. 7 0
      public/stylesheets/style.css
  3. 17 6
      views/index.jade

+ 2 - 1
README.md

@@ -10,4 +10,5 @@ See the [API Usage]('http://skins.jake0oo0.me')
 
 * Clone the repository
 * npm install
-* npm start
+* npm start
+* http://localhost:3000

+ 7 - 0
public/stylesheets/style.css

@@ -5,4 +5,11 @@ body {
 
 a {
   color: #00B7FF;
+}
+
+mark.green {
+  background: inherit;
+  color: #008000;
+  font-weight: bold;
+  padding: 0;
 }

+ 17 - 6
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")