feat: some shit
This commit is contained in:
21
src/components/arrows/ArrowA.astro
Normal file
21
src/components/arrows/ArrowA.astro
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
import { useTranslations } from "@i18n/utils";
|
||||
const t = useTranslations(Astro);
|
||||
---
|
||||
|
||||
<div class="arrow flex items-center gap-2">
|
||||
<img src="/images/arrow_a.svg" alt="Arrow" />
|
||||
<p class="text-xl">{t("latest-projects")}</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.arrow {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
transform: rotate(10deg) translateX(110%) translateY(50px);
|
||||
}
|
||||
.arrow > p {
|
||||
color: #414152;
|
||||
transform: rotate(15deg) translateY(16px) translateX(4px);
|
||||
}
|
||||
</style>
|
21
src/components/arrows/ArrowB.astro
Normal file
21
src/components/arrows/ArrowB.astro
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
import { useTranslations } from "@i18n/utils";
|
||||
const t = useTranslations(Astro);
|
||||
---
|
||||
|
||||
<div class="arrow flex items-center gap-2">
|
||||
<p class="text-xl">{t("latest-posts")}</p>
|
||||
<img src="/images/arrow_b.svg" alt="Arrow" />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.arrow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
transform: translateX(-110%) translateY(-160px);
|
||||
}
|
||||
.arrow > p {
|
||||
color: #414152;
|
||||
transform: rotate(-26deg) translateY(34px) translateX(-10px);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user