Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7c4d021
Merge pull request #1 from DnDnDiffusion/design-updates
0xAli0x Jan 11, 2023
6f10162
Merge branch 'DnDnDiffusion:design-updates' into design-updates
0xAli0x Jan 12, 2023
1ccd04e
init
danj-O Jan 14, 2023
97d6ee9
init
danj-O Jan 14, 2023
89ba97a
deleting yarn.lock
danj-O Jan 14, 2023
255b212
walletconnect button styling match, updated readme
tippi-fifestarr Jan 14, 2023
4e10316
recorded nft storage demo vid
tippi-fifestarr Jan 14, 2023
8b83df7
almost got nftmetadata working, need help
tippi-fifestarr Jan 15, 2023
2274c89
moving some stuff around and nft metadata is working with tippis temp…
danj-O Jan 15, 2023
498f1c8
c
danj-O Jan 15, 2023
f92ec44
minting works, still need to add listeners n such, the metadata gets …
danj-O Jan 15, 2023
a9247c2
metadata + minting
danj-O Jan 15, 2023
d6a1b4c
adjusted gpt func in api to be more dynamic, using it on about page t…
danj-O Jan 15, 2023
a66e512
added layout component
danj-O Jan 15, 2023
c2d9030
something
danj-O Jan 15, 2023
cb18c99
fixing?
danj-O Jan 15, 2023
e6716d1
pdfs
carteblanchecarriage Jan 19, 2023
9df63b2
added a download image button
carteblanchecarriage Jan 19, 2023
dca58c2
styled save/download button
carteblanchecarriage Jan 19, 2023
44f24b6
fixed the button and some stuff
tippi-fifestarr Jan 20, 2023
7ff76ad
formatted character sheet output
carteblanchecarriage Jan 24, 2023
7741f0b
Getting the latest version
carteblanchecarriage Jan 24, 2023
5c377b0
updated interactivity with character stats and prompt
carteblanchecarriage Jan 26, 2023
24a84d7
New Landing
0xAli0x Jan 27, 2023
14b7849
Merge pull request #1 from 0xAli0x/design-updates
carteblanchecarriage Jan 27, 2023
607776a
character stats, results section, layout
carteblanchecarriage Jan 27, 2023
cf44a3c
Merge branch 'design-updates' of https://github.com/carteblanchecarri…
carteblanchecarriage Jan 27, 2023
bf83a93
Merge branch 'design-updates' into character-stats
carteblanchecarriage Jan 27, 2023
f9fd5bf
Merge pull request #2 from carteblanchecarriage/character-stats
carteblanchecarriage Jan 27, 2023
37d266a
Merge branch 'design-updates' of https://github.com/carteblanchecarri…
carteblanchecarriage Jan 27, 2023
f627dad
fixed issues so it can run dev, cleaning up, button fixes
carteblanchecarriage Jan 27, 2023
c5ad24f
corrected checkbox errors
carteblanchecarriage Jan 27, 2023
64b2bf4
selection image, wallet connect
carteblanchecarriage Jan 27, 2023
89acd39
styled result buttons, hid distracting elements before pdfData is upl…
carteblanchecarriage Jan 31, 2023
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
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
SD_API_ENDPOINT=
OPENAI_API_KEY=
OPENAI_API_KEY=

NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@

## Front-end setup

> `npm install` or `yarn` from the front-end directory to install dependencies
> `npm install` from the front-end directory to install dependencies

First, run the development server from the front-end directory:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Expand All @@ -59,9 +57,9 @@ Ideally, we have a frontend that:

- [ ] Has a "download namedDragonborn.png" button so users that don't know about right clicking or screenshotting can easily get their picture onto their device.

- [x] Has a "Save as NFT" for permanant decentralized file storage
- [ ] Has a "Save as NFT" for permanant decentralized file storage

- [ ] Has a "Connect Wallet" button to enable Save as NFT.
- [x] Has a "Connect Wallet" button to enable Save as NFT.

- [x] Displays form to send to backend for image processing ie. /getImage

Expand All @@ -73,19 +71,17 @@ Ideally, we have a frontend that:

- [ ] After character selection, send and save chosen character with character sheet

- [ ] Fully responsive hamburger menu and mobile-friendly
- [x] Fully responsive hamburger menu and mobile-friendly
- [ ] Image selection UX highlighting and features

## endpoint documentation

- [x] stuff about the endpoint

Our backend endpoint information is somewhat centralized in the mind and cloud of Somya the Dragonborn Cleric. Here is a [link to our R&D page on Notion](https://www.notion.so/danj-o/R-D-6575f7b14c5949c0b65215c052c21b17). Happy adventuring!
Our backend endpoint information sprang forth from the mind and cloud of Somya the Dragonborn Cleric. Here is a [link to our Documentation page on Notion, check out "Dragonborn Backend"](https://www.notion.so/danj-o/R-D-6575f7b14c5949c0b65215c052c21b17). Happy adventuring!

- [ ] Somya & Tippi's advice about Front-end to back-end connection

-- @Somya, how can I fix these issues while you're sleeping? Can you provide some step-by-step instructions or meet with me in around.co to teach me? -- Tippi

### Roadmaps

- [x] using next/Image everywhere instead of img
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!-- saved from url=(0011)about:blank -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>
3 changes: 3 additions & 0 deletions acceptablePDF/5dragonborns/tippi/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
I created 5 dragonborn heroes using fastcharacter.com and put them in this folder. If you are on the team, you can make 5 from scratch (however you do it is undefined by me).

Todays date 1-14-2023
38 changes: 20 additions & 18 deletions components/CharacterBackstory.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
import React from "react";
import { useState } from "react";
import React from "react"
import { useState } from "react"
import { CONSTANTS } from "../utils/CONSTANTS"

export const CharacterBackstory = ({ pdfData }) => {
const [backstory, setBackstory] = useState("");
const [generating, setGenerating] = useState(false);
const [backstory, setBackstory] = useState("")
const [generating, setGenerating] = useState(false)

const generateBackstory = async () => {
setGenerating(true);
delete pdfData.playerName;
delete pdfData.level;
delete pdfData.xp;
delete pdfData.profBonus;
setGenerating(true)
delete pdfData.playerName
delete pdfData.level
delete pdfData.xp
delete pdfData.profBonus

console.log("generating backstory from pdfData: ", pdfData);
console.log("generating backstory from pdfData: ", pdfData)
const gptResult = await fetch("/api/gpt", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
prefix: CONSTANTS.gptPrefixDescription,
data: pdfData,
}),
});
const result = await gptResult.json();
console.log("result: ", result.output.text);
setBackstory(result.output.text);
setGenerating(false);
};
})
const result = await gptResult.json()
console.log("result: ", result.output.text)
setBackstory(result.output.text)
setGenerating(false)
}

return (
<div className=" bg-orange-900 min-h-fit p-20 w-full">
Expand All @@ -45,5 +47,5 @@ export const CharacterBackstory = ({ pdfData }) => {
)}
{/* <textarea value={JSON.stringify(pdfData)} className="min-h-[300px] w-full bg-transparent"></textarea> */}
</div>
);
};
)
}
Loading