Skip to content

Commit

Permalink
feat(oracle): landing redesign (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasein108 authored Dec 7, 2023
2 parents 28d36cf + 90e62bb commit 298de7e
Show file tree
Hide file tree
Showing 49 changed files with 729 additions and 745 deletions.
1 change: 1 addition & 0 deletions src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type CarouselProps = {
displaySlide?: number;
color?: Color;
noAnimation?: boolean;
onChange: (index: number) => void;
};

function Carousel({
Expand Down
16 changes: 0 additions & 16 deletions src/components/actionBar/Discord/Discord.tsx

This file was deleted.

116 changes: 0 additions & 116 deletions src/components/actionBar/Telegram.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/actionBar/Twitter/Twitter.module.scss

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.displayTitle {
min-height: 70px;
padding: 10px 0;
font-size: 18px;
font-size: 20px;
display: flex;
align-items: center;

Expand Down
3 changes: 3 additions & 0 deletions src/containers/application/AppMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import portal from '../../image/space-pussy.svg';
import oracle from '../../image/temple/oracle.png';
import warp from '../../image/temple/warp.png';
import hub from '../../image/temple/hub.png';
import congress from './images/congress.png';

import { routes } from '../../routes';

const itemsMenu = () => {
Expand Down Expand Up @@ -78,6 +80,7 @@ const itemsMenu = () => {
],
},
{ name: 'Senate', icon: senate, to: '/senate', subItems: [] },
{ name: 'About', icon: congress, to: routes.social.path, subItems: [] },
// {
// name: 'Help',
// icon: zhdun,
Expand Down
5 changes: 4 additions & 1 deletion src/containers/application/Header/Commander/Commander.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function Commander() {
e.relatedTarget.click();
}

dispatch(setFocus(false));
// timeout for mobile focus, working different
setTimeout(() => {
dispatch(setFocus(false));
}, 1);
}

commanderRef.current.addEventListener('focus', onFocus);
Expand Down
Binary file added src/containers/application/images/congress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/containers/application/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
background: #000000;
color: #fff;
transition: 0.3s;
z-index: 3;
z-index: 4;
opacity: 0.9;
box-shadow: 1px 0 20px 2px #000;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import BigNumber from 'bignumber.js';
import { useQueryClient } from 'src/contexts/queryClient';

const keyQuery = 'graphStats';
function useGetGraphStats() {

function useGetGraphStats(refetchInterval: number | undefined = 1000 * 60 * 3) {
const queryClient = useQueryClient();
const [changeTimeAmount, setChangeTimeAmount] = useState({
particles: 0,
Expand Down Expand Up @@ -54,7 +55,7 @@ function useGetGraphStats() {
return response;
},
enabled: Boolean(queryClient),
refetchInterval: 1000 * 60 * 3,
refetchInterval,
});

useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/containers/temple/hooks/useGetNegentropy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const getNegentropy = async () => {

const keyQuery = 'negentropy';

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

return response;
},
refetchInterval: 1000 * 60 * 3,
refetchInterval,
});

useEffect(() => {
Expand Down
19 changes: 19 additions & 0 deletions src/image/enlarge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ root.render(
<title>cyb: your immortal robot for the great web</title>
</Helmet>
<AppRouter />
<ReactQueryDevtools />
<ReactQueryDevtools position="bottom-right" />
</>
</Providers>
);
11 changes: 8 additions & 3 deletions src/layouts/Main.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.wrapper {
@media (max-width: 480px) {
footer {
display: none;
footer {
a {
position: fixed;
z-index: 2;
right: 5vw;
bottom: 35px;
display: flex;
align-items: center;
}
}
}
12 changes: 4 additions & 8 deletions src/layouts/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { useEffect, useMemo, useState } from 'react';
import { Telegram } from 'src/components/actionBar/Telegram';
import { GitHub } from 'src/components/actionBar/GitHub';

import { localStorageKeys } from 'src/constants/localStorageKeys';
import AppMenu from 'src/containers/application/AppMenu';
import AppSideBar from 'src/containers/application/AppSideBar';
import Header from 'src/containers/application/Header/Header';
import useSetActiveAddress from 'src/hooks/useSetActiveAddress';
import Discord from 'src/components/actionBar/Discord/Discord';
import Twitter from 'src/components/actionBar/Twitter/Twitter';
import { useAppSelector } from 'src/redux/hooks';
import styles from './Main.module.scss';
import { routes } from 'src/routes';
import { Link } from 'react-router-dom';

function MainLayout({ children }: { children: JSX.Element }) {
const pocket = useAppSelector(({ pocket }) => pocket);
Expand Down Expand Up @@ -64,10 +63,7 @@ function MainLayout({ children }: { children: JSX.Element }) {
{children}

<footer>
<Telegram />
<Discord />
<Twitter />
<GitHub />
<Link to={routes.social.path}>contacts</Link>
</footer>
</div>
);
Expand Down
11 changes: 11 additions & 0 deletions src/pages/Brain/Brain.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.wrapper {
padding: 0 50px;
display: flex;
justify-content: center;
}

.link {
z-index: 1;
font-size: 30px;
position: relative;
}
19 changes: 19 additions & 0 deletions src/pages/Brain/Brain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import CyberlinksGraphContainer from 'src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer';
import { LinkWindow } from 'src/components/link/link';
import styles from './Brain.module.scss';

function Brain() {
return (
<div className={styles.wrapper}>
<LinkWindow
className={styles.link}
to="https://cosmograph.app/run/?data=https://gateway.ipfs.cybernode.ai/ipfs/QmQ3snofqRrDhpANRCwZrCPG7rAvABrkL9KHreMtmYDiCL"
>
Full Graph 🔗
</LinkWindow>
<CyberlinksGraphContainer toPortal />
</div>
);
}

export default Brain;
Loading

0 comments on commit 298de7e

Please sign in to comment.