From 599fca85e4ed5a527b381f2f841f393a34ad3fed Mon Sep 17 00:00:00 2001 From: Hyomin Koo Date: Wed, 27 Nov 2024 11:20:56 +0900 Subject: [PATCH] design: animated logo with svg anim --- src/components/ui/AnimatedLogo.tsx | 8 +- src/components/ui/animated_logo.css | 28 ------- src/icons/Profile.tsx | 120 ++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+), 30 deletions(-) delete mode 100644 src/components/ui/animated_logo.css create mode 100644 src/icons/Profile.tsx diff --git a/src/components/ui/AnimatedLogo.tsx b/src/components/ui/AnimatedLogo.tsx index 740e195..70c34ae 100644 --- a/src/components/ui/AnimatedLogo.tsx +++ b/src/components/ui/AnimatedLogo.tsx @@ -1,7 +1,11 @@ import type { JSX, Component } from "solid-js"; -import "./animated_logo.css"; +import { Profile } from "@icons/Profile"; export const AnimatedLogo: Component> = ( props ) => { - return ; + return ( + + ); }; diff --git a/src/components/ui/animated_logo.css b/src/components/ui/animated_logo.css deleted file mode 100644 index 26b5848..0000000 --- a/src/components/ui/animated_logo.css +++ /dev/null @@ -1,28 +0,0 @@ -@keyframes burning { - 0% { - background-position: 0 0; - } - - 50% { - background-position: 170% 70%; - } - - 100% { - background-position: 0 0; - } -} - -@tailwind components; - -@layer components { - .animated-logo { - background: linear-gradient(270deg, #ca5010, #d13438, #ff8c00, #ca5010) repeat; - background-size: 200% 200%; - mask-image: url("/images/profile.svg"); - mask-repeat: no-repeat; - mask-size: cover; - animation: burning 5s ease infinite; - } -} - - diff --git a/src/icons/Profile.tsx b/src/icons/Profile.tsx new file mode 100644 index 0000000..8eb980d --- /dev/null +++ b/src/icons/Profile.tsx @@ -0,0 +1,120 @@ +import type { Component, JSX } from "solid-js"; + +export const Profile: Component> = ( + props +) => { + return ( + + + + + + + + + + + + + + {" "} + + + + + + + + + + + + + + + ); +};