mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Merge pull request #1236 from MichaByte/rework-bug-eater
Make Arcade idea generator better
This commit is contained in:
commit
a9a5b1b61e
2 changed files with 9 additions and 9 deletions
|
|
@ -7,16 +7,16 @@ const messageStarters = [
|
|||
'what if you built a',
|
||||
'how about a',
|
||||
'you could make a',
|
||||
"as a dino, i'd build a",
|
||||
"since it's summer, i'd make a",
|
||||
'as a dino, i think you should build a',
|
||||
"since it's summer, you should make a",
|
||||
"i've been dreaming of creating a",
|
||||
'picture this:',
|
||||
'oh, oh, oh! a',
|
||||
'i dare you to make a',
|
||||
'i dare you to make a'
|
||||
]
|
||||
|
||||
const generateProjectIdea = async () => {
|
||||
let prompt = `You are a software engineer that wants to bring joy through chaos. Something different every time. Please propose a funky simple project that will take under 6 hours to complete in 1 quick sentence. You can also suggest projects for a family member. Keep it at less than 15 words. The funkier, stupidier, and sillier your ideas the better. Your response must start with "${sample(messageStarters)}
|
||||
let prompt = `You are a software engineer that wants to bring joy through chaos. Come up with something different every time. Please propose a funky simple project that will take under 6 hours to complete in 1 quick sentence. Keep it at less than 15 words. The funkier, stupidier, and sillier your ideas the better. Think out of the box, and do not propose ideas that do nothing but generate text, like a joke or dance move generator. Random sound effect generators are boring, do not suggest them. Be very creative, do not suggest projects that are too simple. Your response must start with "${sample(messageStarters)}
|
||||
`
|
||||
// expects OPENAI_API_KEY
|
||||
const openai = new OpenAI(process.env.OPENAI_API_KEY)
|
||||
|
|
|
|||
|
|
@ -527,6 +527,7 @@ const Tickets = ({ title, num, text, link, bugEater, ...props }) => {
|
|||
}}
|
||||
>
|
||||
<Box
|
||||
onClick={generateProjectIdea}
|
||||
sx={{
|
||||
justifyContent: 'center',
|
||||
pt: ['120px', '140px', '140px', '140px'],
|
||||
|
|
@ -536,7 +537,8 @@ const Tickets = ({ title, num, text, link, bugEater, ...props }) => {
|
|||
display: 'grid',
|
||||
background:
|
||||
'url(/arcade/arcade_bg.png) no-repeat center center',
|
||||
backgroundSize: 'contain'
|
||||
backgroundSize: 'contain',
|
||||
cursor: 'pointer'
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
|
|
@ -566,7 +568,6 @@ const Tickets = ({ title, num, text, link, bugEater, ...props }) => {
|
|||
display: 'inline',
|
||||
width: 'auto',
|
||||
height: '8em',
|
||||
cursor: 'pointer',
|
||||
mb: ['-120px', '-20px', '-30px', '-30px'],
|
||||
transform: [
|
||||
'scale(0.7)',
|
||||
|
|
@ -576,7 +577,6 @@ const Tickets = ({ title, num, text, link, bugEater, ...props }) => {
|
|||
]
|
||||
}}
|
||||
id="generate-project-idea"
|
||||
onClick={generateProjectIdea}
|
||||
/>
|
||||
</Box>
|
||||
<Box></Box>
|
||||
|
|
@ -726,7 +726,7 @@ const FAQ = ({ question, answer }) => {
|
|||
}}
|
||||
dangerouslySetInnerHTML={{ __html: parsedAnswer }}
|
||||
/>
|
||||
|
||||
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
|
@ -1869,7 +1869,7 @@ export async function getStaticProps() {
|
|||
.filter(sticker => sticker !== 'hero.jpg')
|
||||
|
||||
const items = await shopParts()
|
||||
|
||||
|
||||
const carousel = items
|
||||
.map(record => ({
|
||||
hours: record['Cost Hours'] || 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue