mirror of
https://github.com/xHyroM/website.git
synced 2024-11-21 22:41:06 +01:00
feat: make button customizable in projects
This commit is contained in:
parent
a00794f668
commit
851836aada
2 changed files with 10 additions and 2 deletions
|
@ -153,6 +153,10 @@ export const PROJECTS = [
|
|||
name: "links",
|
||||
link: "https://github.com/xHyroM/links",
|
||||
desc: "Modern and simple link tree. Built on top of Astro and TailwindCSS. Using Cloudflare Pages.",
|
||||
button: {
|
||||
name: "Goto",
|
||||
link: "https://links.xhyrom.dev",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "lsx",
|
||||
|
@ -203,6 +207,10 @@ export const PROJECTS = [
|
|||
name: string;
|
||||
link: string;
|
||||
desc: string;
|
||||
button?: {
|
||||
name: string;
|
||||
link: string;
|
||||
};
|
||||
stats?: {
|
||||
forks: number;
|
||||
stars: number;
|
||||
|
|
|
@ -97,8 +97,8 @@ PROJECTS.sort((a, b) => a.name.localeCompare(b.name));
|
|||
iconClass="ml-2 mt-[1px] h-[23px] w-5"
|
||||
/>
|
||||
<Button
|
||||
label="Docs"
|
||||
link={project.link}
|
||||
label={project.button?.name ?? "Docs"}
|
||||
link={project.button?.link ?? project.link}
|
||||
type="secondary"
|
||||
icon="/icons/book-open.svg"
|
||||
iconClass="mr-2 h-6 w-5"
|
||||
|
|
Loading…
Reference in a new issue