-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* package management page * Finishing package info page * deliverer form --------- Co-authored-by: KPomales <[email protected]>
- Loading branch information
1 parent
f04ba61
commit 4f19423
Showing
7 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import DelivererForm1 from "~~/components/DelivererForm1"; | ||
import DelivererForm2 from "~~/components/DelivererForm2"; | ||
import PackageInfo from "~~/components/PackageInfo"; | ||
import { Button } from "~~/components/ui/button"; | ||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "~~/components/ui/card"; | ||
|
||
const PackageInfoPage = () => { | ||
return ( | ||
<div className="container py-3 flex justify-center flex-col items-center min-h-screen"> | ||
<div className="container py-3 flex justify-center flex-col items-center min-h-screen"> | ||
<div className="flex"> | ||
<DelivererForm1 /> | ||
</div> | ||
</div> | ||
<div className="container py-3 flex justify-center flex-col items-center min-h-screen"> | ||
<div className="flex"> | ||
<DelivererForm2 /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PackageInfoPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Button } from "~~/components/ui/button"; | ||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "~~/components/ui/card"; | ||
import { Input } from "~~/components/ui/input"; | ||
import { Label } from "~~/components/ui/label"; | ||
import { Slider } from "~~/components/ui/slider"; | ||
|
||
const DelivererForm1 = () => { | ||
return ( | ||
<div className="flex justify-center items-center min-h-screen"> | ||
<Card className="w-full max-w-md"> | ||
<CardHeader> | ||
<CardTitle>Join The Box's delivery network!</CardTitle> | ||
<CardDescription className="text-sm text-muted-foreground"> | ||
Earn bounties for delivering packages in your neighborhood. | ||
</CardDescription> | ||
<Button>Log In with Worldcoin</Button> | ||
</CardHeader> | ||
</Card> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DelivererForm1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Button } from "~~/components/ui/button"; | ||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "~~/components/ui/card"; | ||
import { Input } from "~~/components/ui/input"; | ||
import { Label } from "~~/components/ui/label"; | ||
import { Slider } from "~~/components/ui/slider"; | ||
|
||
const DelivererForm2 = () => { | ||
return ( | ||
<div className="flex justify-center items-center min-h-screen"> | ||
<Card className="w-full max-w-md"> | ||
<CardHeader> | ||
<CardTitle>Stake to start your delivery!</CardTitle> | ||
<CardDescription className="text-sm text-muted-foreground"> | ||
Stake the required amount of tokens to start your delivery. | ||
</CardDescription> | ||
<p>Amount to stake: 5 BOX</p> | ||
<Button>Stake</Button> | ||
</CardHeader> | ||
</Card> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DelivererForm2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Link from "next/link"; | ||
import { Button } from "~~/components/ui/button"; | ||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "~~/components/ui/card"; | ||
import { Input } from "~~/components/ui/input"; | ||
import { Label } from "~~/components/ui/label"; | ||
import { Slider } from "~~/components/ui/slider"; | ||
|
||
const PackageDelivererButtons = () => { | ||
return ( | ||
<div className="grid gap-2"> | ||
<Button size="lg">Deliver This Item</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PackageDelivererButtons; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Button } from "~~/components/ui/button"; | ||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "~~/components/ui/card"; | ||
import { Input } from "~~/components/ui/input"; | ||
import { Label } from "~~/components/ui/label"; | ||
import { Slider } from "~~/components/ui/slider"; | ||
|
||
const PackageRecieverButtons = () => { | ||
return ( | ||
<div className="grid gap-2"> | ||
<Button size="lg">I received the package</Button> | ||
<Button variant="outline" size="lg"> | ||
Report package lost | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PackageRecieverButtons; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters