Skip to content

Commit

Permalink
feat(site/blog): adjust style and add external links
Browse files Browse the repository at this point in the history
  • Loading branch information
qhanw committed Sep 18, 2023
1 parent 3835cf6 commit 5b93138
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 6 deletions.
48 changes: 48 additions & 0 deletions site/blog/app/components/Bizk.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import Link from "next/link";

const kits = [
{
name: "Components",
href: "http://bizk.qhan.wang/components",
icon: "i-ri:shapes-line",
},
{
name: "Hooks",
href: "http://bizk.qhan.wang/hooks",
icon: "i-ri:circle-line",
},
{
name: "utils",
href: "http://bizk.qhan.wang/utils",
icon: "i-ri:tools-line",
},
{
name: "Store",
href: "http://bizk.qhan.wang/store",
icon: "i-ri:store-line",
},
{
name: "Regexps",
href: "http://bizk.qhan.wang/regexps",
icon: "i-ri:magic-line",
},
];

export default function Bizk() {
return (
<div className="flex flex-wrap gap-3 mt-24">
{kits.map((c) => (
<Link
key={c.href}
className="opacity-50 hover:opacity-80 font-normal"
href={c.href}
title={c.name}
target="_blank"
>
<span className={`${c.icon} w-4 h-4 text-brand mr-1`} />
{c.name}
</Link>
))}
</div>
);
}
12 changes: 7 additions & 5 deletions site/blog/app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ const nav = [
/>
),
},
// {
// name: "Life",
// href: "/life",
// icon: (props: any) => <Icon {...props} icon="heroicons-outline:photograph" />,
// },
{
name: "Bizk",
href: "http://bizk.qhan.wang/",
icon: (props: any) => (
<span {...props} className={clsx("i-ri:tools-line", props.className)} />
),
},
// { name: "Archives", href: "/archives", icon: ArchiveBoxIcon },
// { name: "Statistics", href: "/statistics", icon: ChartBarSquareIcon },
];
Expand Down
2 changes: 1 addition & 1 deletion site/blog/app/components/Social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const social = [

export default function Social() {
return (
<div className="flex flex-wrap gap-3 mt-24">
<div className="flex flex-wrap gap-3 mt-2">
{social.map((c) => (
<Link
key={c.href}
Expand Down
2 changes: 2 additions & 0 deletions site/blog/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Footer from "@/app/components/Footer";
import Social from "@/app/components/Social";
import Bizk from "@/app/components/Bizk";

// import AdmLink from "./Home/AdmLink";
// import ProjWrapper from "./Home/ProjWrapper";
Expand Down Expand Up @@ -34,6 +35,7 @@ export default function Home() {
</li>
</ul>

<Bizk />
<Social />

<Footer className="mt-6 pt-6" />
Expand Down
1 change: 1 addition & 0 deletions site/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"devDependencies": {
"@iconify-json/heroicons": "^1.1.12",
"@iconify-json/ri": "^1.1.12",
"@types/node": "20.6.0",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
Expand Down
9 changes: 9 additions & 0 deletions site/blog/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 5b93138

@vercel
Copy link

@vercel vercel bot commented on 5b93138 Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

qhan – ./

qhan-git-main-qhanw.vercel.app
qhan-qhanw.vercel.app
qhan.wang

Please sign in to comment.