Skip to content

Commit 5081917

Browse files
Add tags
1 parent d884126 commit 5081917

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

web/projects/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const cards = require("./cards.json");
22

33
const html = [];
4-
for (const { name, description, link, image } of cards) {
4+
for (const { name, description, tags, link, image } of cards) {
55
html.push(/* html */`
66
<div class="card card-background card-rounded">
7-
<h1 class="card-title">${name}</h1>
7+
<h1 class="card-title">${name} ${tags.map(tag => `<span class="badge badge-primary">${tag}</span>`).join("")}</h1>
88
<p class="card-description">${description}</p>
99
<br>
1010
<a class="button card-button button-primary" href="${link}">View</a>

web/projects/cards.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,70 @@
22
{
33
"name": "API",
44
"description": "A web api to get data from services and manipulate images.",
5+
"tags": [],
56
"image": "./img/projects/api.png",
67
"link": "https://api.serversmp.xyz/pages/api"
78
},
89
{
910
"name": "Lamar",
1011
"description": "A bot for all your needs! May it be moderation, info on things from your server, or even random pictures of ducks. We have it all!",
12+
"tags": ["Rewrite in Progress"],
1113
"image": "./img/projects/lamar.png",
1214
"link": "https://serversmp-github.github.io/Lamar/"
1315
},
1416
{
1517
"name": "Auth2",
1618
"description": "A system I made to handle accounts for other projects, like the uploader and codebin+.",
19+
"tags": [],
1720
"image": "./img/projects/auth2.png",
1821
"link": "https://api.serversmp.xyz/auth2"
1922
},
2023
{
2124
"name": "Uploader",
2225
"description": "A file uploader with support for all file types. Built in markdown rendering, url shortener, audio to mp4, embeds and more.",
26+
"tags": ["Invite Only"],
2327
"image": "./img/projects/uploader.png",
2428
"link": "https://api.serversmp.xyz/upload"
2529
},
2630
{
2731
"name": "Sites",
2832
"description": "A simple way to host a static site.",
33+
"tags": ["Invite Only"],
2934
"image": "./img/projects/sites.png",
3035
"link": "https://api.serversmp.xyz/sites"
3136
},
3237
{
3338
"name": "Post",
3439
"description": "A tumblr like social media but with more code support.",
40+
"tags": ["Invite Only"],
3541
"image": "./img/projects/post.png",
3642
"link": "https://api.serversmp.xyz/post"
3743
},
3844
{
3945
"name": "Codebin+",
4046
"description": "Codebin+ is a site where you can upload text with support for markdown rendering and language syntax highlighting.",
47+
"tags": [],
4148
"image": "./img/projects/codebin+.png",
4249
"link": "https://api.serversmp.xyz/codebinplus"
4350
},
4451
{
4552
"name": "Shorten+",
4653
"description": "Shorten+ is a site where you can shorten long urls.",
54+
"tags": [],
4755
"image": "./img/projects/shorten+.png",
4856
"link": "https://api.serversmp.xyz/shortenplus"
4957
},
5058
{
5159
"name": "API - Shortener",
5260
"description": "The shorten url for the API.",
61+
"tags": [],
5362
"image": "./img/projects/shorten-link.png",
5463
"link": "https://ssmp.link"
5564
},
5665
{
5766
"name": "Slimefun Textures",
5867
"description": "A combination texture pack for the mc plugin \"slimefun\"",
68+
"tags": [],
5969
"image": "./img/projects/slimefun.png",
6070
"link": "https://github.com/ServerSMP-Github/Slimefun-Textures"
6171
}

0 commit comments

Comments
 (0)