This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Tap30/docs/add-homepage
docs(vitepress): add homepage
- Loading branch information
Showing
15 changed files
with
166 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,102 @@ | ||
[ | ||
{ | ||
"items": ["interface", "essential"], | ||
"name": "interface" | ||
"name": "interface", | ||
"description": "A list of interface icons." | ||
}, | ||
{ | ||
"items": ["arrow", "diagrams"], | ||
"name": "arrow" | ||
"name": "arrow", | ||
"description": "A list of arrow icons." | ||
}, | ||
{ | ||
"items": ["brand"], | ||
"name": "brand" | ||
"name": "brand", | ||
"description": "A list of brand icons." | ||
}, | ||
{ | ||
"items": ["building", "construction"], | ||
"name": "building" | ||
"name": "building", | ||
"description": "A list of building icons." | ||
}, | ||
{ | ||
"items": ["car", "service", "parts", "vehicle"], | ||
"name": "car" | ||
"name": "car", | ||
"description": "A list of car icons." | ||
}, | ||
{ | ||
"items": ["cursor", "select", "hand"], | ||
"name": "cursor" | ||
"name": "cursor", | ||
"description": "A list of cursor icons." | ||
}, | ||
{ | ||
"items": ["disabled", "disability", "accessibility"], | ||
"name": "accessibility" | ||
"name": "accessibility", | ||
"description": "A list of accessibility icons." | ||
}, | ||
{ | ||
"items": ["mobile", "device", "telephone", "emails", "messages", "chat"], | ||
"name": "device" | ||
"name": "device", | ||
"description": "A list of device icons." | ||
}, | ||
{ | ||
"items": ["money", "payments", "finance"], | ||
"name": "finance" | ||
"name": "finance", | ||
"description": "A list of finance icons." | ||
}, | ||
{ | ||
"items": ["navigation", "maps"], | ||
"name": "navigation" | ||
"name": "navigation", | ||
"description": "A list of navigation icons." | ||
}, | ||
{ | ||
"items": ["photo", "video", "camera", "media"], | ||
"name": "media" | ||
"name": "media", | ||
"description": "A list of media icons." | ||
}, | ||
{ | ||
"items": ["signs"], | ||
"name": "signs" | ||
"name": "signs", | ||
"description": "A list of signs icons." | ||
}, | ||
{ | ||
"items": ["social", "medias", "rewards"], | ||
"name": "social" | ||
"name": "social", | ||
"description": "A list of social icons." | ||
}, | ||
{ | ||
"items": ["time", "history", "calendar"], | ||
"name": "time" | ||
"name": "time", | ||
"description": "A list of time icons." | ||
}, | ||
{ | ||
"items": ["transportation", "transport"], | ||
"name": "transport" | ||
"name": "transport", | ||
"description": "A list of transport icons." | ||
}, | ||
{ | ||
"items": ["users", "person"], | ||
"name": "person" | ||
"name": "person", | ||
"description": "A list of person icons." | ||
}, | ||
{ | ||
"items": ["number", "digit"], | ||
"name": "number" | ||
"name": "number", | ||
"description": "A list of number icons." | ||
}, | ||
{ | ||
"items": ["fill", "filled"], | ||
"name": "fill" | ||
"name": "fill", | ||
"description": "A list of fill icons." | ||
}, | ||
{ | ||
"items": ["outlined"], | ||
"name": "outlined" | ||
"name": "outlined", | ||
"description": "A list of outlined icons." | ||
}, | ||
{ | ||
"items": ["/", "slash"], | ||
"name": "slash" | ||
"name": "slash", | ||
"description": "A list of slash icons." | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
:root { | ||
--vp-c-brand-1: #ff7733; | ||
--vp-button-brand-bg: #e64917; | ||
--vp-c-brand-2: #e64917; | ||
--vp-badge-tip-text: #e64917; | ||
--vp-badge-tip-bg: #e6491722; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
prev: false | ||
next: false | ||
aside: false | ||
--- | ||
|
||
<script setup> | ||
import Icons from './components/Icons.vue'; | ||
</script> | ||
|
||
<Icons /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
--- | ||
outline: 'deep' | ||
aside: false | ||
--- | ||
|
||
<script setup> | ||
import Icons from '../components/Icons.vue'; | ||
import { useData } from 'vitepress'; | ||
|
||
const { page } = useData(); | ||
|
||
function capitalizeFirstLetter(string) { | ||
return string.charAt(0).toUpperCase() + string.slice(1); | ||
} | ||
|
||
</script> | ||
|
||
# {{capitalizeFirstLetter(page?.params?.category)}} Icons | ||
|
||
<Icons /> | ||
|
||
<!-- @content --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import fs from 'fs'; | ||
|
||
const packages = JSON.parse( | ||
const categories = JSON.parse( | ||
fs.readFileSync('docs/.vitepress/data/categories.json').toString(), | ||
) as { | ||
name: string; | ||
title: string; | ||
description: string; | ||
items: string[]; | ||
}[]; | ||
|
||
export default { | ||
paths() { | ||
return packages.map((pck) => ({ | ||
params: { category: pck.name, items: pck.items }, | ||
return [...categories].map((cat) => ({ | ||
params: { | ||
category: cat.name, | ||
items: cat.items, | ||
description: cat.description, | ||
}, | ||
})); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,41 @@ | ||
<script setup> | ||
import Icons from './components/Icons.vue'; | ||
</script> | ||
--- | ||
|
||
<Icons /> | ||
layout: home | ||
|
||
|
||
hero: | ||
|
||
name: Tapsi Design System | ||
|
||
text: Icon Set | ||
|
||
tagline: Usable for all front-end frameworks | ||
|
||
|
||
actions: | ||
- theme: brand | ||
text: Explore Icons | ||
link: /all | ||
- theme: alt | ||
text: Installation | ||
link: /package | ||
- theme: alt | ||
text: GitHub | ||
link: https://github.com/Tap30/icons | ||
|
||
features: | ||
- icon: ✨ | ||
title: Scalable | ||
details: No need to define components for different frameworks for adding an icon! You only need to add your new icon and everything will be handled in the background! | ||
- icon: 🗃️ | ||
title: Categorized Icons | ||
details: You can easily find your icons based on different categories and variants. | ||
- icon: 🎚️ | ||
title: Rich Playground | ||
details: You can customize your icon and then copy the code and use it on your projects | ||
- icon: 🧩 | ||
title: Usable Everywhere | ||
details: Based on the framework you are using, you can import a package in your project and use our icons. | ||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Packages | ||
|
||
Here is the current packages available for Tapsi icons: | ||
|
||
- [Lit](/package/lit) | ||
- [React](/package/react) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.