diff --git a/client/src/components/card/claim-username.css b/client/src/components/card/claim-username.css index 18f0deb..a88a345 100644 --- a/client/src/components/card/claim-username.css +++ b/client/src/components/card/claim-username.css @@ -2,9 +2,9 @@ --claim-border: #E5E4E2; --username-bg: #E5E4E2; --username-color: #000; - --username-input-bg: #FFF; + --username-input-bg: #F9F9F9; --username-input-color: #000; - --submit-bg: #FFF; + --submit-bg: #F9F9F9; } [data-theme='dark'] { @@ -71,7 +71,6 @@ padding: 0 20px; width: 100%; font-size: 16px; - font-weight: 600; background-color: var(--username-input-bg); color: var(--username-input-color); } @@ -114,7 +113,7 @@ @media screen and (max-width: 480px) { #claim-username { - margin-bottom: 10px; + margin-bottom: 5px; } #claim-username .username-input .domain { diff --git a/client/src/components/card/closed-debate-card.css b/client/src/components/card/closed-debate-card.css index c238a1d..04477be 100644 --- a/client/src/components/card/closed-debate-card.css +++ b/client/src/components/card/closed-debate-card.css @@ -43,13 +43,20 @@ #closed-card .left h2 { font-size: 20px; font-weight: 600; - max-width: 300px; + /* max-width: 300px; text-overflow: ellipsis; - white-space: nowrap; + white-space: nowrap; */ overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; cursor: pointer; } +#closed-card .left h2:hover { + text-decoration: underline; +} + #closed-card-loading .left .topic .loading-skeleton { max-width: 300px; height: 25px; @@ -129,8 +136,8 @@ #closed-card .right .user-info .debate-from img, #closed-card .right .user-info .debate-by img { - width: 60px; - height: 60px; + width: 40px; + height: 40px; object-fit: cover; border: 2px solid var(--explore_input_bg); border-radius: 10px; @@ -138,8 +145,8 @@ } #closed-card-loading .right .user-info .debater .loading-skeleton:nth-child(1) { - width: 60px; - height: 60px; + width: 40px; + height: 40px; border-radius: 10px; } @@ -169,6 +176,15 @@ font-weight: unset; } +#closed-card .right .user-info .debate-from img:hover~p:last-child, +#closed-card .right .user-info .debate-by img:hover~p:last-child, +#closed-card .right .user-info .debate-from p:nth-child(2):hover~p:last-child, +#closed-card .right .user-info .debate-by p:nth-child(2):hover~p:last-child, +#closed-card .right .user-info .debate-from p:last-child:hover, +#closed-card .right .user-info .debate-by p:last-child:hover { + text-decoration: underline; +} + #closed-card-loading .right .user-info .debater .loading-skeleton:nth-child(3) { width: 60px; height: 15px; @@ -245,9 +261,9 @@ flex: unset; } - #closed-card .left h2 { + /* #closed-card .left h2 { max-width: 350px; - } + } */ #closed-card .left p { font-size: 15px; @@ -279,11 +295,11 @@ } } -@media screen and (max-width: 767px) { +/* @media screen and (max-width: 767px) { #closed-card .left h2 { max-width: 400px; } -} +} */ @media screen and (max-width: 480px) { @@ -293,7 +309,7 @@ } #closed-card .left h2 { - max-width: 100%; + /* max-width: 100%; */ font-size: 18px; } diff --git a/client/src/components/card/closed-debate-card.tsx b/client/src/components/card/closed-debate-card.tsx index 6abd687..f8cbca2 100644 --- a/client/src/components/card/closed-debate-card.tsx +++ b/client/src/components/card/closed-debate-card.tsx @@ -10,11 +10,15 @@ const ClosedDebateCard = () => { const navigate = useNavigate(); const { sidebar } = useNavStore(); + const handleProfileClick = (username: string) => { + navigate(`/${username}`); + } + return (
Lorem ipsum dolor sit amet consectetur adipisicing elit. Non labore necessitatibus reiciendis rem ad perferendis, id officia omnis voluptas eius veritatis explicabo harum! Vero porro labore quo ab aut. Nesciunt! @@ -27,14 +31,14 @@ const ClosedDebateCard = () => {
Aniket Das
-aniketdas
+ handleProfileClick('aniketdas')} /> +handleProfileClick('aniketdas')}>Aniket Das
+handleProfileClick('aniketdas')}>aniketdas
Pratik Prasad
-pratikprasad
+ handleProfileClick('pratikprasad')} /> +handleProfileClick('pratikprasad')}>Pratik Prasad
+handleProfileClick('pratikprasad')}>pratikprasad
Julie Roberts
-julieroberts
+handleProfileClick('julieroberts')}>Julie Roberts
+handleProfileClick('julieroberts')}>julieroberts