-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,816 additions
and
1,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
<script lang="ts" setup></script> | ||
<script lang="ts" setup> | ||
import type { IProject } from '~/types' | ||
defineProps<{ | ||
item: IProject | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div></div> | ||
<a | ||
:href="item.url" | ||
class="rounded-md bg-gray-50 px-4 py-3 decoration-none transition-colors dark:bg-gray-50/10 hover:bg-gray-100 dark:hover:bg-gray-50/20" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<div class="h-full flex items-center justify-center"> | ||
<div | ||
v-if="item.icon" | ||
class="mr-4 text-4xl" | ||
> | ||
<div :class="item.icon" /> | ||
</div> | ||
<div class="flex-1"> | ||
<h3 class="text-sm font-medium">{{ item.name }}</h3> | ||
<p class="text-sm font-normal op-50">{{ item.description }}</p> | ||
</div> | ||
</div> | ||
</a> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script lang="ts" setup> | ||
import type { IProject } from '~/types' | ||
const projects = shallowRef<IProject[]>([ | ||
{ | ||
name: 'Prettier Now', | ||
url: 'https://github.com/ntnyq/prettier-now', | ||
description: 'Yet another @prettier browser extension', | ||
icon: 'i-fluent-emoji-flat:toolbox', | ||
}, | ||
{ | ||
name: 'Filter Now', | ||
url: 'https://github.com/ntnyq/filter-now', | ||
description: 'An offline tool help user to add CSS based filter to image', | ||
icon: 'i-fluent-emoji-flat:framed-picture', | ||
}, | ||
]) | ||
</script> | ||
|
||
<template> | ||
<div class="mb-4 mt-10"> | ||
<h2 class="mb-4 text-3xl font-bold">Projects</h2> | ||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2"> | ||
<ProjectItem | ||
v-for="project in projects" | ||
:key="project.name" | ||
:item="project" | ||
/> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.