Skip to content

Commit

Permalink
Improve MS Dashboard (#1346)
Browse files Browse the repository at this point in the history
* Add Minimal Ms Redesign

* Add redesign V2

* clean-index

* polish integration with designer feedback

* Change banner

* fix robot api test

* fix dusa wave

* add translation

* review changes
  • Loading branch information
pivilartisant authored Apr 22, 2024
1 parent 89f8088 commit e9f40f0
Show file tree
Hide file tree
Showing 21 changed files with 478 additions and 149 deletions.
6 changes: 3 additions & 3 deletions api/test/robot_tests/front_ends/front_ends.robot
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ Suite Teardown Close All Browsers
*** Test Cases ***
GET /
Open Massa Station Page ${API_URL}/
Wait Until Page Contains Decentralization made easy 10
Wait Until Page Contains Securely explore Massa's blockchain universe 10

GET /web/
Open Massa Station Page ${API_URL}/web/
Wait Until Page Contains Decentralization made easy 10
Wait Until Page Contains Securely explore Massa's blockchain universe 10

GET /web/index
Open Massa Station Page ${API_URL}/web/index
Wait Until Page Contains Decentralization made easy 10
Wait Until Page Contains Securely explore Massa's blockchain universe 10
31 changes: 28 additions & 3 deletions web/massastation/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 web/massastation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"axios": "^1.4.0",
"dot-object": "^2.1.4",
"esbuild": "0.17.19",
"framer-motion": "^11.1.5",
"jszip": "^3.10.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
9 changes: 9 additions & 0 deletions web/massastation/src/assets/dashboard/BridgeOutline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions web/massastation/src/assets/dashboard/DusaWave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions web/massastation/src/assets/dashboard/Explorer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions web/massastation/src/assets/dashboard/Foundation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions web/massastation/src/assets/dashboard/MassaLabs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions web/massastation/src/assets/dashboard/MassaNodes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions web/massastation/src/assets/dashboard/PurrfectCat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions web/massastation/src/assets/dashboard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './DusaWave.svg';
export * from './FoundationBis.svg';
export * from './BridgeOutline.svg';
export * from './MassaLabs.svg';
export * from './DusaWave.svg';
export * from './Explorer.svg';
76 changes: 54 additions & 22 deletions web/massastation/src/assets/wallet/walletActive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion web/massastation/src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"link": "Go back to the Welcome page!"
},
"index": {
"title-banner": "Decentralization made easy",
"title-banner": "Securely explore Massa's blockchain universe",
"buttons": {
"search": "Search Massa ecosystem",
"explore": "Explore module store"
Expand All @@ -36,5 +36,21 @@
"placeholder": {
"teaser-banner": "A new way to use web is coming",
"teaser-web-on-chain": "We are crafting a new era for our web on-chain feature..."
},
"dashboard": {
"bridge-desc": "Bridge ERC-20 tokens from EVM chains to Massa and vice versa!",
"explorer-desc": "Search through real-time and historical records on Massa blockchain.",
"foundation-desc": "Learn about Massa ecosystem and initiatives.",
"massalabs-desc": "Unique Lab supporting Massa ecosystem and creating innovative solutions.",
"purrfect-desc": "Create, buy & sell NFTs on the Massa blockchain.",
"dusa-desc": "Fully decentralized exchange protocol."
},
"modules": {
"bridge": "Massa Bridge",
"explorer": "Massa Explorer",
"foundation": "Massa Foundation",
"massalabs": "Massa Labs",
"purrfect": "Purrfect Universe",
"dusa": "Dusa"
}
}
26 changes: 26 additions & 0 deletions web/massastation/src/pages/Index/Dashboard/Bridge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { RedirectTile } from '@massalabs/react-ui-kit';
import bridgeOutline from '../../../assets/dashboard/BridgeOutline.svg';
import { motion } from 'framer-motion';
import Intl from '@/i18n/i18n';

export function Bridge() {
return (
<motion.div className="h-full" whileHover={{ scale: 1.05 }}>
<RedirectTile
url="https://bridge.massa.net"
size="cs"
customSize="h-full"
style={{
backgroundImage: `url(${bridgeOutline})`,
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
}}
>
<div className="relative top-10 pl-2 h-fit flex flex-col gap-4 justify-between">
<p className="mas-subtitle">{Intl.t('modules.bridge')}</p>
<p>{Intl.t('dashboard.bridge-desc')}</p>
</div>
</RedirectTile>
</motion.div>
);
}
Loading

0 comments on commit e9f40f0

Please sign in to comment.