Skip to content

Commit

Permalink
feat(site/blog): add link of questionnaire
Browse files Browse the repository at this point in the history
  • Loading branch information
qhanw committed Sep 10, 2023
1 parent e22c674 commit 0ac38b5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
30 changes: 23 additions & 7 deletions site/blog/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const ProjWrapper: React.FC<{
{...props}
className={clsx(
props.className,
"border border-slate-50 hover:border-brand group"
"block border border-slate-50 hover:border-brand group"
)}
/>
);
Expand Down Expand Up @@ -157,12 +157,28 @@ const Index = () => {
</button>
</h2>
<p className="mt-1 text-slate-500">{proj.desc}</p>
{proj.href ? (
<a href={proj.href} target="_blank" className="inline-flex items-center mt-2 text-brand font-semibold">
Preview
<Icon icon="heroicons:arrow-right" className="ml-1"/>
</a>
) : null}
<div className="flex items-center relative z-10">
{proj.sub_href ? (
<a
href={proj.sub_href}
target="_blank"
className="inline-flex items-center mt-2 text-brand font-semibold mr-1"
>
<Icon icon="heroicons:globe-alt" className="ml-1" />
</a>
) : null}

{proj.href ? (
<a
href={proj.href}
target="_blank"
className="inline-flex items-center mt-2 text-brand font-semibold"
>
Preview
<Icon icon="heroicons:arrow-right" className="ml-1" />
</a>
) : null}
</div>
</ProjWrapper>
))}
</div>
Expand Down
1 change: 1 addition & 0 deletions site/blog/src/resource/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default [
desc: "四川省应对重大突发公共卫生事件公众认知及行为调查问卷。",
href: "https://health.qhan.wang",
date: "202102",
sub_href: "https://health.qhan.wang/adm",
},
{
key: "1",
Expand Down

1 comment on commit 0ac38b5

@vercel
Copy link

@vercel vercel bot commented on 0ac38b5 Sep 10, 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.