feat: add link to reasons

This commit is contained in:
MAZE 2023-11-01 15:34:39 +03:30
parent 77fed0308a
commit e2b6eaf8f3
2 changed files with 17 additions and 0 deletions

View file

@ -51,5 +51,13 @@
color: var(--color-foreground-subtle); color: var(--color-foreground-subtle);
line-height: 1.6; line-height: 1.6;
} }
& .link {
display: block;
margin-top: 8px;
color: var(--color-foreground);
font-size: var(--font-sm);
text-decoration: none;
}
} }
} }

View file

@ -24,6 +24,10 @@ export function Why() {
icon: <BiLogoGithub />, icon: <BiLogoGithub />,
id: 'open-source', id: 'open-source',
label: 'Open Source', label: 'Open Source',
link: {
label: 'Source Code',
url: 'https://github.com/remvze/moodist',
},
}, },
]; ];
@ -43,6 +47,11 @@ export function Why() {
<p className={styles.body}> <p className={styles.body}>
<Balancer>{reason.body}</Balancer> <Balancer>{reason.body}</Balancer>
</p> </p>
{reason.link && (
<a className={styles.link} href={reason.link.url}>
{reason.link.label}
</a>
)}
</div> </div>
))} ))}
</div> </div>