Skip to content

Commit

Permalink
chore: continue with refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Jan 10, 2024
1 parent e3b69f3 commit 6328918
Show file tree
Hide file tree
Showing 17 changed files with 116 additions and 115 deletions.
4 changes: 4 additions & 0 deletions src/components/contact-form/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
padding: 24px;
}
}

.select {
color: $color-grey-2;
}
4 changes: 1 addition & 3 deletions src/components/contact-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ const ContactFrom = forwardRef<HTMLDivElement, Props>(
onChange={handleInputChange}
renderValue={(selected) => {
if (selected.length === 0) {
return (
<span style={{ color: "#878787" }}>{t("select")}</span>
);
return <span className={styles.select}>{t("select")}</span>;
}

return selected;
Expand Down
1 change: 1 addition & 0 deletions src/components/nav/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@include up-laptop {
left: 50vw;
margin: auto;
padding: 0;
top: 30px;
transform: translate(-50%, -50%);
z-index: 2;
Expand Down
2 changes: 1 addition & 1 deletion src/components/section/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.tr1 {
color: #ee3131;
color: $color-red-unnamed;
display: inline;
font-size: 40px;
font-weight: 590;
Expand Down
4 changes: 2 additions & 2 deletions src/components/selection-tab/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
text-transform: none;

&:global(.Mui-disabled) {
box-shadow: 4px 8px 24px 0px rgba(42, 34, 194, 0.16);
box-shadow: 4px 8px 24px 0 rgba(42, 34, 194, 0.16);
color: #fff;
opacity: 0.5;
}

&:global(.Mui-hover) {
background: linear-gradient(175.41deg, #623df5 11.57%, #362187 173.5%),
linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32));
box-shadow: 4px 8px 24px 0px rgba(42, 34, 194, 0.16);
box-shadow: 4px 8px 24px 0 rgba(42, 34, 194, 0.16);
}

&:global(.Mui-selected) {
Expand Down
66 changes: 66 additions & 0 deletions src/components/signature-card/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@import "src/styles/sass.scss";

.gridContent {
align-items: center;
background: #fff;
border-radius: 16px;
box-shadow: 4px 8px 24px 0 rgba(90, 117, 255, 0.24);
display: flex;
flex-direction: column;
padding: 12px 16px;
position: relative;
}

.title {
color: $color-forbole-blue-1;
font-size: 18px;
font-style: normal;
font-weight: 590;
letter-spacing: -0.8px;
line-height: normal;
margin-bottom: 8px;
text-shadow: 0 4px 24px rgba(2, 38, 225, 0.24);
white-space: nowrap;
}

.desc {
color: $color-forbole-blue-1;
font-size: 12px;
font-style: normal;
font-weight: 400;
letter-spacing: -0.216px;
line-height: 16px;
text-wrap: wrap;
}

.usage {
color: $color-red-unnamed;
font-size: 12px;
font-style: normal;
font-weight: 590;
letter-spacing: -0.408px;
line-height: 16px;
white-space: nowrap;
}

.activeSection {
align-items: center;
background: #fff;
border: 1px solid var(--gradient-fb-red-gradient-01, #ee3131);
border-radius: 28.241px;
display: flex;
flex-direction: row;
gap: 4px;
justify-content: center;
padding: 2px 6px;
position: absolute;
right: 0;
top: -14px;
}

.descContainer {
align-items: center;
display: flex;
flex-direction: row;
gap: 5px;
}
86 changes: 12 additions & 74 deletions src/components/signature-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Grid, Stack, Typography } from "@mui/material";
import { Grid } from "@mui/material";
import useTranslation from "next-translate/useTranslation";
import { useMemo } from "react";

import * as styles from "./index.module.scss";

function SignatureCard() {
const { t } = useTranslation("developer_tools");

Expand Down Expand Up @@ -34,91 +36,27 @@ function SignatureCard() {
>
{data.map((d, k) => (
<Grid item key={k} laptop={4} mobile={12}>
<Stack
sx={{
alignItems: "center",
background: "#FFF",
borderRadius: "16px",
boxShadow: "4px 8px 24px 0px rgba(90, 117, 255, 0.24)",
p: "12px 16px",
position: "relative",
}}
>
<div className={styles.gridContent}>
<div style={{ width: "100%" }}>
<Typography
sx={{
color: "#202A43",
fontSize: "18px",
fontStyle: "normal",
fontWeight: "590",
letterSpacing: "-0.8px",
lineHeight: "normal",
mb: "8px",
textShadow: "0px 4px 24px rgba(2, 38, 225, 0.24)",
whiteSpace: "nowrap",
}}
>
{d.title}
</Typography>
<Stack
sx={{ alignItems: "center", flexDirection: "row", gap: "5px" }}
>
<p className={styles.title}>{d.title}</p>
<div className={styles.descContainer}>
<img
alt=""
src="/images/assets/25.svg"
style={{ height: "40px", width: "20px" }}
/>
<div>
<Typography
sx={{
color: "#202A43",
fontSize: "12px",
fontStyle: "normal",
fontWeight: "400",
letterSpacing: "-0.216px",
lineHeight: "16px",
textWrap: "wrap",
}}
>
{d.desc}
</Typography>
<p className={styles.desc}>{d.desc}</p>
</div>
</Stack>
</div>
</div>
{d.active && (
<Stack
sx={{
alignItems: "center",
background: "#FFF",
border:
"1px solid var(--gradient-fb-red-gradient-01, #EE3131)",
borderRadius: "28.241px",
flexDirection: "row",
gap: "4px",
justifyContent: "center",
padding: "2px 6px",
position: "absolute",
right: "0",
top: "-14px",
}}
>
<div className={styles.activeSection}>
<img alt="√" src="/images/assets/26.svg" />
<Typography
sx={{
color: "#EE3131",
fontSize: "12px",
fontStyle: "normal",
fontWeight: "590",
letterSpacing: "-0.408px",
lineHeight: "16px",
whiteSpace: "nowrap",
}}
>
{t("unlimited_usage")}
</Typography>
</Stack>
<p className={styles.usage}>{t("unlimited_usage")}</p>
</div>
)}
</Stack>
</div>
</Grid>
))}
</Grid>
Expand Down
7 changes: 7 additions & 0 deletions src/components/talk-modal/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@
flex-direction: row;
justify-content: space-between;
}

.input {
color: $color-grey-2;
font-size: 16px;
line-height: 30px;
padding: 12px;
}
7 changes: 1 addition & 6 deletions src/components/talk-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,19 +228,14 @@ const TalkModal = ({
}}
>
<Input
className={styles.input}
disableUnderline
disabled={!inputs.Other}
fullWidth
name="specify"
onInput={handleInputChange}
placeholder={t("item_5")}
ref={inputRef}
sx={{
color: "#878787",
fontSize: "16px",
lineHeight: "30px",
p: "12px",
}}
value={inputs.specify}
/>
</ListItem>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function getServerSideProps(context: {
);

formattedTags = removeInternalTags(tags).map((tag) => Tag.fromJson(tag));
meta = posts.meta;
({ meta } = posts);
} catch (err) {
error = true;
// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion src/screens/about/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ $card-desc-shadow:
}

.tr1 {
color: #ee3131;
color: $color-red-unnamed;
display: inline;
font-size: 40px;
font-weight: 590;
Expand Down
4 changes: 2 additions & 2 deletions src/screens/contact/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $form-shadow:
padding-top: 0;

&:global(.Mui-checked) {
color: #ee3131;
color: $color-red-unnamed;
}
}

Expand Down Expand Up @@ -119,7 +119,7 @@ $form-shadow:
padding-top: 0;

&:global(.Mui-checked) {
color: #ee3131;
color: $color-red-unnamed;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ $card-shadow:
border: 8px solid #fff !important;
border-radius: 50%;
}

@include down-tablet {
display: none;
}
}

.post {
Expand Down Expand Up @@ -147,6 +151,8 @@ $card-shadow:
padding-left: spacing(2);

@include down-laptop {
margin-right: spacing(2);
margin-top: spacing(2);
padding-left: spacing(1);
}
}
Expand Down
25 changes: 4 additions & 21 deletions src/screens/products/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}

.tr1 {
color: #ee3131;
color: $color-red-unnamed;
text-shadow: 0 0 20px #fff;

@include down-laptop {
Expand Down Expand Up @@ -144,8 +144,9 @@
}
}

.tr3 {
color: #ee3131;
.tr3,
.tr5 {
color: $color-red-unnamed;
display: inline;
text-shadow: 0 0 20px #fff;

Expand Down Expand Up @@ -254,24 +255,6 @@
}
}

.tr5 {
color: #ee3131;
display: inline;
text-shadow: 0 0 20px #fff;

@include down-laptop {
font-size: 24px;
font-weight: 700;
margin-bottom: 16px;
}

@include up-laptop {
font-size: 40px;
font-weight: 590;
margin-bottom: 40px;
}
}

.businessesStack {
align-items: center;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ body .listItem {

body .paper {
backdrop-filter: blur(24px);
background-color: rgba(2, 38, 225, 0.9);
border-radius: spacing(1.5);
margin: spacing(2) 0;
}

body .poper {
body .popper {
z-index: 2001 !important;

:global(.MuiAutocomplete-listbox) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ const SearchBar = ({ sortedNetworks }: Props) => {
);

const RenderInput: StyledAutocompleteProps["renderInput"] = useCallback(
({ className, InputProps, ...params }) => (
({ InputProps, ...params }) => (
<TextField
{...params}
// eslint-disable-next-line react-hooks/rules-of-hooks
InputProps={useSearch(InputProps)}
className={[styles.textField, className || ""].join(" ")}
className={styles.textField}
placeholder={t("searchNetwork")}
/>
),
Expand Down
Loading

0 comments on commit 6328918

Please sign in to comment.