Fix typescript errors
This commit is contained in:
parent
dcca6b154a
commit
9fab571c8f
4 changed files with 6 additions and 6 deletions
|
|
@ -14,7 +14,7 @@ const { breadcrumbs }: Props = Astro.props;
|
|||
<div class="w-full max-w-[1440px] mx-auto px-4 sm:px-10 py-6">
|
||||
<div class="flex flex-wrap gap-2 items-center">
|
||||
{breadcrumbs.map((crumb, index) => (
|
||||
<span key={index} class="flex items-center">
|
||||
<span class="flex items-center">
|
||||
{crumb.url ? (
|
||||
<a class="text-[#bab09c] hover:text-white transition-colors text-sm font-medium uppercase" href={crumb.url}>
|
||||
{crumb.label}
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@
|
|||
<h4 class="text-white font-bold uppercase tracking-wide mb-2">Следите за нами</h4>
|
||||
<div class="flex gap-4">
|
||||
<a class="w-10 h-10 rounded-sm bg-[#181611] border border-[#393328] flex items-center justify-center text-white hover:bg-primary hover:text-[#181611] hover:border-primary transition-all" href="#">
|
||||
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewbox="0 0 24 24"><path clip-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" fill-rule="evenodd"></path></svg>
|
||||
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" fill-rule="evenodd"></path></svg>
|
||||
</a>
|
||||
<a class="w-10 h-10 rounded-sm bg-[#181611] border border-[#393328] flex items-center justify-center text-white hover:bg-primary hover:text-[#181611] hover:border-primary transition-all" href="#">
|
||||
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewbox="0 0 24 24"><path clip-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772 4.902 4.902 0 011.772-1.153c.636-.247 1.363-.416 2.427-.465 1.067-.047 1.409-.06 3.809-.06h.63zm1.418 2.003l-.31.004c-2.422.006-2.839.019-3.796.063-.978.045-1.51.204-1.866.342-.465.18-.797.398-1.15.748-.35.353-.566.683-.748 1.15-.139.356-.297.888-.342 1.867-.044.956-.057 1.372-.063 3.795v.31c.006 2.423.019 2.839.063 3.796.045.979.204 1.511.342 1.867.18.464.398.797.75 1.149.352.352.684.567 1.15.75.355.138.887.296 1.866.342.957.044 1.373.057 3.796.063h.31c2.423-.006 2.84-.019 3.797-.063.978-.045 1.51-.204 1.866-.342.464-.18.797-.398 1.15-.749.352-.352.566-.684.749-1.15.138-.356.296-.888.342-1.867.044-.957.057-1.373.063-3.796l-.004-.31c-.005-2.422-.018-2.839-.063-3.796-.044-.979-.203-1.51-.341-1.867-.18-.465-.398-.797-.749-1.15-.352-.352-.684-.566-1.15-.749-.355-.138-.888-.296-1.866-.341-.957-.044-1.373-.057-3.796-.063zM12 5.838a6.162 6.162 0 110 12.324 6.162 6.162 0 010-12.324zm0 1.933a4.23 4.23 0 100 8.46 4.23 4.23 0 000-8.46zm6.406-3.845a1.44 1.44 0 110 2.88 1.44 1.44 0 010-2.88z" fill-rule="evenodd"></path></svg>
|
||||
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772 4.902 4.902 0 011.772-1.153c.636-.247 1.363-.416 2.427-.465 1.067-.047 1.409-.06 3.809-.06h.63zm1.418 2.003l-.31.004c-2.422.006-2.839.019-3.796.063-.978.045-1.51.204-1.866.342-.465.18-.797.398-1.15.748-.35.353-.566.683-.748 1.15-.139.356-.297.888-.342 1.867-.044.956-.057 1.372-.063 3.795v.31c.006 2.423.019 2.839.063 3.796.045.979.204 1.511.342 1.867.18.464.398.797.75 1.149.352.352.684.567 1.15.75.355.138.887.296 1.866.342.957.044 1.373.057 3.796.063h.31c2.423-.006 2.84-.019 3.797-.063.978-.045 1.51-.204 1.866-.342.464-.18.797-.398 1.15-.749.352-.352.566-.684.749-1.15.138-.356.296-.888.342-1.867.044-.957.057-1.373.063-3.796l-.004-.31c-.005-2.422-.018-2.839-.063-3.796-.044-.979-.203-1.51-.341-1.867-.18-.465-.398-.797-.749-1.15-.352-.352-.684-.566-1.15-.749-.355-.138-.888-.296-1.866-.341-.957-.044-1.373-.057-3.796-.063zM12 5.838a6.162 6.162 0 110 12.324 6.162 6.162 0 010-12.324zm0 1.933a4.23 4.23 0 100 8.46 4.23 4.23 0 000-8.46zm6.406-3.845a1.44 1.44 0 110 2.88 1.44 1.44 0 010-2.88z" fill-rule="evenodd"></path></svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import '@assets/css/global.css'
|
||||
import Header from '@components/layout/header/Header.astro'
|
||||
import Footer from '@components/layout/footer/Footer.astro'
|
||||
import Breadcrumbs, { Breadcrumb } from '@components/base/Breadcrumbs.astro'
|
||||
import Breadcrumbs, { type Breadcrumb } from '@components/base/Breadcrumbs.astro'
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ export const GET: APIRoute = async (): Promise<Response> => {
|
|||
const allPosts: CollectionEntry<"post">[] = await getCollection("post");
|
||||
|
||||
const searchData = allPosts.map((post) => ({
|
||||
slug: post.slug,
|
||||
id: post.id,
|
||||
title: post.data.title,
|
||||
description: post.data.description,
|
||||
body: post.body,
|
||||
body: post.body,
|
||||
}));
|
||||
|
||||
return new Response(JSON.stringify(searchData), {
|
||||
|
|
|
|||
Loading…
Reference in a new issue