Feature/add emoji to webapp (#345)

This commit is contained in:
crazywoola
2023-06-13 14:54:12 +08:00
committed by GitHub
parent cd136fb293
commit 433f8cb57e
6 changed files with 100 additions and 76 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react'
import './style.css'
interface ILoadingProps {
type ILoadingProps = {
type?: 'area' | 'app'
}
const Loading = (
{ type = 'area' }: ILoadingProps = { type: 'area' }
{ type = 'area' }: ILoadingProps = { type: 'area' },
) => {
return (
<div className={`flex w-full justify-center items-center ${type === 'app' ? 'h-full' : ''}`}>

View File

@@ -1,5 +1,5 @@
.spin-animation path {
animation: custom 2s linear infinite;
animation: custom 1s linear infinite;
}
@keyframes custom {
@@ -29,13 +29,13 @@
}
.spin-animation path:nth-child(2) {
animation-delay: 0.5s;
animation-delay: 0.25s;
}
.spin-animation path:nth-child(3) {
animation-delay: 1s;
animation-delay: 0.5s;
}
.spin-animation path:nth-child(4) {
animation-delay: 1.5s;
}
animation-delay: 1s;
}