Skip to content

Commit 298de7e

Browse files
authored
feat(oracle): landing redesign (cybercongress#1034)
2 parents 28d36cf + 90e62bb commit 298de7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+729
-745
lines changed

src/components/Carousel/Carousel.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type CarouselProps = {
2525
displaySlide?: number;
2626
color?: Color;
2727
noAnimation?: boolean;
28+
onChange: (index: number) => void;
2829
};
2930

3031
function Carousel({

src/components/actionBar/Discord/Discord.tsx

-16
This file was deleted.

src/components/actionBar/Telegram.tsx

-116
This file was deleted.

src/components/actionBar/Twitter/Twitter.module.scss

-14
This file was deleted.

src/components/containerGradient/DisplayTitle/DisplayTitle.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.displayTitle {
1313
min-height: 70px;
1414
padding: 10px 0;
15-
font-size: 18px;
15+
font-size: 20px;
1616
display: flex;
1717
align-items: center;
1818

src/containers/application/AppMenu.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import portal from '../../image/space-pussy.svg';
1313
import oracle from '../../image/temple/oracle.png';
1414
import warp from '../../image/temple/warp.png';
1515
import hub from '../../image/temple/hub.png';
16+
import congress from './images/congress.png';
17+
1618
import { routes } from '../../routes';
1719

1820
const itemsMenu = () => {
@@ -78,6 +80,7 @@ const itemsMenu = () => {
7880
],
7981
},
8082
{ name: 'Senate', icon: senate, to: '/senate', subItems: [] },
83+
{ name: 'About', icon: congress, to: routes.social.path, subItems: [] },
8184
// {
8285
// name: 'Help',
8386
// icon: zhdun,

src/containers/application/Header/Commander/Commander.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ function Commander() {
5858
e.relatedTarget.click();
5959
}
6060

61-
dispatch(setFocus(false));
61+
// timeout for mobile focus, working different
62+
setTimeout(() => {
63+
dispatch(setFocus(false));
64+
}, 1);
6265
}
6366

6467
commanderRef.current.addEventListener('focus', onFocus);
1.06 KB
Loading

src/containers/application/styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
background: #000000;
77
color: #fff;
88
transition: 0.3s;
9-
z-index: 3;
9+
z-index: 4;
1010
opacity: 0.9;
1111
box-shadow: 1px 0 20px 2px #000;
1212
}

src/containers/temple/hooks/useGetGraphStats.js src/containers/temple/hooks/useGetGraphStats.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import BigNumber from 'bignumber.js';
44
import { useQueryClient } from 'src/contexts/queryClient';
55

66
const keyQuery = 'graphStats';
7-
function useGetGraphStats() {
7+
8+
function useGetGraphStats(refetchInterval: number | undefined = 1000 * 60 * 3) {
89
const queryClient = useQueryClient();
910
const [changeTimeAmount, setChangeTimeAmount] = useState({
1011
particles: 0,
@@ -54,7 +55,7 @@ function useGetGraphStats() {
5455
return response;
5556
},
5657
enabled: Boolean(queryClient),
57-
refetchInterval: 1000 * 60 * 3,
58+
refetchInterval,
5859
});
5960

6061
useEffect(() => {

src/containers/temple/hooks/useGetNegentropy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getNegentropy = async () => {
1919

2020
const keyQuery = 'negentropy';
2121

22-
function useGetNegentropy() {
22+
function useGetNegentropy(refetchInterval: number | undefined = 1000 * 60 * 3) {
2323
const [changeTimeAmount, setChangeTimeAmount] = useState({
2424
amount: 0,
2525
time: 0,
@@ -43,7 +43,7 @@ function useGetNegentropy() {
4343

4444
return response;
4545
},
46-
refetchInterval: 1000 * 60 * 3,
46+
refetchInterval,
4747
});
4848

4949
useEffect(() => {

src/image/enlarge.svg

+19
Loading

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ root.render(
129129
<title>cyb: your immortal robot for the great web</title>
130130
</Helmet>
131131
<AppRouter />
132-
<ReactQueryDevtools />
132+
<ReactQueryDevtools position="bottom-right" />
133133
</>
134134
</Providers>
135135
);

src/layouts/Main.module.scss

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
.wrapper {
2-
@media (max-width: 480px) {
3-
footer {
4-
display: none;
2+
footer {
3+
a {
4+
position: fixed;
5+
z-index: 2;
6+
right: 5vw;
7+
bottom: 35px;
8+
display: flex;
9+
align-items: center;
510
}
611
}
712
}

src/layouts/Main.tsx

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import { useEffect, useMemo, useState } from 'react';
2-
import { Telegram } from 'src/components/actionBar/Telegram';
3-
import { GitHub } from 'src/components/actionBar/GitHub';
2+
43
import { localStorageKeys } from 'src/constants/localStorageKeys';
54
import AppMenu from 'src/containers/application/AppMenu';
65
import AppSideBar from 'src/containers/application/AppSideBar';
76
import Header from 'src/containers/application/Header/Header';
87
import useSetActiveAddress from 'src/hooks/useSetActiveAddress';
9-
import Discord from 'src/components/actionBar/Discord/Discord';
10-
import Twitter from 'src/components/actionBar/Twitter/Twitter';
118
import { useAppSelector } from 'src/redux/hooks';
129
import styles from './Main.module.scss';
10+
import { routes } from 'src/routes';
11+
import { Link } from 'react-router-dom';
1312

1413
function MainLayout({ children }: { children: JSX.Element }) {
1514
const pocket = useAppSelector(({ pocket }) => pocket);
@@ -64,10 +63,7 @@ function MainLayout({ children }: { children: JSX.Element }) {
6463
{children}
6564

6665
<footer>
67-
<Telegram />
68-
<Discord />
69-
<Twitter />
70-
<GitHub />
66+
<Link to={routes.social.path}>contacts</Link>
7167
</footer>
7268
</div>
7369
);

src/pages/Brain/Brain.module.scss

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.wrapper {
2+
padding: 0 50px;
3+
display: flex;
4+
justify-content: center;
5+
}
6+
7+
.link {
8+
z-index: 1;
9+
font-size: 30px;
10+
position: relative;
11+
}

src/pages/Brain/Brain.tsx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import CyberlinksGraphContainer from 'src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer';
2+
import { LinkWindow } from 'src/components/link/link';
3+
import styles from './Brain.module.scss';
4+
5+
function Brain() {
6+
return (
7+
<div className={styles.wrapper}>
8+
<LinkWindow
9+
className={styles.link}
10+
to="https://cosmograph.app/run/?data=https://gateway.ipfs.cybernode.ai/ipfs/QmQ3snofqRrDhpANRCwZrCPG7rAvABrkL9KHreMtmYDiCL"
11+
>
12+
Full Graph 🔗
13+
</LinkWindow>
14+
<CyberlinksGraphContainer toPortal />
15+
</div>
16+
);
17+
}
18+
19+
export default Brain;

0 commit comments

Comments
 (0)