Skip to content

Commit

Permalink
fix: add demo website to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wendychaung committed May 31, 2024
1 parent f3c307f commit acdc3cd
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-lazyload": "^3.2.1",
"react-router-dom": "^6.22.3",
"styled-components": "^6.1.8"
},
Expand Down
18 changes: 16 additions & 2 deletions src/components/documents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ const UlBox = styled.ul`
text-align: center;
margin-top: 30px;
}
.flexLine{
display: flex;
align-items: flex-end;
gap:20px;
a{
margin-bottom: 10px;
cursor: pointer;
text-transform: capitalize;
}
}
`

const FlexBox = styled.ul`
Expand Down Expand Up @@ -232,10 +242,14 @@ export default function Documents() {
browsers.
</div>
</div>
<div className="iconBox">
<i className="flaticon-081-electricity icon"></i>
<div className="flexLine">
<div className="iconBox">
<i className="flaticon-081-electricity icon"></i>
</div>
<a href="https://demo-app.reiwallet.io/" target="_blank" rel="noreferrer">demo-app.reiwallet.io</a>
</div>


</li>
<li>
<div>
Expand Down
10 changes: 6 additions & 4 deletions src/components/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import Twitter from "../assets/images/Twitter.png";
import Discord from "../assets/images/Discord.png";
import Telegram from "../assets/images/Telegram.png";
import Medium from "../assets/images/Medium.png";
import BgVideo from "../assets/images/bg.mp4";
// import BgVideo from "../assets/images/bg.mp4";
import BgImg from "../assets/images/bg-jpg.png";
import React, { lazy } from 'react';
const BgVideo = lazy(() => import('../assets/images/bg.mp4'));

const Box = styled.div`
display: flex;
Expand Down Expand Up @@ -111,10 +113,10 @@ const BtnGroup = styled.div`

export default function Home(){
return <Box>
<video autoPlay muted loop poster={BgImg} id="myVideo" preload="none">
<source src={BgVideo} type="video/mp4"/>
</video>

<video autoPlay muted loop poster={BgImg} id="myVideo">
<source src={BgVideo} type="video/mp4"/>
</video>
<div className="inner">
<BgBox>
<TitleBox>REI Wallet </TitleBox>
Expand Down
2 changes: 1 addition & 1 deletion src/router/router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import HomePage from "../pages/home.jsx";
function RouterLink() {
return (
<Routes>
<Route path="/" element={<Navigate to="/home" />}/>
<Route path="/" element={<Navigate to="/home#home" />}/>
<Route path="/privacy" element={<Privacy />}/>
<Route path="/home" element={<HomePage />}/>
</Routes>
Expand Down

0 comments on commit acdc3cd

Please sign in to comment.