Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions MigrateNewDesign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[upgrade to tailwind v4]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

ADD `taillwind.css` file with all variables and IMPORT it in `initConfig.ts`
ADD DEFAULT VALUE FOR `theme` in `initConfig.ts`
UPDATE `globals.css` file with the tailwind v4 config

[
ADD LINKS CONSTANTS [`installExtensionsLinks.ts` in `localConstants`]
ADD DASHBOARD LINKS [`dashboardLinks.ts` in `localConstants`]
ADD BROWSER ENUM [`browser.enum.ts` in `localConstants`]

ADD ALL SVG ICONS IN ASSETS
ADD dark/light/vibe theme background images IN ASSETS
ADD `getDetectedBrowser.ts` file in `helpers`
]

IMPORT `Button`, `CopyButton` & `Trim` components from `sdk-dapp-ui`
UPDATE `Layout` component

# HOMEPAGE
UPDATE `Home` page

## NAVIGATION BAR:
-> change logo (made in CSS)
-> change styles for: Github & Notifications buttons, environment label, connect button
-> add theme switcher (with tooltip)

UPDATE `Header.tsx` file
UPDATE `Button` component
ADD `AddressComponent`, `Logo`, `Tooltip` components
ADD `ThemeTooltip` component
REMOVE `GithubButton.tsx`, `NotificationsButton.tsx`, `ConnectButton.tsx` files

## HERO SECTION:
-> update background image; it changes when the theme changes
-> update title & description
-> remove 'Send transaction' button - add 'Connect Wallet' + 'See Documentation' buttons
-> add theme switch buttons

ADD `HeroComponent.tsx` file

## HOW TO CONNECT SECTION:
-> new section - grid with the methods you can connect
-> create ConnectCard component that contains: icon, title, description, download link
-> for wallet extension add also image + supported browsers logos.

ADD `HowToConnectComponent.tsx` file
ADD `ConnectCard.tsx`, `ExtensionConnect.tsx` and `BrowserFrame.tsx` files


## FOOTER:
-> remove Disclaimer - add version and network build

UPDATE `Footer.tsx` file



--------------------

# DASHBOARD PAGE

UPDATE `Dashboard` page
ADD `DashboardHeader` & `LeftPanel` components
ADD `dashboard.types.ts` file
REMOVE `Account` from WIDGETS -> UPDATED version will be in `LeftPanel` component
UPDATE `Transactions` component from `Dashboard`
UPDATE `transactions.types.ts`
UPDATE `config`
ADD general `PingPongComponent` in components
UPDATE `PingPongAbi`, `PingPongRaw` & `PingPongService` components
UPDATE `OutputContainer` & `PingPongOutput` comp
UPDATE `Label` comp
UPDATE `Card` comp
UPDATE `SignMessage` comp
UPDATE `NativeAuth`, `MissingNativeAuthError` & `Username` comp
UPDATE `BatchTransactions` comp
UPDATE `TransactionOutput` & `TransactionsOutput` comp
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ const nextConfig = {
'utf-8-validate': 'utf-8-validate'
});

config.module.rules.push({
test: /\.svg$/i,
use: ['@svgr/webpack']
});

return config;
}
};
Expand Down
Loading