156 lines
4.2 KiB
Plaintext
156 lines
4.2 KiB
Plaintext
---
|
|
import GiteaButton from '@components/buttons/GiteaButton.astro';
|
|
|
|
interface Props {
|
|
title: string;
|
|
subTitle?: string;
|
|
url?: string;
|
|
}
|
|
|
|
const { title, subTitle, url } = Astro.props;
|
|
---
|
|
|
|
<section class="lg:px- relative mx-auto mb-20 max-w-340 px-4 pt-30 pb-30 sm:px-6">
|
|
<!-- Animated shapes -->
|
|
<div class="smooth-reveal absolute top-[55%] left-0 scale-90 md:top-[20%] xl:top-[25%] xl:left-[10%]">
|
|
<svg
|
|
class="gitea-animate-hover gitea-animate-hover-1"
|
|
width="64"
|
|
height="64"
|
|
fill="none"
|
|
stroke-width="1.5"
|
|
color="#ea580c"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
fill="#ea580c"
|
|
stroke="#ea580c"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M12 23a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM3 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM3 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
|
|
></path>
|
|
<path
|
|
stroke="#ea580c"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M21 7.353v9.294a.6.6 0 0 1-.309.525l-8.4 4.666a.6.6 0 0 1-.582 0l-8.4-4.666A.6.6 0 0 1 3 16.647V7.353a.6.6 0 0 1 .309-.524l8.4-4.667a.6.6 0 0 1 .582 0l8.4 4.667a.6.6 0 0 1 .309.524Z"
|
|
></path>
|
|
<path
|
|
stroke="#ea580c"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="m3.528 7.294 8.18 4.544a.6.6 0 0 0 .583 0l8.209-4.56M12 21v-9"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="smooth-reveal absolute top-0 left-[85%] scale-75">
|
|
<svg
|
|
class="gitea-animate-hover gitea-animate-hover-2"
|
|
width="64"
|
|
height="64"
|
|
fill="none"
|
|
stroke-width="1.5"
|
|
color="#fbbf24"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
stroke="#fbbf24"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"></path>
|
|
<path
|
|
fill="#fbbf24"
|
|
stroke="#fbbf24"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
|
|
<path stroke="#fbbf24" stroke-linecap="round" stroke-linejoin="round" d="M5 10.5V9M5 15v-1.5"
|
|
></path>
|
|
<path
|
|
fill="#fbbf24"
|
|
stroke="#fbbf24"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M5 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM19 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
|
|
<path
|
|
stroke="#fbbf24"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M10.5 19H9M15 19h-1.5"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="smooth-reveal absolute bottom-[5%] left-[60%] scale-[.6] xl:bottom-[15%] xl:left-[35%]">
|
|
<svg
|
|
class="gitea-animate-hover gitea-animate-hover-3"
|
|
width="64"
|
|
height="64"
|
|
fill="none"
|
|
stroke-width="1.5"
|
|
color="#a3a3a3"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
stroke="#a3a3a3"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M5.164 17c.29-1.049.67-2.052 1.132-3M11.5 7.794A16.838 16.838 0 0 1 14 6.296M4.5 22a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"
|
|
></path>
|
|
<path
|
|
stroke="#a3a3a3"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
d="M9.5 12a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5ZM19.5 7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"
|
|
></path>
|
|
</svg>
|
|
</div>
|
|
<!-- Heading -->
|
|
<div class="smooth-reveal-2 mx-auto mt-5 max-w-xl text-center">
|
|
<h1 class="card-text-header block">
|
|
{title}
|
|
</h1>
|
|
</div>
|
|
<!-- Sub-heading -->
|
|
<div class="smooth-reveal-2 mx-auto mt-5 max-w-3xl text-center">
|
|
{subTitle && (
|
|
<p class="card-text-header-description">
|
|
{subTitle}
|
|
</p>
|
|
)}
|
|
</div>
|
|
<!-- Gitea Button -->
|
|
{url && (
|
|
<div class="smooth-reveal-2 flex justify-center mt-8 gap-3">
|
|
<GiteaButton url={url}/>
|
|
</div>
|
|
)}
|
|
</section>
|
|
|
|
<style>
|
|
@keyframes gitea-animate-hover {
|
|
from {
|
|
transform: translateY(15px);
|
|
}
|
|
to {
|
|
transform: translateY(-15px);
|
|
}
|
|
}
|
|
|
|
.gitea-animate-hover {
|
|
animation: gitea-animate-hover ease-in-out;
|
|
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
|
|
.gitea-animate-hover-1 {
|
|
animation-duration: 5s;
|
|
}
|
|
|
|
.gitea-animate-hover-2 {
|
|
animation-duration: 5.5s;
|
|
}
|
|
|
|
.gitea-animate-hover-3 {
|
|
animation-duration: 6s;
|
|
}
|
|
</style>
|