Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Sep 28, 2023
1 parent 43abfcd commit 76cf89f
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
1 change: 1 addition & 0 deletions ui/src/assets/hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui/src/assets/home/hero_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
18 changes: 17 additions & 1 deletion ui/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ a:hover {

/* modal dark mode */
.dark .ant-modal-content {
background-color: #383737 !important;
background-color: #141414 !important;
color: white;
}

Expand Down Expand Up @@ -182,3 +182,19 @@ a:hover {
color: white !important;
}
/* end modal dark mode */

.ant-input-group-addon {
border: none !important;
}

.ant-card-bordered,
.ant-btn,
.ant-input,
.ant-menu .ant-menu-title-content {
transition: none;
}

.ant-switch,
.ant-switch-checked {
transition: none !important;
}
5 changes: 3 additions & 2 deletions ui/src/pages/Footer/CookieConsent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
GOOGLE_ANALYTICS_COOKIES,
GOOGLE_ANALYTICS_ID,
HIT_TYPE,
DECLINE_BUTTON_STYLES,
} from "./utils/constants";
import CookieConsentText from "./components/CookieConsentText";

Expand Down Expand Up @@ -44,10 +45,10 @@ const CookieConsent: React.FC = () => {
onAccept={handleAcceptCookie}
onDecline={handleDeclineCookie}
enableDeclineButton
flipButtons={true}
flipButtons={false}
style={COOKIE_CONSENT_STYLES}
buttonStyle={BUTTON_STYLES}
declineButtonStyle={BUTTON_STYLES}
declineButtonStyle={DECLINE_BUTTON_STYLES}
declineButtonClasses=""
declineButtonText="Decline"
buttonText="Accept"
Expand Down
15 changes: 14 additions & 1 deletion ui/src/pages/Footer/CookieConsent/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,24 @@ const COOKIE_CONSENT_STYLES = {
margin: "20px",
borderRadius: "10px",
fontSize: "17px",
backgroundColor: "#141414",
};

const BUTTON_STYLES = {
padding: "8px 20px",
fontSize: "17px",
borderRadius: "2px",
borderRadius: "8px",
backgroundColor: "#333333",
color: "white",
};

const DECLINE_BUTTON_STYLES = {
padding: "8px 20px",
fontSize: "17px",
textDecoration: "underline",
backgroundColor: "transparent",
color: "white",
border: "none",
};

export {
Expand All @@ -21,4 +33,5 @@ export {
HIT_TYPE,
COOKIE_CONSENT_STYLES,
BUTTON_STYLES,
DECLINE_BUTTON_STYLES,
};
5 changes: 3 additions & 2 deletions ui/src/pages/Home/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react";
import React, { useContext } from "react";
import style from "pages/Home/Home.module.scss";
import { Typography, Image } from "antd";
import { FEATURE_DATA } from "pages/About/utils/constants";
import hero from "assets/home/hero.svg";
import hero from "assets/home/hero_dark.svg";

const { Title } = Typography;
const Hero: React.FC = () => {
return (
Expand Down

0 comments on commit 76cf89f

Please sign in to comment.