diff --git a/src/components/stateless/BorderBeam/index.jsx b/src/components/stateless/BorderBeam/index.jsx index 45af4977..a1eeec5d 100644 --- a/src/components/stateless/BorderBeam/index.jsx +++ b/src/components/stateless/BorderBeam/index.jsx @@ -21,7 +21,7 @@ const BorderBeam = ({ '--border-width': borderWidth, '--color-from': colorFrom, '--color-to': colorTo, - '--delay': `-${delay}s`, + '--delay': `-${delay}s` }} className={clsx( 'pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]', diff --git a/src/components/stateless/WordRotate/index.jsx b/src/components/stateless/WordRotate/index.jsx index 09d17f60..92d6b55d 100644 --- a/src/components/stateless/WordRotate/index.jsx +++ b/src/components/stateless/WordRotate/index.jsx @@ -10,9 +10,9 @@ const WordRotate = ({ initial: { opacity: 0, y: -50 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 50 }, - transition: { duration: 0.25, ease: 'easeOut' }, + transition: { duration: 0.25, ease: 'easeOut' } }, - className, + className }) => { const [index, setIndex] = useState(0) @@ -25,8 +25,8 @@ const WordRotate = ({ }, [words, duration]) return ( -
- +
+ {words[index]} diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx index 93199dd0..e758c791 100644 --- a/src/pages/home/index.jsx +++ b/src/pages/home/index.jsx @@ -63,7 +63,7 @@ import { oneApiChat, prettyObject, // randomNum, - getDirection, + getDirection } from '@utils/aidFn' import { fireConfetti } from '@utils/confetti' import Zoom from 'react-medium-image-zoom' @@ -78,7 +78,7 @@ const code = { main : "This component needs more than the default code block to be displayed" detailed : "For now, if you want the exact same behaviour, please check the github" }`, - lang: 'typescript', + lang: 'typescript' } const preCode = ` @@ -96,20 +96,20 @@ const preCode = ` const dataSteps = [ { title: 'Step 1', - code: 'npx create-react-app my-app', + code: 'npx create-react-app my-app' }, { title: 'Step 2', - code: 'cd my-app', + code: 'cd my-app' }, { title: 'Step 3', - code: 'npm start', + code: 'npm start' }, { title: 'Step 4', - code: 'npm run build', - }, + code: 'npm run build' + } ] const Home = () => { @@ -190,8 +190,8 @@ const Home = () => { [ { content: text, - role: 'user', - }, + role: 'user' + } ], key, signal @@ -285,10 +285,10 @@ const Home = () => {
@@ -296,14 +296,14 @@ const Home = () => {
- +
- +
- +
{/*
@@ -315,7 +315,7 @@ const Home = () => { 'Loading awesome content', 'Almost there', 'Just a moment', - 'Getting things ready', + 'Getting things ready' ]} />
@@ -327,7 +327,7 @@ const Home = () => { width: 360, background: '#111827', position: 'relative', - overflow: 'hidden', + overflow: 'hidden' }} > @@ -338,16 +338,16 @@ const Home = () => { fontSize: 20, height: 200, width: 360, - background: '#111827', + background: '#111827' }} >
{ height: 200, width: 360, overflow: 'hidden', - position: 'relative', + position: 'relative' }} - className="bg-slate-900" + className='bg-slate-900' >
@@ -370,9 +370,9 @@ const Home = () => { height: 200, width: 360, overflow: 'hidden', - position: 'relative', + position: 'relative' }} - className="bg-slate-900" + className='bg-slate-900' > @@ -387,7 +387,7 @@ const Home = () => { display: 'flex', alignItems: 'center', justifyContent: 'center', - color: '#fff', + color: '#fff' }} > Direction: {enterDirection} @@ -396,29 +396,29 @@ const Home = () => {
-
+
- +
- +
- +
@@ -431,13 +431,13 @@ const Home = () => {

React Animate On Scroll.

- +

- +

- +
{/*
@@ -472,18 +472,18 @@ const Home = () => {
*/}
- +
- +
<> - +
Mix Blend Mode
@@ -492,24 +492,24 @@ const Home = () => { - +
- -
+ +
-
- +
+ Border Beam @@ -523,7 +523,7 @@ const Home = () => { height: 200, position: 'relative', backgroundColor: 'rgba(0, 0,0, 0.2)', - borderRadius: 8, + borderRadius: 8 }} >
@@ -540,16 +540,16 @@ const Home = () => {
-

+

@@ -564,16 +564,16 @@ const Home = () => { mask
-
-
-
-
-
+
+
+
+
@@ -596,12 +596,12 @@ const Home = () => {
- - + + { - @@ -652,21 +652,21 @@ const Home = () => {
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -674,7 +674,7 @@ const Home = () => {
- +
{ textAlign: 'center', background: '#aaa', margin: '0 10px', - borderRadius: 8, + borderRadius: 8 // transform: 'rotateX(60deg) rotateY(0deg) rotateZ(45deg)' }} > @@ -692,7 +692,7 @@ const Home = () => {
- +
{ textAlign: 'center', background: '#aaa', margin: '0 10px', - borderRadius: 8, + borderRadius: 8 }} > Vue diff --git a/tailwind.config.js b/tailwind.config.js index 90bc7120..361d26bf 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -4,16 +4,16 @@ module.exports = { theme: { extend: { animation: { - 'border-beam': 'border-beam calc(var(--duration)*1s) infinite linear', + 'border-beam': 'border-beam calc(var(--duration)*1s) infinite linear' }, keyframes: { 'border-beam': { '100%': { - 'offset-distance': '100%', - }, - }, - }, - }, + 'offset-distance': '100%' + } + } + } + } }, - plugins: [], + plugins: [] }