Skip to content

Commit

Permalink
update ui layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Jun 25, 2024
1 parent 5ed7284 commit 229e79c
Show file tree
Hide file tree
Showing 45 changed files with 390 additions and 365 deletions.
6 changes: 6 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@

<body>
<div id="root"></div>
<script
async
src="https://ackee.frogfishsolutions.io/tracker.js"
data-ackee-server="https://ackee.frogfishsolutions.io"
data-ackee-domain-id="ed1ec8ed-c962-4a59-a4e8-76914e157070"
></script>
</body>
</html>
20 changes: 15 additions & 5 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
import { lazy, Suspense } from 'react';

import { Loader } from 'components/atoms/Loader';
import { DOM } from 'helpers/config';
import Navigation from 'navigation';
import { Routes } from 'routes';

import * as S from './styles';

const Routes = lazy(() =>
import(`../routes/Routes.tsx` as any).then((module) => ({
default: module.default,
}))
);

export default function App() {
return (
<>
<div id={DOM.loader} />
<div id={DOM.notification} />
<div id={DOM.overlay} />
<Navigation />
<S.View>
<Routes />
</S.View>
<Suspense fallback={<Loader />}>
<Navigation />
<S.View className={'scroll-wrapper'}>
<Routes />
</S.View>
</Suspense>
</>
);
}
29 changes: 22 additions & 7 deletions src/app/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const GlobalStyle = createGlobalStyle`
body {
line-height: 1;
background: ${(props) => props.theme.colors.view.background};
background: ${(props) => props.theme.colors.container.alt2.background};
}
ol, ul {
Expand Down Expand Up @@ -184,7 +184,7 @@ export const GlobalStyle = createGlobalStyle`
.max-view-wrapper {
width: 100%;
max-width: ${STYLING.cutoffs.max};
max-width: ${STYLING.cutoffs.max};
margin: 0 auto;
}
Expand Down Expand Up @@ -222,7 +222,6 @@ export const GlobalStyle = createGlobalStyle`
.scroll-wrapper {
overflow: auto;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
::-webkit-scrollbar {
width: 8px;
Expand All @@ -247,13 +246,29 @@ export const GlobalStyle = createGlobalStyle`
`;

export const View = styled.div`
min-height: calc(100vh - ${STYLING.dimensions.nav.headerHeight});
width: calc(100vw - ${STYLING.dimensions.nav.panelWidthClosed} - 15.75px);
margin: ${STYLING.dimensions.nav.headerHeight} 0 0 ${STYLING.dimensions.nav.panelWidthClosed};
padding: 20px;
height: calc(100vh - ${STYLING.dimensions.nav.headerHeight} - 10px);
width: calc(100vw - ${STYLING.dimensions.nav.panelWidthClosed} - 20px);
position: absolute;
top: ${STYLING.dimensions.nav.headerHeight};
left: calc(${STYLING.dimensions.nav.panelWidthClosed} + 10px);
padding: 25px 10px 25px 25px;
overflow: auto;
border: 1px solid ${(props) => props.theme.colors.border.alt4};
background: ${(props) => props.theme.colors.view.background};
border-radius: ${STYLING.dimensions.radius.alt1};
animation: ${open} ${fadeIn1};
@media (max-width: ${STYLING.cutoffs.initial}) {
height: fit-content;
width: 100%;
position: relative;
top: 0;
left: 0;
padding: 20px;
margin: ${STYLING.dimensions.nav.headerHeight} 0 0 0;
border-top-left-radius: ${STYLING.dimensions.radius.alt1};
border-top-right-radius: ${STYLING.dimensions.radius.alt1};
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
`;

Expand Down
1 change: 1 addition & 0 deletions src/assets/dark.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/assets/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/assets/landing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/assets/logo.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/assets/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions src/assets/u.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/assets/upload.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/assets/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/components/atoms/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const Primary = styled.button<{
}
svg {
fill: ${(props) => props.theme.colors.font.light1} !important;
color: ${(props) => props.theme.colors.font.light1} !important;
}
}
&:focus {
Expand All @@ -78,6 +79,7 @@ export const Primary = styled.button<{
}
svg {
fill: ${(props) => props.theme.colors.font.light1} !important;
color: ${(props) => props.theme.colors.font.light1} !important;
}
}
&:disabled {
Expand All @@ -86,6 +88,10 @@ export const Primary = styled.button<{
span {
color: ${(props) => props.theme.colors.button.primary.disabled.color} !important;
}
svg {
fill: ${(props) => props.theme.colors.button.primary.disabled.color} !important;
color: ${(props) => props.theme.colors.button.primary.disabled.color} !important;
}
}
span {
Expand Down Expand Up @@ -115,6 +121,12 @@ export const IconPrimary = styled.div<{
: props.active
? props.theme.colors.button.primary.active.color
: props.theme.colors.button.primary.color};
color: ${(props) =>
props.disabled
? props.theme.colors.button.primary.disabled.color
: props.active
? props.theme.colors.button.primary.active.color
: props.theme.colors.button.primary.color};
}
`;

Expand Down Expand Up @@ -160,6 +172,12 @@ export const IconAlt1 = styled(IconPrimary)`
: props.active
? props.theme.colors.button.alt1.active.color
: props.theme.colors.button.alt1.color};
color: ${(props) =>
props.disabled
? props.theme.colors.button.alt1.disabled.color
: props.active
? props.theme.colors.button.alt1.active.color
: props.theme.colors.button.alt1.color};
}
`;

Expand Down Expand Up @@ -210,5 +228,11 @@ export const IconAlt2 = styled(IconAlt1)`
: props.active
? props.theme.colors.button.alt2.active.color
: props.theme.colors.button.alt2.color};
color: ${(props) =>
props.disabled
? props.theme.colors.button.alt2.disabled.color
: props.active
? props.theme.colors.button.alt2.active.color
: props.theme.colors.button.alt2.color};
}
`;
2 changes: 0 additions & 2 deletions src/components/organisms/AssetsTable/AssetsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ export default function AssetsTable(props: { useIdAction: boolean }) {
} else return null;
}

console.log(loading);

function getAssets() {
if (!arProvider.walletAddress) {
return (
Expand Down
10 changes: 6 additions & 4 deletions src/helpers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import checkmark from 'assets/checkmark.svg';
import close from 'assets/close.svg';
import comments from 'assets/comments.svg';
import copy from 'assets/copy.svg';
import dark from 'assets/dark.svg';
import details from 'assets/details.svg';
import docs from 'assets/docs.svg';
import download from 'assets/download.svg';
Expand All @@ -19,6 +20,7 @@ import fullScreen from 'assets/fullscreen.svg';
import image from 'assets/image.svg';
import info from 'assets/info.svg';
import landing from 'assets/landing.svg';
import light from 'assets/light.svg';
import link from 'assets/link.svg';
import logo from 'assets/logo.svg';
import media from 'assets/media.svg';
Expand All @@ -32,7 +34,6 @@ import search from 'assets/search.svg';
import share from 'assets/share.svg';
import stamp from 'assets/stamp.svg';
import theme from 'assets/theme.svg';
import u from 'assets/u.svg';
import upload from 'assets/upload.svg';
import uploadGraphic from 'assets/upload-graphic.riv';
import user from 'assets/user.svg';
Expand Down Expand Up @@ -76,6 +77,8 @@ export const ASSETS = {
details: details,
docs: docs,
download: download,
dark: dark,
light: light,
following: following,
fullScreen: fullScreen,
image: image,
Expand All @@ -93,7 +96,6 @@ export const ASSETS = {
share: share,
stamp: stamp,
theme: theme,
u: u,
upload: upload,
uploadGraphic: uploadGraphic,
user: user,
Expand Down Expand Up @@ -231,8 +233,8 @@ export const STYLING = {
max: '47.5px',
},
nav: {
headerHeight: '65px',
panelWidthClosed: '85px',
headerHeight: '70px',
panelWidthClosed: '70px',
panelWidthOpen: '250px',
},
radius: {
Expand Down
1 change: 1 addition & 0 deletions src/helpers/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const language = {
profileExistsInfo: `It looks like you already have an account ! You can visit your profile directly by clicking View profile below.`,
profileUpdated: `Profile updated`,
profileUpdatedInfo: `Your profile has been updated.`,
readDocs: `Read docs`,
recipient: `Recipient`,
removeAvatar: `Remove avatar`,
removeBanner: `Remove banner`,
Expand Down
8 changes: 4 additions & 4 deletions src/helpers/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export const lightTheme = {
negative1: '#DF4657',
negative2: '#EF6C82',
neutral1: '#FFFFFF',
neutral2: '#F1F1F1',
neutral3: '#8D8D8D',
neutral2: '#f1f4fa',
neutral3: '#90949C',
neutral4: '#C9C9C9',
neutral5: '#CCCCCC',
neutral6: '#F7F7F7',
neutral7: '#FAFAFA',
neutral8: '#B1B1B1',
neutral8: '#C8CACF',
neutralA1: '#0A0A0A',
neutralA2: '#606060',
neutralA3: '#5C5C5C',
Expand Down Expand Up @@ -49,7 +49,7 @@ export const darkTheme = {
neutralA1: '#FFFFFF',
neutralA2: '#F1F1F1',
neutralA3: '#E0E0E0',
neutralA4: '#C9C9C9',
neutralA4: '#D2D2D2',
neutralA5: '#F7F7F7',
neutralA6: '#FAFAFA',
overlay1: 'rgba(0, 0, 0, 0.5)',
Expand Down
Loading

0 comments on commit 229e79c

Please sign in to comment.