Skip to content

Commit

Permalink
Implement Landing Page (#370)
Browse files Browse the repository at this point in the history
Closes: #363 

## Goal:
To implement Landing Page
This PR aggregates all component PRs to finally complete the
implementation of landing page

## Component PRs:
The list of PRs is given in the issue's description. Each component PR
merges to this PR.

- #357
- #358
- #364
- #368
- #369

## Designs:
<img width="1205" alt="image"
src="https://github.com/thesis/acre/assets/11503879/be6b6ed2-a808-483e-9daf-43d2c042cba4">
  • Loading branch information
kkosiorowska authored May 9, 2024
2 parents f4e29b1 + ed28606 commit 57f0e39
Show file tree
Hide file tree
Showing 60 changed files with 1,139 additions and 92 deletions.
24 changes: 8 additions & 16 deletions dapp/src/DApp.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
import React from "react"
import { Box, ChakraProvider } from "@chakra-ui/react"
import { ChakraProvider } from "@chakra-ui/react"
import { Provider as ReduxProvider } from "react-redux"
import { RouterProvider } from "react-router-dom"
import { useInitApp } from "./hooks"
import { store } from "./store"
import theme from "./theme"
import { AcreSdkProvider } from "./acre-react/contexts"
import GlobalStyles from "./components/GlobalStyles"
import {
DocsDrawerContextProvider,
LedgerWalletAPIProvider,
SidebarContextProvider,
WalletContextProvider,
} from "./contexts"
import { AcreSdkProvider } from "./acre-react/contexts"
import Header from "./components/Header"
import Sidebar from "./components/Sidebar"
import DocsDrawer from "./components/DocsDrawer"
import GlobalStyles from "./components/GlobalStyles"
import { useInitApp } from "./hooks"
import { router } from "./router"
import { store } from "./store"
import theme from "./theme"

function DApp() {
useInitApp()

return (
<>
<Header />
<Box as="main">
<RouterProvider router={router} />
</Box>
<Sidebar />
<DocsDrawer />
<GlobalStyles />
<RouterProvider router={router} />
</>
)
}
Expand All @@ -42,7 +35,6 @@ function DAppProviders() {
<SidebarContextProvider>
<ReduxProvider store={store}>
<ChakraProvider theme={theme}>
<GlobalStyles />
<DApp />
</ChakraProvider>
</ReduxProvider>
Expand Down
1 change: 1 addition & 0 deletions dapp/src/assets/images/card-value-decorator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dapp/src/assets/images/content-card-bg.png
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 dapp/src/assets/images/mystery-box.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 dapp/src/assets/images/partner-logos/base-logo.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: 4 additions & 0 deletions dapp/src/assets/images/partner-logos/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { default as baseLogo } from "#/assets/images/partner-logos/base-logo.svg"
export { default as thresholdLogo } from "#/assets/images/partner-logos/threshold-logo.svg"
export { default as ledgerLogo } from "#/assets/images/partner-logos/ledger-logo.svg"
export { default as wormholeLogo } from "#/assets/images/partner-logos/wormhole-logo.svg"
1 change: 1 addition & 0 deletions dapp/src/assets/images/partner-logos/ledger-logo.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 dapp/src/assets/images/partner-logos/threshold-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 57f0e39

Please sign in to comment.