Skip to content

Commit 94ea825

Browse files
committed
fix based on lighthouse report
Former-commit-id: 02d5ce0
1 parent c716bba commit 94ea825

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

ui/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Allow: /

ui/src/components/Layouts/Footer/index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import bt_dark from "assets/Footer/bt_dark.webp";
88
import { openLink } from "utils/helper-functions/string";
99
import useMode from "hooks/useMode";
1010

11+
const { Text } = Typography;
12+
1113
const Footer: React.FC = () => {
1214
const { isDarkMode } = useMode();
1315

@@ -38,6 +40,7 @@ const Footer: React.FC = () => {
3840
key="Github"
3941
type="default"
4042
shape="circle"
43+
aria-label="Github Icon"
4144
icon={<Icon name="Github" />}
4245
onClick={() =>
4346
openLink("https://github.com/lifeparticle/binarytree")
@@ -49,7 +52,7 @@ const Footer: React.FC = () => {
4952
</Space>
5053

5154
<Space direction="vertical" className={style.footer__right}>
52-
<Typography.Title level={4}>Product</Typography.Title>
55+
<Text strong>Product</Text>
5356
<ul className={style.footer__list}>
5457
<li>
5558
<a
@@ -64,7 +67,7 @@ const Footer: React.FC = () => {
6467
</Space>
6568

6669
<Space direction="vertical" className={style.footer__right}>
67-
<Typography.Title level={4}>Developers</Typography.Title>
70+
<Text strong>Developers</Text>
6871
<ul className={style.footer__list}>
6972
<li>
7073
<a
@@ -88,7 +91,7 @@ const Footer: React.FC = () => {
8891
</Space>
8992

9093
<Space direction="vertical" className={style.footer__right}>
91-
<Typography.Title level={4}>Company</Typography.Title>
94+
<Text strong>Company</Text>
9295
<ul className={style.footer__list}>
9396
<li>
9497
<Link to={"/about"}>About</Link>
@@ -108,7 +111,7 @@ const Footer: React.FC = () => {
108111
</Space>
109112

110113
<Space direction="vertical" className={style.footer__right}>
111-
<Typography.Title level={4}>Legal</Typography.Title>
114+
<Text strong>Legal</Text>
112115
<ul className={style.footer__list}>
113116
<li>
114117
<Link to={"/terms"}>Terms</Link>

ui/src/pages/Home/Home.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ $home-z-index-100: 100;
2121
align-items: center;
2222
text-align: center;
2323
gap: var(--bt-size-50);
24+
25+
&_paragraph {
26+
font-size: larger;
27+
}
2428
}
2529

2630
&__features {

ui/src/pages/Home/components/Features.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ import { Card, Space, Typography, Image } from "antd";
33
import { FEATURES } from "pages/Home/utils/constants";
44
import style from "pages/Home/Home.module.scss";
55
import { Link } from "react-router-dom";
6-
76
import features from "assets/Home/features.svg";
87
import { Icon } from "components/General";
98

9+
const { Text } = Typography;
10+
1011
const Features: React.FC = () => {
1112
return (
1213
<div className={style.home__features}>
1314
<div className={style.home__features_cover}>
1415
<div>
15-
<Typography.Title level={3}>
16-
BinaryTree comes packed with some awesome features
17-
</Typography.Title>
18-
<Typography.Title level={4}>
19-
For modern app development, tools like BinaryTree can
16+
<Text strong>
17+
BinaryTree comes packed with some awesome features. For
18+
modern app development, tools like BinaryTree can
2019
significantly enhance and streamline your workflow.
21-
</Typography.Title>
20+
</Text>
2221
</div>
2322
<Image
2423
src={features}
@@ -44,12 +43,8 @@ const Features: React.FC = () => {
4443
<Space direction="vertical">
4544
<Icon name={feature.icon} size={40} />
4645
<Space direction="vertical" size="middle">
47-
<Typography.Title level={4}>
48-
{feature.title}
49-
</Typography.Title>
50-
<Typography.Text>
51-
{feature.description}
52-
</Typography.Text>
46+
<Text strong>{feature.title}</Text>
47+
<Text>{feature.description}</Text>
5348
</Space>
5449
</Space>
5550
</Card>

ui/src/pages/Home/components/Hero.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { ResponsiveButton } from "components/General";
77
import { openLink } from "utils/helper-functions/string";
88
import useModal from "hooks/useModal";
99

10+
const { Text } = Typography;
11+
1012
const { Title } = Typography;
1113
const Hero: React.FC = () => {
1214
const { handleModalOpen } = useModal();
@@ -24,7 +26,7 @@ const Hero: React.FC = () => {
2426
maxHeight: "40dvh",
2527
}}
2628
/>
27-
<Title className={style.home__hero_text_paragraph} level={3}>
29+
<Text className={style.home__hero_paragraph} strong keyboard>
2830
At binarytree.dev, we provide an array of developer productivity
2931
tools designed to help you save time. With an{" "}
3032
<a
@@ -35,7 +37,7 @@ const Hero: React.FC = () => {
3537
</a>{" "}
3638
(currently <b>{FEATURE_DATA.length}</b>), our platform is
3739
constantly evolving to meet the needs of developers like you
38-
</Title>
40+
</Text>
3941

4042
<Space direction="horizontal">
4143
<ResponsiveButton onClick={handleModalOpen} type="primary">

0 commit comments

Comments
 (0)