feat: rm free template

This commit is contained in:
KazooTTT
2024-07-25 14:10:30 +08:00
parent 484c103777
commit 004328ae56
9 changed files with 77 additions and 109 deletions

View File

@ -0,0 +1,17 @@
---
---
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>

View File

@ -9,19 +9,6 @@ const meta = {
---
<PageLayout meta={meta}>
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
<div class='px-4 py-10 text-center sm:px-6 lg:px-8'>
<h1 class='block text-7xl font-bold sm:text-9xl'>404</h1>
<p class='mt-3 text-muted-foreground'>Oops, something went wrong.</p>

View File

@ -165,19 +165,5 @@ const paginationProps = {
</div>
)
}
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</div>
</PageLayout>

View File

@ -81,18 +81,5 @@ const paginationProps = {
</ul>
<Pagination {...paginationProps} />
</section>
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</div>
</PageLayout>
</div></PageLayout
>

View File

@ -0,0 +1,58 @@
---
import Button from '@/components/Button.astro'
import PageLayout from '@/layouts/BaseLayout.astro'
import { getAllPosts, getUniqueCategoriesWithCount } from '@/utils'
const allPosts = await getAllPosts()
const allCategories = getUniqueCategoriesWithCount(allPosts)
const meta = {
description: "A list of all the topics I've written about in my posts",
title: 'All Categories'
}
---
<PageLayout meta={meta}>
<div class='w-full'>
<Button title='Back' href='/blog' style='button'>
<svg
xmlns='http://www.w3.org/2000/svg'
width='14'
height='14'
viewBox='0 0 24 24'
slot='icon-before'
>
<path
fill='currentColor'
d='m6.921 12.5l5.792 5.792L12 19l-7-7l7-7l.713.708L6.921 11.5H19v1z'
>
</path>
</svg>
</Button>
<h1 class='mb-6 mt-5 text-2xl font-bold'>Categories</h1>
{allCategories.length === 0 && <p>No posts yet.</p>}
{
allCategories.length > 0 && (
<ul class='flex flex-col gap-y-3'>
{allCategories.map(([category, val]) => (
<li class='flex items-center gap-x-2 '>
<a
class='inline-block underline underline-offset-4 hover:text-foreground/75'
data-astro-prefetch
href={`/categories/${category}/`}
title={`View posts of the Category: ${category}`}
>
&#35;{category}
</a>
<span class='inline-block'>
- {val} post{val > 1 && 's'}
</span>
</li>
))}
</ul>
)
}
</div>
</PageLayout>

View File

@ -54,19 +54,5 @@ const meta = {
</ul>
)
}
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</div>
</PageLayout>

View File

@ -34,19 +34,6 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
<div class='flex flex-col items-center gap-y-4'>
<h1 class='text-3xl font-bold'>Lorem ipsum dolor</h1>
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
<div class='flex flex-wrap justify-center gap-x-7 gap-y-3'>
<Label title='Lorem Ipsum'>
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='h-5 w-5' slot='icon'
@ -214,17 +201,4 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
<SkillLayout title='Others' skills={others} />
</Section>
</div>
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</PageLayout>

View File

@ -79,18 +79,5 @@ const paginationProps = {
</ul>
<Pagination {...paginationProps} />
</section>
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</div>
</PageLayout>

View File

@ -54,19 +54,5 @@ const meta = {
</ul>
)
}
<a
href='https://github.com/srleom/astro-theme-resume.git'
class='mt-16 inline-flex flex-row items-center gap-x-3 rounded-3xl border border-input px-4 py-2 text-sm shadow-sm transition-all hover:shadow-md'
>
<span class='relative flex items-center justify-center'>
<span
class='absolute inline-flex h-2 w-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
></span>
<span class='relative inline-flex h-2 w-2 rounded-full bg-green-400'></span>
</span>
<p class='font-medium'>Get free template</p>
</a>
</div>
</PageLayout>