mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-16 23:41:21 +08:00
feat: rm free template
This commit is contained in:
17
src/components/FreeTemplate.astro
Normal file
17
src/components/FreeTemplate.astro
Normal 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>
|
@ -9,19 +9,6 @@ const meta = {
|
|||||||
---
|
---
|
||||||
|
|
||||||
<PageLayout meta={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'>
|
<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>
|
<h1 class='block text-7xl font-bold sm:text-9xl'>404</h1>
|
||||||
<p class='mt-3 text-muted-foreground'>Oops, something went wrong.</p>
|
<p class='mt-3 text-muted-foreground'>Oops, something went wrong.</p>
|
||||||
|
@ -165,19 +165,5 @@ const paginationProps = {
|
|||||||
</div>
|
</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>
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
@ -81,18 +81,5 @@ const paginationProps = {
|
|||||||
</ul>
|
</ul>
|
||||||
<Pagination {...paginationProps} />
|
<Pagination {...paginationProps} />
|
||||||
</section>
|
</section>
|
||||||
<a
|
</div></PageLayout
|
||||||
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>
|
|
||||||
|
58
src/pages/categories/[category]/index.astro
Normal file
58
src/pages/categories/[category]/index.astro
Normal 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}`}
|
||||||
|
>
|
||||||
|
#{category}
|
||||||
|
</a>
|
||||||
|
<span class='inline-block'>
|
||||||
|
- {val} post{val > 1 && 's'}
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</PageLayout>
|
@ -54,19 +54,5 @@ const meta = {
|
|||||||
</ul>
|
</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>
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
@ -34,19 +34,6 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
|
|||||||
|
|
||||||
<div class='flex flex-col items-center gap-y-4'>
|
<div class='flex flex-col items-center gap-y-4'>
|
||||||
<h1 class='text-3xl font-bold'>Lorem ipsum dolor</h1>
|
<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'>
|
<div class='flex flex-wrap justify-center gap-x-7 gap-y-3'>
|
||||||
<Label title='Lorem Ipsum'>
|
<Label title='Lorem Ipsum'>
|
||||||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='h-5 w-5' slot='icon'
|
<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} />
|
<SkillLayout title='Others' skills={others} />
|
||||||
</Section>
|
</Section>
|
||||||
</div>
|
</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>
|
</PageLayout>
|
||||||
|
@ -79,18 +79,5 @@ const paginationProps = {
|
|||||||
</ul>
|
</ul>
|
||||||
<Pagination {...paginationProps} />
|
<Pagination {...paginationProps} />
|
||||||
</section>
|
</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>
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
@ -54,19 +54,5 @@ const meta = {
|
|||||||
</ul>
|
</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>
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
Reference in New Issue
Block a user