Skip to content

Commit

Permalink
Merge pull request #19 from djeck1432/feat/add-landing-page
Browse files Browse the repository at this point in the history
Feat/add landing page
  • Loading branch information
djeck1432 authored Oct 1, 2024
2 parents e817b61 + 8fbca49 commit f5cc3cd
Show file tree
Hide file tree
Showing 18 changed files with 568 additions and 211 deletions.
18 changes: 4 additions & 14 deletions frontend/src/App.js → frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { useState, useEffect } from 'react';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import Header from './components/Header';
import Header from './components/header/Header';
import Footer from './components/Footer';
import Home from './pages/Home';
import Login from './pages/Login';
import LendingForm from './components/LendingForm';
import Home from './pages/spotnet/Home';
import Login from "./pages/Login";
import { connectWallet, logout } from './utils/wallet';

function App() {
Expand Down Expand Up @@ -44,16 +43,7 @@ function App() {
<main className="container my-5" style={{ flex: 1 }}>
{error && <div className="alert alert-danger">{error}</div>}
<Routes>
<Route path="/" element={
walletId ? (
<>
<Home />
<LendingForm walletId={walletId} />
</>
) : (
<Navigate to="/login" />
)
} />
<Route index element={<Home />}/>
<Route
path="/login"
element={walletId ? <Navigate to="/" /> : <Login onConnectWallet={handleConnectWallet} />}
Expand Down
8 changes: 0 additions & 8 deletions frontend/src/App.test.js

This file was deleted.

10 changes: 10 additions & 0 deletions frontend/src/assets/icons/rocket.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions frontend/src/assets/images/logo.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: 18 additions & 0 deletions frontend/src/assets/particles/deco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/src/assets/particles/small_star.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 frontend/src/assets/particles/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions frontend/src/assets/particles/starknet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 0 additions & 44 deletions frontend/src/components/Header.js

This file was deleted.

Loading

0 comments on commit f5cc3cd

Please sign in to comment.