Skip to content

Commit 2a5e6a5

Browse files
committed
chore(site): update home page
1 parent bd68936 commit 2a5e6a5

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/site/src/app/routes/home/Home.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import '~rfs/scss';
22

33
.app-home {
4+
padding: 20px;
45
position: absolute;
56
left: 0;
67
bottom: 0;
@@ -12,8 +13,8 @@
1213
}
1314

1415
.app-home__img {
16+
height: 240px;
1517
max-width: 100%;
16-
max-height: 240px;
1718
margin: 60px auto 0 auto;
1819
}
1920

@@ -56,7 +57,7 @@
5657
justify-content: space-around;
5758
padding: 60px 20px;
5859
color: #fff;
59-
margin: 40px 0 0 0;
60+
margin: 40px -20px -20px -20px;
6061

6162
a {
6263
font: inherit;

packages/site/src/app/routes/home/Home.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useEffect } from 'react';
12
import { useTranslation } from 'react-i18next';
23
import { Link } from 'react-router-dom';
34

@@ -9,6 +10,10 @@ import './Home.scss';
910
export function Home() {
1011
const { t } = useTranslation();
1112

13+
useEffect(() => {
14+
document.title = 'React DevUI';
15+
}, []);
16+
1217
return (
1318
<main className="app-home">
1419
<img className="app-home__img" src="/assets/imgs/home-logo.svg" alt="logo" />

0 commit comments

Comments
 (0)