From 66bcbc9a97b609bde2e4a9a4289b7fe63b71e2f4 Mon Sep 17 00:00:00 2001 From: ajoalex-neoito Date: Thu, 9 Dec 2021 14:10:14 +0530 Subject: [PATCH] fix: share event ui change fixed --- component/layout/EventDetails/ShareEvent.jsx | 45 ++++++---- .../EventDetails/ShareEvent.module.scss | 90 +++++++++++++++---- 2 files changed, 99 insertions(+), 36 deletions(-) diff --git a/component/layout/EventDetails/ShareEvent.jsx b/component/layout/EventDetails/ShareEvent.jsx index 0412e21c..3623a4b4 100644 --- a/component/layout/EventDetails/ShareEvent.jsx +++ b/component/layout/EventDetails/ShareEvent.jsx @@ -5,9 +5,10 @@ import { FacebookShareButton, LinkedinShareButton, TwitterShareButton, - WhatsappShareButton + WhatsappShareButton, + EmailShareButton, } from "react-share"; -import { FacebookIcon, TwitterIcon, LinkedinIcon, WhatsappIcon } from "react-share"; +import { FacebookIcon, TwitterIcon, LinkedinIcon, WhatsappIcon, EmailIcon } from "react-share"; function ShareEvent({ hidewindow, location }) { const url = location; const copyToClipBoard = () => { @@ -15,42 +16,47 @@ function ShareEvent({ hidewindow, location }) { notify("Copied to clipboard", "success"); }; return ( -
-
+
+
Share
-
+
- + - - - - - - - + + + + + + + + + + + +
-
+
+
+ copy +
diff --git a/component/layout/EventDetails/ShareEvent.module.scss b/component/layout/EventDetails/ShareEvent.module.scss index f39501eb..139d56b6 100644 --- a/component/layout/EventDetails/ShareEvent.module.scss +++ b/component/layout/EventDetails/ShareEvent.module.scss @@ -1,41 +1,95 @@ -.cover{ +.cover { @apply w-full h-screen flex flex-row justify-center items-center z-50 fixed; background-color: rgba($color: #000000, $alpha: 0.6); } -.card{ - @apply w-full md:w-1/3 h-auto p-4 mx-4; - background-color: rgb(29, 28, 28); +.card { + @apply p-6 mx-4 bg-white; + width: 591px; + height: 270px; + border-radius: 14px; } -.topbar{ - @apply flex justify-between text-white font-bold text-xl my-2; +.topbar { + @apply flex justify-between font-bold text-xl my-2; } -.link{ - @apply p-2 w-full bg-gray-700 text-gray-100 mt-4 cursor-pointer; +.link { + @apply p-2; + color: #adadad; + width: 400px; + background-color: #f8fafc; } -.facebook{ +.facebook { margin: 10px 10px; cursor: pointer; - svg:hover{ + svg:hover { fill: #0e76a8; } } -.instagram{ +.instagram { margin: 10px 10px; cursor: pointer; - svg:hover{ + svg:hover { fill: #3f729b; } } -.twitter{ +.twitter { margin: 10px 10px; cursor: pointer; - svg:hover{ + svg:hover { fill: #00acee; } } -.close{ +.close { cursor: pointer; } -.icons{ - margin-right: 10px; -} \ No newline at end of file +.icons { + margin-right: 40px; + margin-top: 22px; +} +.linkbox { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + height: 48px; + margin-top: 34px; + background-color: #f8fafc; + padding-left: 10px; + padding-right: 10px; +} +.copy { + font-size: 18px; + color: #4a81ef; + font-weight: 600; + cursor: pointer; +} +@media only screen and (max-width: 420px) { + .link { + width: 200px; + } + .iconset { + overflow-x: scroll; + display: flex; + width: 100%; + margin-top: 10px; + } + .iconset::-webkit-scrollbar{ + display: none; + } + .card { + width: 360px; + } + .icons { + margin-right: 20px; + margin-top: 0px; + } + .iconimage{ + width: 40px; + } + .linkbox{ + margin-top: 5px; + } + .card{ + height: auto; + padding: 20px; + } +}