Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Oct 4, 2023
1 parent 7cebed1 commit 3bb6716
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 9 deletions.
Binary file added ui/src/assets/card_b2g.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/src/assets/card_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ui/src/assets/fonts/Inter-Regular.woff
Binary file not shown.
Binary file removed ui/src/assets/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file removed ui/src/assets/fonts/Inter-SemiBold.woff
Binary file not shown.
Binary file removed ui/src/assets/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file added ui/src/assets/fonts/PixelifySans-Bold.ttf
Binary file not shown.
Binary file added ui/src/assets/fonts/PixelifySans-Medium.ttf
Binary file not shown.
Binary file added ui/src/assets/fonts/PixelifySans-Regular.ttf
Binary file not shown.
Binary file added ui/src/assets/fonts/PixelifySans-SemiBold.ttf
Binary file not shown.
4 changes: 4 additions & 0 deletions ui/src/assets/grid_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions ui/src/assets/grid_light.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/lib/utils/hooks/useTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const useMode = () => {
colorPrimaryHover: "var(--bt-color-hover)",
colorPrimaryTextHover: "var(--bt-color-hover)",
colorLinkHover: "var(--bt-color-hover)",
fontFamily: "Inconsolata",
},

components: {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Converter/CodeFormatter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CodeFormatter: React.FC = () => {
const [inputCode, setInputCode] = useState("");
const [formattedCode, setFormattedCode] = useState("");
const [indentationLevel, setIndentationLevel] = useState(
INDENTATION_LEVEL[2].value
INDENTATION_LEVEL[3].value
);
const [inputType, setInputType] = useState(INPUT_TYPE[3].value);

Expand Down
4 changes: 4 additions & 0 deletions ui/src/pages/Home/Home.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.home {
padding: 100px 10% 64px 10%;
min-height: calc(100dvh - 272px);
animation: var(--bt-animation-moveBackground);

&__container {
display: flex;
Expand All @@ -22,6 +23,7 @@
gap: var(--bt-size-10);
&_title {
text-align: left;
font-family: "Pixelify Sans", cursive;
}
&_paragraph {
text-align: left;
Expand All @@ -37,6 +39,8 @@
&__features {
display: flex;
align-items: center;
border-radius: 8px;
z-index: 100;

&_card {
height: 100%;
Expand Down
7 changes: 5 additions & 2 deletions ui/src/pages/Home/components/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from "react";
import { Button, Card, Col, Row, Space, Typography } from "antd";
import { Card, Col, Row, Space, Typography } from "antd";
import Icon from "components/General/Icon";
import { FEATURES } from "pages/Home/utils/constants";
import style from "pages/Home/Home.module.scss";
import { Link } from "react-router-dom";
import useModal from "lib/utils/hooks/useModal";
import { ResponsiveButton } from "components/General/FormComponents";

const Features: React.FC = () => {
const { handleModalOpen } = useModal();
Expand All @@ -22,7 +23,9 @@ const Features: React.FC = () => {
streamline your application development process
</Typography.Paragraph>

<Button onClick={handleModalOpen}>Get Started</Button>
<ResponsiveButton onClick={handleModalOpen}>
Get Started
</ResponsiveButton>
</Space>
</Col>

Expand Down
10 changes: 10 additions & 0 deletions ui/src/styles/animations.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
:where(html) {
--animation-fade-in: background-color 0.3s ease;
--bt-animation-moveBackground: moveBackground 100s linear infinite;
}

@keyframes moveBackground {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 0;
}
}
13 changes: 10 additions & 3 deletions ui/src/styles/typography.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
:where(html) {
@font-face {
font-family: "Inter";
src: url("./src/assets/fonts/Inter-Regular.woff2") format("truetype"),
url("./src/assets/fonts/Inter-Regular.woff") format("truetype");
font-family: "Pixelify Sans";
src: url("./src/assets/fonts/PixelifySans-Regular.ttf")
format("truetype"),
url("./src/assets/fonts/PixelifySans-Regular.ttf")
format("truetype");
font-weight: 400;
font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap");

--font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
Cantarell, Noto Sans, sans-serif;

--font-pixelify-sans: "Pixelify Sans", system-ui, -apple-system, Segoe UI,
Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

0 comments on commit 3bb6716

Please sign in to comment.