Skip to content

Commit

Permalink
feat(talk): intro myself (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv authored Apr 14, 2024
1 parent 33693c0 commit b18c233
Show file tree
Hide file tree
Showing 25 changed files with 366 additions and 87 deletions.
7 changes: 7 additions & 0 deletions alias.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import path from 'node:path'

export const r = (p: string) => path.resolve(__dirname, p)

export const alias = {
'magic-color': r('./packages/magic-color/src/index.ts'),
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@
"prepare": "simple-git-hooks",
"play": "pnpm -C playground dev",
"play:build": "pnpm -C playground build",
"talk": "pnpm -C talk dev",
"talk:build": "pnpm -C talk build",
"deploy": "nr play:build"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.2",
"@antfu/ni": "^0.21.12",
"@iconify-json/akar-icons": "^1.1.24",
"@iconify-json/carbon": "^1.1.31",
"@iconify-json/fluent-emoji": "^1.1.18",
"@iconify-json/logos": "^1.1.42",
"@iconify/utils": "^2.1.22",
"@types/node": "^20.10.7",
"@unocss/preset-mini": "^0.59.0",
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"esno": "^4.0.0",
Expand Down
7 changes: 2 additions & 5 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'

const r = (p: string) => path.resolve(__dirname, p)
import { alias } from '../alias'

// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'magic-color': r('../packages/magic-color/src/index.ts'),
},
alias,
},
plugins: [
vue(),
Expand Down
28 changes: 27 additions & 1 deletion pnpm-lock.yaml

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

3 changes: 3 additions & 0 deletions talk/.slidev/drawings/slides/1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions talk/components/Avatar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<div fbc mb-10>
<h1>Chris</h1>
<img
src="/avatar.png" alt="Avatar" w-30 aspect-square
rd="[62%_47%_82%_35%/45%_45%_80%_66%]" will-change="border-radius,transform,opacity" animate-shape
>
</div>
</template>
8 changes: 8 additions & 0 deletions talk/components/icons/IconsBilibili.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<div inline-block space-x-1 select-none>
<a linkWithIcon o-bilibili href="https://space.bilibili.com/402454160" target="_blank">
Uploader
<i i-ri-bilibili-line />
</a>
</div>
</template>
10 changes: 10 additions & 0 deletions talk/components/icons/IconsElk.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-elk />
<!-- <img w="1.2em" h="1.2em" src="/logos/onu-ui.svg" alt="" srcset=""> -->
<a linkWithIcon o-elk href="https://github.com/elk-zone" target="_blank">
<strong>Elk</strong>
<sub bottom-0>farm</sub>
</a>
</div>
</template>
6 changes: 6 additions & 0 deletions talk/components/icons/IconsNuxt.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-nuxt-icon />
<a linkWithIcon o-nuxt href="https://github.com/nuxt/nuxt" target="_blank">Nuxt</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsOnuUI.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-onu-ui />
<a
trans linear-text shape-bl o-onuui-to from-onuui-from to-onuui-to
href="https://github.com/onu-ui" target="_blank"
>
<strong>Onu UI</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsUnPreset.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-unpreset />
<a
trans linear-text shape-bl o-unpreset-to from-unpreset-from to-unpreset-to href="https://github.com/unpreset"
target="_blank"
>
<strong>UnPreset</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsUnoCSS.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-flex space-x-1 select-none>
<i i-logos-unocss />
<a
trans linear-text shape-bl o-unocss from-unocss-from via-unocss-via to-unocss-to
href="https://github.com/unocss/unocss" target="_blank"
>
<strong> UnoCSS</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsVite.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-vitejs />
<a
trans linear-text shape-bottom-right o-vite-to from-vite-from to-vite-to href="https://github.com/vitejs/vite"
target="_blank"
>
Vite
</a>
</div>
</template>
6 changes: 6 additions & 0 deletions talk/components/icons/IconsVue.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-vue />
<a linkWithIcon o-vue href="https://github.com/vuejs-translations/docs-zh-cn" target="_blank">Vue</a>
</div>
</template>
27 changes: 0 additions & 27 deletions talk/pages/multiple-entries.md

This file was deleted.

Binary file added talk/public/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions talk/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/elk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/onu-ui.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/unocss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/unpreset.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b18c233

Please sign in to comment.