Added a new logo loop + optimized the component setup (DRY)
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m26s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m26s
This commit is contained in:
22
src/components/RotatingText.astro
Normal file
22
src/components/RotatingText.astro
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
interface Props {
|
||||
items: {
|
||||
text: string;
|
||||
className: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
const { items } = Astro.props;
|
||||
---
|
||||
|
||||
<span class="block w-full my-2">
|
||||
<span class="text-rotate">
|
||||
<span class="justify-items-center">
|
||||
{
|
||||
items.map((item) => (
|
||||
<span class={item.className}>{item.text}</span>
|
||||
))
|
||||
}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
Reference in New Issue
Block a user