From a574ddfda9d7ce7c5266d1f99acf351546f8857e Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Tue, 19 Jul 2022 13:47:16 +0530 Subject: Added routes, enrollment, update component --- src/components/Card/Card.jsx | 11 ++++++----- src/components/Card/Card.module.css | 26 ++++++++++++++++++++++++++ src/components/Header/Header.jsx | 4 ++-- src/components/Header/Header.module.css | 14 +++++++++++++- 4 files changed, 47 insertions(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/Card/Card.jsx b/src/components/Card/Card.jsx index 93e8102..3d66067 100644 --- a/src/components/Card/Card.jsx +++ b/src/components/Card/Card.jsx @@ -1,11 +1,12 @@ import React from 'react' +import styles from './Card.module.css' -const Card = (title, image) => { +const Card = ({ title, image }) => { return ( - <> - -

{title}

- +
+ +

{title}

+
) } diff --git a/src/components/Card/Card.module.css b/src/components/Card/Card.module.css index e69de29..ff09072 100644 --- a/src/components/Card/Card.module.css +++ b/src/components/Card/Card.module.css @@ -0,0 +1,26 @@ +@import '../../styles/GlobalVariables.css'; + +.card { + height: 300px; + width: 300px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + border: 3px solid var(--color-black); + border-radius: 10px; + margin: 30px; + transition: 0.2s all; + cursor: pointer; + color: var(--color-black); + text-decoration-line: none; +} + +.card:active { + transform: scale(0.98); + box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24); +} + +.card__title { + margin: 15px 0px; +} diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 0cbe47f..d90aafe 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -4,8 +4,8 @@ import styles from './Header.module.css' const Header = ({ subheading }) => { return (
-

AADHAAR

-

{subheading}

+

AADHAAR

+

{subheading}

) } diff --git a/src/components/Header/Header.module.css b/src/components/Header/Header.module.css index b30d5b7..8e6084f 100644 --- a/src/components/Header/Header.module.css +++ b/src/components/Header/Header.module.css @@ -1,8 +1,20 @@ +@import '../../styles/GlobalVariables.css'; + .header { - font-family: "Fredoka One", cursive; + font-family: 'Fredoka One', cursive; display: flex; flex-direction: column; align-items: center; margin: 20px; padding: 20px; } + +.header__heading { + font-size: var(--font-large); + font-weight: 400; +} + +.header__subheading { + font-size: var(--font-medium); + font-weight: 400; +} -- cgit