Added color converter icon to card component
This commit is contained in:
parent
a582bb58aa
commit
d8b81a8674
1 changed files with 4 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import { Show, type JSX } from 'solid-js'
|
|||
import './Card.sass'
|
||||
import { RiSystemLockPasswordLine } from 'solid-icons/ri'
|
||||
import { FiHash } from 'solid-icons/fi'
|
||||
import { TbColorSwatch } from 'solid-icons/tb'
|
||||
|
||||
export default (props: { title: string; description: string }) => {
|
||||
return (
|
||||
|
|
@ -12,6 +13,9 @@ export default (props: { title: string; description: string }) => {
|
|||
<Show when={props.title === 'Hash Generator'}>
|
||||
<FiHash class="card__icon" size={32} opacity={0.5} />
|
||||
</Show>
|
||||
<Show when={props.title === 'Color Converter'}>
|
||||
<TbColorSwatch class="card__icon" size={32} opacity={0.5} />
|
||||
</Show>
|
||||
<h3 class="card__title">{props.title}</h3>
|
||||
<p class="card__description">{props.description}</p>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue