Skip to content

Commit

Permalink
feat(apps/earth): adds animated blobs component
Browse files Browse the repository at this point in the history
  • Loading branch information
deopea-david committed Feb 4, 2023
1 parent d2de1c3 commit 113a6db
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apps/earth/src/components/blob/AnimatedBlobs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ClassSlot, component$, HTMLAttributes } from "@builder.io/qwik/core";
import { Blob } from "./Blob";

export interface AnimatedBlobs extends HTMLAttributes<HTMLDivElement> {
class?: ClassSlot;
}

export const AnimatedBlobs = component$<AnimatedBlobs>((props) => {
return (
<div {...props} class={["overflow-hidden", props.class]}>
<div class="relative h-full w-full">
<Blob
color="primary"
class="animate-blob absolute -z-10 w-[500px] opacity-50"
/>
<Blob
color="secondary"
class="animate-blob2 absolute -z-10 w-[500px] opacity-50"
/>
</div>
</div>
);
});
1 change: 1 addition & 0 deletions apps/earth/src/components/blob/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./AnimatedBlobs";
export * from "./Blob";

0 comments on commit 113a6db

Please sign in to comment.