Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(website): add star icon to hero GitHub count for clarity
Elian Doran93e168fb467b
diff --git a/apps/website/src/assets/boxicons/bxs-star.svg b/apps/website/src/assets/boxicons/bxs-star.svgnew file mode 100644index 0000000000..8c792c6b5f--- /dev/null+++ b/apps/website/src/assets/boxicons/bxs-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.947 9.179a1.001 1.001 0 0 0-.868-.676l-5.701-.453-2.467-5.461a.998.998 0 0 0-1.822-.001L8.622 8.05l-5.701.453a1 1 0 0 0-.619 1.713l4.213 4.107-1.49 6.452a1 1 0 0 0 1.53 1.057L12 18.202l5.445 3.63a1.001 1.001 0 0 0 1.517-1.106l-1.829-6.4 4.536-4.082c.297-.268.406-.686.278-1.065z"/></svg>\ No newline at end of filediff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.cssindex 4ee0e87afe..8588ca3667 100644--- a/apps/website/src/pages/Home/index.css+++ b/apps/website/src/pages/Home/index.css@@ -146,10 +146,17 @@ section.hero-section {}.github-stars {+ display: inline-flex;+ align-items: center;+ gap: 0.25em;margin-inline-start: 0.5em;padding-inline-start: 0.5em;border-inline-start: 1px solid currentColor;opacity: 0.75;++ .bx {+ font-size: 0.9em;+ }}}}diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsxindex 0c74912dbf..928759a394 100644--- a/apps/website/src/pages/Home/index.tsx+++ b/apps/website/src/pages/Home/index.tsx@@ -6,6 +6,7 @@ import { Trans, useTranslation } from 'react-i18next';import botIcon from "../../assets/boxicons/bx-bot.svg?raw";import calendarIcon from "../../assets/boxicons/bx-calendar.svg?raw";+import arrowIcon from "../../assets/boxicons/bx-chevron-right.svg?raw";import hoistingIcon from "../../assets/boxicons/bx-chevrons-up.svg?raw";import codeIcon from "../../assets/boxicons/bx-code.svg?raw";import scriptApiIcon from "../../assets/boxicons/bx-code-alt.svg?raw";@@ -41,6 +42,7 @@ import attributesIcon from "../../assets/boxicons/bx-tag.svg?raw";import mermaidIcon from "../../assets/boxicons/bx-vector-square.svg?raw";import renderIcon from "../../assets/boxicons/bx-window-alt.svg?raw";import markdownIcon from "../../assets/boxicons/bxs-markdown.svg?raw";+import starIcon from "../../assets/boxicons/bxs-star.svg?raw";import anytypeIcon from "../../assets/import/anytype.svg?raw";import evernoteIcon from "../../assets/import/evernote.svg?raw";import keepIcon from "../../assets/import/keep.svg?raw";@@ -107,7 +109,7 @@ function HeroSection() {<DownloadButton big /><Button href="./get-started/" className="mobile-only" text={t("hero_section.get_started")} /><div className="additional-options">- <Button iconSvg={gitHubIcon} outline text={<>{t("hero_section.github")}<span className="github-stars">{`${(stargazersCount / 1000).toFixed(1)}K+`}</span></>} href="https://github.com/TriliumNext/Trilium/" openExternally />+ <Button iconSvg={gitHubIcon} outline text={<>{t("hero_section.github")}<span className="github-stars"><Icon svg={starIcon} />{`${(stargazersCount / 1000).toFixed(1)}K+`}</span></>} href="https://github.com/TriliumNext/Trilium/" openExternally /><Button iconSvg={dockerIcon} outline text={t("hero_section.dockerhub")} href="https://hub.docker.com/r/triliumnext/trilium" openExternally /></div></div>@@ -419,9 +421,13 @@ function TabbedShowcase({ items }: { items: ShowcaseItem[] }) {<img src={active.imageUrl} alt={active.title} loading="lazy" /></div><div className="showcase-details">- <h3>{active.title}</h3>+ <h3>+ <Link href={active.moreInfo} className="card-heading-link" openExternally>+ <span>{active.title}</span>+ <Icon svg={arrowIcon} className="card-arrow" />+ </Link>+ </h3><p>{active.description}</p>- <Link href={active.moreInfo} className="more-info" openExternally>{t("components.link_learn_more")}</Link></div></div></div>