Skip to content

Commit 86298e9

Browse files
committed
🔥 extract the module copyFilesToPublic
💄 update the UI of subscribe page
1 parent 480241d commit 86298e9

4 files changed

Lines changed: 10 additions & 84 deletions

File tree

modules/copyFilesToPublic.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

nuxt.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
import { fileURLToPath } from 'url'
2-
import { dirname, join } from 'path'
3-
4-
const currentDir = dirname(fileURLToPath(import.meta.url))
5-
61
export default defineNuxtConfig({
72
app: {
83
// baseURL: '/'
@@ -32,7 +27,7 @@ export default defineNuxtConfig({
3227
}
3328
},
3429
modules: [
35-
[join(currentDir, './modules/copyFilesToPublic'), { cleanFolders: ['public/article'] }],
30+
['bloginote-copy-files-module', { cleanFolders: ['public/article'] }],
3631
'@nuxt/content',
3732
'@nuxtjs/tailwindcss'
3833
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@nuxt/content": "2.8.0",
3737
"@nuxt/kit": "3.7.0",
3838
"@nuxtjs/tailwindcss": "6.8.0",
39+
"bloginote-copy-files-module": "0.1.1",
3940
"d3-hierarchy": "^3.1.2",
4041
"d3-selection": "^3.0.0",
4142
"d3-shape": "^3.2.0",

pages/subscribe.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ const config = useRuntimeConfig()
1515
<h1>
1616
Subscribe
1717
</h1>
18-
<div class="max-w-prose mx-auto p-4 space-y-4 ">
19-
<div class="flex items-center gap-2">
18+
<p class="text-center">
19+
<span class="text-sm text-gray-400">click the following icons to copy</span>
20+
</p>
21+
<div class="mx-auto p-8 flex flex-wrap justify-center items-center gap-16">
22+
<div class="flex flex-col items-center gap-2">
2023
<CopyContent
2124
:content="`${config.public.hostname}/rss.xml`"
2225
:icon-name="'fa-solid:rss-square'"
2326
:icon-color-class="'text-orange-400'"
24-
:icon-size-class="'w-6 h-6'"
27+
:icon-size-class="'w-36 h-36'"
2528
/>
2629
<NuxtLink
2730
to="/rss.xml"
@@ -32,12 +35,12 @@ const config = useRuntimeConfig()
3235
</NuxtLink>
3336
</div>
3437

35-
<div class="flex items-center gap-2">
38+
<div class="flex flex-col items-center gap-2">
3639
<CopyContent
3740
:content="`${config.public.hostname}/sitemap.xml`"
3841
:icon-name="'majesticons:sitemap'"
3942
:icon-color-class="'text-purple-400'"
40-
:icon-size-class="'w-6 h-6'"
43+
:icon-size-class="'w-36 h-36'"
4144
/>
4245
<NuxtLink
4346
to="/sitemap.xml"
@@ -65,9 +68,5 @@ const config = useRuntimeConfig()
6568
h2 {
6669
@apply py-8 text-2xl font-bold text-center
6770
}
68-
69-
p {
70-
@apply py-4 text-lg text-gray-500
71-
}
7271
}
7372
</style>

0 commit comments

Comments
 (0)