Skip to content

Commit d2bb004

Browse files
committed
feat: sorted templates, added new temp
1 parent a7070ed commit d2bb004

File tree

2 files changed

+83
-74
lines changed

2 files changed

+83
-74
lines changed

docs/templates/data.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
export default [
2+
{
3+
repo: "react-auth",
4+
title: "React + Auth",
5+
tech: ["React", "@pr4j3sh/auth", "Zustand", "Tailwind", "Frontend"],
6+
url: "https://react-auth-ruby.vercel.app/",
7+
},
8+
{
9+
repo: "next-tw",
10+
title: "NextJs + Tailwind",
11+
tech: ["NextJs", "Javascript", "Tailwind", "Frontend"],
12+
url: "https://next-tw-frames.vercel.app/",
13+
},
14+
{
15+
repo: "js-docs",
16+
title: "Javascript Documentation",
17+
tech: ["Docusaur", "JsDoc", "Documentation", "Javascript"],
18+
},
19+
{
20+
repo: "python",
21+
title: "Python Package/Library",
22+
tech: ["Python", "Library", "Package", "PIP"],
23+
},
24+
{
25+
repo: "cpp",
26+
title: "CPP Package/Library",
27+
tech: ["CPP", "Library", "Package", "Make"],
28+
},
29+
{
30+
repo: "c",
31+
title: "C Package/Library",
32+
tech: ["C", "Library", "Package", "Make"],
33+
},
34+
{
35+
repo: "javascript",
36+
title: "Javascript NPM Package/Library",
37+
tech: ["Javascript", "Library", "Package", "NPM"],
38+
},
39+
{
40+
repo: "rust",
41+
title: "Rust Package/Library",
42+
tech: ["Rust", "Library", "Package", "Crate"],
43+
},
44+
{
45+
repo: "express-vercel",
46+
title: "Express + Vercel",
47+
tech: ["Javascript", "API", "Express", "Vercel", "Backend", "Server"],
48+
url: "https://express-vercel-frames.vercel.app/",
49+
},
50+
{
51+
repo: "express",
52+
title: "Express",
53+
tech: ["Javascript", "API", "Express", "Backend", "Server"],
54+
},
55+
{
56+
repo: "js-tw",
57+
title: "Javascript + Tailwind",
58+
tech: ["Javascript", "Tailwind", "HTML", "CSS", "Frontend", "Vanilla"],
59+
url: "https://pr4j3sh.github.io/js-tw/",
60+
},
61+
{
62+
repo: "react-tw",
63+
title: "React + Tailwind",
64+
tech: ["React", "Tailwind", "React Router", "Frontend"],
65+
url: "https://react-tw-frames.vercel.app/",
66+
},
67+
{
68+
repo: "react-firebase",
69+
title: "React + Firebase",
70+
tech: [
71+
"React",
72+
"Firebase",
73+
"Tailwind",
74+
"React Router",
75+
"Redux Toolkit",
76+
"Frontend",
77+
],
78+
url: "https://react-firebase-frames.vercel.app/",
79+
},
80+
];

docs/templates/template.js

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,9 @@
1-
const items = [
2-
{
3-
repo: "next-tw",
4-
title: "NextJs + Tailwind",
5-
tech: ["NextJs", "Javascript", "Tailwind", "Frontend"],
6-
url: "https://next-tw-frames.vercel.app/",
7-
},
8-
{
9-
repo: "js-docs",
10-
title: "Javascript Documentation",
11-
tech: ["Docusaur", "JsDoc", "Documentation", "Javascript"],
12-
},
13-
{
14-
repo: "python",
15-
title: "Python Package/Library",
16-
tech: ["Python", "Library", "Package", "PIP"],
17-
},
18-
{
19-
repo: "cpp",
20-
title: "CPP Package/Library",
21-
tech: ["CPP", "Library", "Package", "Make"],
22-
},
23-
{
24-
repo: "c",
25-
title: "C Package/Library",
26-
tech: ["C", "Library", "Package", "Make"],
27-
},
28-
{
29-
repo: "javascript",
30-
title: "Javascript NPM Package/Library",
31-
tech: ["Javascript", "Library", "Package", "NPM"],
32-
},
33-
{
34-
repo: "rust",
35-
title: "Rust Package/Library",
36-
tech: ["Rust", "Library", "Package", "Crate"],
37-
},
38-
{
39-
repo: "express-vercel",
40-
title: "Express + Vercel",
41-
tech: ["Javascript", "API", "Express", "Vercel", "Backend", "Server"],
42-
url: "https://express-vercel-frames.vercel.app/",
43-
},
44-
{
45-
repo: "express",
46-
title: "Express",
47-
tech: ["Javascript", "API", "Express", "Backend", "Server"],
48-
},
49-
{
50-
repo: "js-tw",
51-
title: "Javascript + Tailwind",
52-
tech: ["Javascript", "Tailwind", "HTML", "CSS", "Frontend", "Vanilla"],
53-
url: "https://pr4j3sh.github.io/js-tw/",
54-
},
55-
{
56-
repo: "react-tw",
57-
title: "React + Tailwind",
58-
tech: ["React", "Tailwind", "React Router", "Frontend"],
59-
url: "https://react-tw-frames.vercel.app/",
60-
},
61-
{
62-
repo: "react-firebase",
63-
title: "React + Firebase",
64-
tech: [
65-
"React",
66-
"Firebase",
67-
"Tailwind",
68-
"React Router",
69-
"Redux Toolkit",
70-
"Frontend",
71-
],
72-
url: "https://react-firebase-frames.vercel.app/",
73-
},
74-
];
1+
import data from "./data.js";
752

763
const templates = document.getElementById("templates");
774

5+
const items = data.sort((a, b) => a.title.localeCompare(b.title));
6+
787
const html = items
798
.map((item) => {
809
const tags = item.tech

0 commit comments

Comments
 (0)