diff --git a/panda.config.ts b/panda.config.ts index 71de5aba..056b10d5 100644 --- a/panda.config.ts +++ b/panda.config.ts @@ -12,7 +12,15 @@ export default defineConfig({ // Useful for theme customization theme: { - extend: {}, + extend: { + keyframes: { + gradient: { + '0%': { transform: 'rotate(0deg)', backgroundPositionX: '0%', backgroundPositionY: '0%' }, + '50%': { backgroundPositionX: '50%', backgroundPositionY: '100%' }, + '100%': { transform: 'rotate(0deg)', backgroundPositionX: '0%', backgroundPositionY: '0%' }, + }, + }, + }, }, // The output directory for your css system diff --git a/src/app/timer/TimerView.tsx b/src/app/timer/TimerView.tsx index 9c58fdc0..9d5488a3 100644 --- a/src/app/timer/TimerView.tsx +++ b/src/app/timer/TimerView.tsx @@ -12,11 +12,7 @@ export default function TimerView({ category, time, isActive }: Props) {
{category}
-
+
{time[0]} : {time[1]} @@ -37,4 +33,12 @@ const innerCss = { const categoryCss = { color: '#4E5968', fontSize: '18px', fontWeight: '600', lineHeight: '150%' }; -const timerTextCss = { color: '#FF8C8C', fontSize: '70px', fontWeight: '700' }; +const timerTextCss = { + fontSize: '70px', + fontWeight: '700', + animation: 'gradient 3s ease-in-out infinite', + backgroundSize: '150% 200%!', + '-webkit-background-clip': 'text!', + color: 'transparent', + background: 'linear-gradient(108deg, #FF8C8C -1.04%, #5D8AFF 101.48%)', +};