Skip to content

Commit 6b354ed

Browse files
committed
Replaced heroicons with v2
1 parent 4a95e57 commit 6b354ed

File tree

11 files changed

+29
-41
lines changed

11 files changed

+29
-41
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,5 @@ All commands are run from the root of the project, from a terminal:
224224
- Fixed search not working due to stricter alpine checking
225225
- Migrated to standard astro tsconfig.json
226226
- Fixed astro check errors
227+
- 3.4.0: Minor changes:
228+
- Replaced heroicons to v2

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
"@astrojs/markdoc": "^0.9.2",
5959
"@astrojs/rss": "^4.0.5",
6060
"@iconify-json/bi": "^1.1.23",
61-
"@iconify-json/heroicons-outline": "^1.1.10",
62-
"@iconify-json/heroicons-solid": "^1.1.11",
61+
"@iconify-json/heroicons": "^1.1.20",
6362
"astro-icon": "^1.1.0",
6463
"astro-seo": "^0.8.3",
6564
"hero-patterns": "^2.1.0",

pnpm-lock.yaml

Lines changed: 5 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/blogcard.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ if (post.data.author) {
5353
<span
5454
class='mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400'
5555
>
56-
<Icon class='mr-1 h-4 w-4' name='heroicons-outline:calendar' />
56+
<Icon class='mr-1 h-4 w-4' name='heroicons:calendar-days' />
5757
{post.data.publishDate.toDateString()}
5858
</span>
5959
{
6060
post.data.minutesRead && (
6161
<span class='mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400'>
62-
<Icon class='mr-1 h-4 w-4' name='heroicons-outline:clock' />
62+
<Icon class='mr-1 h-4 w-4' name='heroicons:clock' />
6363
{post.data.minutesRead}
6464
</span>
6565
)
6666
}
6767
{
6868
post.data.author && (
6969
<span class='text-rosely1 dark:text-rosely7 inline-flex items-center text-xs leading-none'>
70-
<Icon class='mr-1 h-4 w-4' name='heroicons-outline:user-circle' />
70+
<Icon class='mr-1 h-4 w-4' name='heroicons:user-circle' />
7171
{author.data.title}
7272
</span>
7373
)

src/components/bloghero.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ if (frontmatter.author) {
6060
)
6161
}
6262
<span class='mr-6 flex items-center'>
63-
<Icon class='mr-1 h-6 w-6 text-purple-200' name='heroicons-outline:calendar' />
63+
<Icon class='mr-1 h-6 w-6 text-purple-200' name='heroicons:calendar-days' />
6464
<span class='ml-1 font-semibold text-purple-200'>
6565
{new Date(frontmatter.publishDate).toString()}
6666
</span>
6767
</span>
6868
{
6969
frontmatter.minutesRead && (
7070
<span class='flex items-center'>
71-
<Icon class='mr-1 h-6 w-6 text-purple-200' name='heroicons-outline:clock' />
71+
<Icon class='mr-1 h-6 w-6 text-purple-200' name='heroicons:clock' />
7272
<span class='ml-1 font-semibold text-purple-200'>{frontmatter.minutesRead}</span>
7373
</span>
7474
)

src/components/features.astro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const features = [
1212
name: 'Customisable Design',
1313
description:
1414
'Built using the TailwindCSS ecosystem (including HeroIcons and Hero Patterns). Very easy to customise and change design. Template illustrations by unDraw.',
15-
icon: 'puzzle'
15+
icon: 'puzzle-piece'
1616
},
1717
{
1818
name: 'SEO Ready',
@@ -55,11 +55,7 @@ const features = [
5555
<div class='relative'>
5656
<dt>
5757
<div class='absolute flex h-12 w-12 items-center justify-center rounded-md bg-purple-500 text-white dark:bg-purple-400 dark:text-black'>
58-
<Icon
59-
class='h-6 w-6'
60-
aria-hidden='true'
61-
name={'heroicons-outline:' + feature.icon}
62-
/>
58+
<Icon class='h-6 w-6' aria-hidden='true' name={'heroicons:' + feature.icon} />
6359
</div>
6460
<p class='ml-16 text-lg font-medium leading-6 text-gray-900 dark:text-gray-200'>
6561
{feature.name}

src/components/header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import { Logo } from '../config'
2626
x-bind:class="{'hidden': isOpen, 'block': !isOpen }"
2727
class='block h-6 w-6'
2828
aria-hidden='true'
29-
name='heroicons-outline:menu'
29+
name='heroicons:bars-3'
3030
/>
3131
<Icon
3232
x-bind:class="{'block': isOpen, 'hidden': !isOpen }"
3333
class='hidden h-6 w-6'
3434
aria-hidden='true'
35-
name='heroicons-outline:x'
35+
name='heroicons:x-mark'
3636
/>
3737
</button>
3838
</div>

src/components/moremenu.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const showMoreSection = COMMUNITY_INVITE_URL
2222
<ol role='list' class='mt-4 flex flex-col space-y-3 text-sm'>
2323
{editHref && (
2424
<li class='flex items-center py-1 text-gray-500 dark:text-gray-400'>
25-
<Icon name='heroicons-outline:pencil' class='mr-2 h-6 w-6' />
25+
<Icon name='heroicons:pencil' class='mr-2 h-6 w-6' />
2626
<a
2727
class='hover:text-purple-600 dark:hover:text-purple-300'
2828
href={editHref}
@@ -34,7 +34,7 @@ const showMoreSection = COMMUNITY_INVITE_URL
3434
)}
3535
{COMMUNITY_INVITE_URL && (
3636
<li class='flex items-center py-1 text-gray-500 dark:text-gray-400'>
37-
<Icon name='heroicons-outline:chat-alt-2' class='mr-2 h-6 w-6' />
37+
<Icon name='heroicons:chat-bubble-bottom-center-text' class='mr-2 h-6 w-6' />
3838
<a
3939
class='hover:text-purple-600 dark:hover:text-purple-300'
4040
href={COMMUNITY_INVITE_URL}

src/components/paginatecontrol.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const { base, page } = Astro.props
4848
]}
4949
>
5050
<span class='sr-only'>Previous</span>
51-
<Icon class='h-5 w-5' name='heroicons-solid:chevron-left' />
51+
<Icon class='h-5 w-5' name='heroicons:chevron-left-20-solid' />
5252
</a>
5353
{Array.from({ length: page.lastPage }, (_, index) => index + 1).map((i) => (
5454
<a
@@ -74,7 +74,7 @@ const { base, page } = Astro.props
7474
]}
7575
>
7676
<span class='sr-only'>Next</span>
77-
<Icon class='h-5 w-5' name='heroicons-solid:chevron-right' />
77+
<Icon class='h-5 w-5' name='heroicons:chevron-right-20-solid' />
7878
</a>
7979
</nav>
8080
</div>

src/components/search.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ import { Icon } from 'astro-icon/components'
143143
x-on:click='searchResults = false'
144144
>
145145
<span class='sr-only'>Close panel</span>
146-
<Icon class='h-6 w-6' name='heroicons-outline:x' />
146+
<Icon class='h-6 w-6' name='heroicons:x-mark' />
147147
</button>
148148
</div>
149149

0 commit comments

Comments
 (0)