From 616e6f4aa56b913adcc0d5fc15e401b367140597 Mon Sep 17 00:00:00 2001 From: Achyuth Mohan Date: Tue, 6 Dec 2022 20:52:47 +0530 Subject: [PATCH] cleaned teams --- src/pages/Teams/TeamCard.js | 28 ++++++++++------- src/pages/Teams/Teams.css | 60 ++++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 12 deletions(-) diff --git a/src/pages/Teams/TeamCard.js b/src/pages/Teams/TeamCard.js index 15f2401..11947d8 100644 --- a/src/pages/Teams/TeamCard.js +++ b/src/pages/Teams/TeamCard.js @@ -2,19 +2,25 @@ import React from 'react' import './Teams.css' const TeamCard = ({id, name, image}) => { - if(id%2===0){ - return( -
- -

{name}

-
- ) - } +// if(id%2===0){ +// return( +//
+//
+//
+//
+//

Card Title

+//
+//
+//
+// ) +// } return ( -
- -

{name}

+
+
+
+

{name}

+
) } diff --git a/src/pages/Teams/Teams.css b/src/pages/Teams/Teams.css index c5b140f..74e8e27 100644 --- a/src/pages/Teams/Teams.css +++ b/src/pages/Teams/Teams.css @@ -20,4 +20,62 @@ border-radius: 3rem; width: 10rem; height: 10rem; -} \ No newline at end of file +} + + + +/* new */ + +.card { + margin: 30px auto; + width: 300px; + height: 300px; + border-radius: 40px; + box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22); + cursor: pointer; + transition: 0.4s; + } + + .card .card_image { + width: inherit; + height: inherit; + border-radius: 40px; + } + + .card .card_image img { + width: inherit; + height: inherit; + border-radius: 40px; + object-fit: cover; + } + + .card .card_title { + text-align: center; + /* border-radius: 0px 0px 40px 40px; */ + border-radius: 10px ; + font-family: sans-serif; + font-weight: bold; + font-size: 30px; + margin-top: -80px; + height: 40px; + opacity: 100px; + + } + + .card:hover { + transform: scale(0.9, 0.9); + box-shadow: 5px 5px 30px 15px rgba(0,0,0,0.25), + -5px -5px 30px 15px rgba(0,0,0,0.22); + } + + .title-white { + color: #ffff; + display: flex; + background: linear-gradient(180deg,rgba(20, 131, 222, 0.97),#21b8cb),#efffec; + padding: 2px 3px 2px 3px; + width: fit-content; + justify-content: center; + height: fit-content; + font-family: 'Robotto'; + } + \ No newline at end of file