From 14481dde1edeca845212d1cfac3d8d3953003a80 Mon Sep 17 00:00:00 2001 From: greyguy21 <62389546+greyguy21@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:47:50 +0800 Subject: [PATCH] Styling changes to completed screen (#49) --- src/App.css | 1 + src/MainWindow/ResultPage/ResultPage.scss | 29 +----- src/MainWindow/ResultPage/index.jsx | 106 ++++++++++------------ src/common/components/ButtonSvgIcon.jsx | 4 +- 4 files changed, 58 insertions(+), 82 deletions(-) diff --git a/src/App.css b/src/App.css index f6fa6ccb..9a4bf998 100644 --- a/src/App.css +++ b/src/App.css @@ -584,6 +584,7 @@ a { } hr { + opacity: 1; background-color: #B5C5CA; } diff --git a/src/MainWindow/ResultPage/ResultPage.scss b/src/MainWindow/ResultPage/ResultPage.scss index 7775d241..669b5df9 100644 --- a/src/MainWindow/ResultPage/ResultPage.scss +++ b/src/MainWindow/ResultPage/ResultPage.scss @@ -10,14 +10,6 @@ margin: auto; } - #main-contents { - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - padding: 0 2rem; - } - #form-container { height: 100%; display: flex; @@ -52,7 +44,8 @@ font-family: "Viga"; font-size: 2rem; font-weight: 400; - margin-bottom: 2.5rem; + margin-top: 1.5rem; + margin-bottom: 1rem; } #btn-container { @@ -90,17 +83,10 @@ margin-right: 0.5rem; } - hr { - border-color: #b5c5ca; - width: 115%; - margin: 2rem 0; - } - #main-contents a { text-underline-offset: 0.5rem; } - #other-actions { width: 100%; text-align: left; @@ -110,7 +96,7 @@ border-radius: 4px; } - #other-actions p { + #other-actions h2 { margin-bottom: 1rem; font-size: 18px; font-weight: 700; @@ -120,18 +106,13 @@ #other-actions a { display: flex; text-decoration: none; - margin-top: 0.5rem; } - #other-actions img { + #other-actions img, + #view-button img { margin-right: 0.5rem; } - #other-actions hr { - width: 100%; - margin: 1rem 0; - } - #main-contents a:before { // content: "\F116 "; // font-family: bootstrap-icons; diff --git a/src/MainWindow/ResultPage/index.jsx b/src/MainWindow/ResultPage/index.jsx index c7550ba7..9dfa9fe5 100644 --- a/src/MainWindow/ResultPage/index.jsx +++ b/src/MainWindow/ResultPage/index.jsx @@ -5,13 +5,13 @@ import services from "../../services"; import { Link, useLocation, useNavigate } from "react-router-dom"; import { handleClickLink } from "../../common/constants"; import ButtonSvgIcon from "../../common/components/ButtonSvgIcon"; -import { ReactComponent as CheckCircleIcon } from "../../assets/check-circle.svg"; -import { ReactComponent as BoxArrowUpRightIcon } from "../../assets/box-arrow-up-right.svg"; import { ReactComponent as MailIcon } from "../../assets/mail.svg"; import { ReactComponent as MailSuccessIcon } from "../../assets/mail-success.svg"; import houseIcon from "../../assets/house.svg"; import thumbsUpIcon from "../../assets/hand-thumbs-up.svg"; import arrowRepeatIcon from "../../assets/arrow-repeat.svg"; +import checkCircleIcon from '../../assets/check-circle.svg'; +import boxArrowUpRightIcon from "../../assets/box-arrow-up-right.svg"; import EditMailDetailsModal from "./EditMailDetailsModal"; const ResultPage = ({ completedScanId: scanId }) => { @@ -125,86 +125,80 @@ const ResultPage = ({ completedScanId: scanId }) => {
- } - /> +

Scan completed

You can find the downloaded report at{" "} {resultsPath} - + .

-
+
-

Other actions

+

Other actions

{handleClickLink(e, feedbackFormUrl)}} > - + Help us improve { showCustomFlowReplayButton && - + Rerun custom flow {`(${customFlowLabel})`} }
- + Back To Home
- -
- {isWindows && isEvent && mailStatus === "send" && ( - - )} - {isWindows && isEvent && mailStatus === "sending" && ( - - )} - {isWindows && isEvent && mailStatus === "sent" && ( - - )} -
+ {isWindows && isEvent && ( +
+ {mailStatus === "send" && ( + + )} + {mailStatus === "sending" && ( + + )} + {mailStatus === "sent" && ( + + )} +
+ ) + } {showEditMailDetailsModal && ( { +const ButtonSvgIcon = ({ className, svgIcon }) => { return ( - + {svgIcon} );