Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial starter pages #100

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
55 changes: 33 additions & 22 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
import Navbar from './components/navbar/Navbar'
import { Routes, Route } from 'react-router-dom'
import Footer from './components/footer/Footer'
import About from './pages/about/About'
import Home from './pages/home/Home'
import Tickets from './pages/tickets/Tickets'
import ComingSoon from './pages/comingSoon/ComingSoon'
import Hackathon from './pages/hackathon/Hackathon'
import Winners from './pages/winners/Winners'
import Conference from './pages/conference/Conference'
import Faucet from './pages/faucet/Faucet'
import Showcase from './pages/showcase/Showcase'
import links from './data/links'
import HackerTicketRedirect from './pages/HackerTicketRedirect'
import HolidayCollectibleMint from './pages/holidayCollectibleMint/HolidayCollectibleMint'
import { WagmiConfig } from 'wagmi'
import wagmiConfig from './wagmiConfig'
import { ConnectKitProvider } from 'connectkit'
import Community from './pages/community/Community'
import Navbar from "./components/navbar/Navbar";
import { Routes, Route } from "react-router-dom";
import Footer from "./components/footer/Footer";
import About from "./pages/about/About";
import Home from "./pages/home/Home";
import Tickets from "./pages/tickets/Tickets";
import ComingSoon from "./pages/comingSoon/ComingSoon";
import Hackathon from "./pages/hackathon/Hackathon";
import Winners from "./pages/winners/Winners";
import Conference from "./pages/conference/Conference";
import Faucet from "./pages/faucet/Faucet";
import Showcase from "./pages/showcase/Showcase";
import links from "./data/links";
import HackerTicketRedirect from "./pages/HackerTicketRedirect";
import HolidayCollectibleMint from "./pages/holidayCollectibleMint/HolidayCollectibleMint";
import { WagmiConfig } from "wagmi";
import wagmiConfig from "./wagmiConfig";
import { ConnectKitProvider } from "connectkit";
import Community from "./pages/community/Community";
import PromtBattleDemo from "./pages/aiPromtBattleDemo/PromptBattleDemo";

function App() {
return (
<WagmiConfig config={wagmiConfig}>
<ConnectKitProvider>
<Navbar />
<Navbar />
<Routes>
<Route path={links.sitePaths.home} element={<Home />} />
<Route path={links.sitePaths.about} element={<About />} />
Expand All @@ -31,11 +32,21 @@ function App() {
<Route path={links.sitePaths.hackathon} element={<Hackathon />} />
<Route path={links.sitePaths.winners} element={<Winners />} />
<Route path={links.sitePaths.conference} element={<Conference />} />
<Route path={links.sitePaths.hackerTicketRedirect} element={<HackerTicketRedirect />} />
<Route
path={links.sitePaths.hackerTicketRedirect}
element={<HackerTicketRedirect />}
/>
<Route path={links.sitePaths.faucet} element={<Faucet />} />
<Route path={links.sitePaths.showcase} element={<Showcase />} />
<Route path={links.sitePaths.holidayCollectible} element={<HolidayCollectibleMint />} />
<Route
path={links.sitePaths.holidayCollectible}
element={<HolidayCollectibleMint />}
/>
<Route path={links.sitePaths.community} element={<Community />} />
<Route
path={links.sitePaths.promptBattleDemo}
element={<PromtBattleDemo />}
/>
</Routes>
<Footer />
</ConnectKitProvider>
Expand Down
4 changes: 3 additions & 1 deletion src/data/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const links = {
faucet: "/faucet",
showcase: "/showcase",
holidayCollectible: "/holiday-collectible-mint",
community: "/community"
community: "/community",
promptBattleDemo: "/prompt-battle-demo",
promptBattleDemo2: "/prompt-battle-demo-2",
},
forms: {
volunteerApp: "https://7tjiyjbn20b.typeform.com/ETHChicagoVol",
Expand Down
24 changes: 24 additions & 0 deletions src/pages/aiPromtBattleDemo/PromptBattleDemo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Link } from "react-router-dom";
import links from "../../data/links";

export default function PromtBattleDemo() {
const handlePromptInput = (event: React.ChangeEvent<HTMLInputElement>) => {
console.log(event.target.value);
};

return (
<div className="flex flex-col">
<input
type="text"
placeholder="Enter your prompt here"
onChange={handlePromptInput}
/>
<Link
className="bg-primaryBackground text-xl p-4 px-10 rounded-xl text-primaryType"
to={links.sitePaths.promptBattleDemo2}
>
Mint
</Link>
</div>
);
}