diff --git a/client/Home.tsx b/client/Home.tsx index a01f304..30a83d1 100644 --- a/client/Home.tsx +++ b/client/Home.tsx @@ -1,6 +1,8 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import './home.css'; + import CoverCard from './components/CoverCard'; import Pattern from './constants/Pattern'; import useDocumentTitle from './hooks/useDocumentTitle'; @@ -117,7 +119,7 @@ const Home = () => { -
+
{
{ + + + + + + + + + + + + + +
diff --git a/client/components/CoverCard.tsx b/client/components/CoverCard.tsx index d862514..c6bef92 100644 --- a/client/components/CoverCard.tsx +++ b/client/components/CoverCard.tsx @@ -14,10 +14,27 @@ const CoverCard: React.FC = ({ pattern }) => {
-

{pattern}

+

+ {pattern} +

); diff --git a/client/components/Heading.tsx b/client/components/Heading.tsx index 0c6de4a..e728459 100644 --- a/client/components/Heading.tsx +++ b/client/components/Heading.tsx @@ -6,8 +6,24 @@ interface HeadingProps { const Heading: React.FC = ({ title }) => { return ( -
-

{title}

+
+

+ {title} +

); }; diff --git a/client/home.css b/client/home.css new file mode 100644 index 0000000..9f0f776 --- /dev/null +++ b/client/home.css @@ -0,0 +1,12 @@ +.home-cards { + animation: slide 60s linear infinite; +} + +@keyframes slide{ + 0% { + transform: translate3d(0, 0, 0); + } + 100% { + transform: translate3d(0, -600px, 0); + } +}