+
+
+
+
- Technigo React App
+ Survey :D
@@ -30,5 +36,4 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->
-
diff --git a/code/src/App.js b/code/src/App.js
index f2007d229..4899aef13 100644
--- a/code/src/App.js
+++ b/code/src/App.js
@@ -1,9 +1,12 @@
import React from 'react';
+import { Survey } from './components/Survey';
export const App = () => {
return (
-
- Find me in src/app.js!
+
+
+
+
);
}
diff --git a/code/src/components/Result.js b/code/src/components/Result.js
new file mode 100644
index 000000000..eea2818b3
--- /dev/null
+++ b/code/src/components/Result.js
@@ -0,0 +1,77 @@
+import React from 'react';
+import { Song } from './Song'
+
+export const Result = (props) => {
+ let longName = false;
+ let badSchool = false;
+ let thinPasta = false;
+ let song = '';
+ let text = '';
+ let embedurl = '';
+
+ if (props.answerOne.length > 4) { longName = true; }
+
+ if (props.answerTwo === 'bad' || props.answerTeo === 'really bad') { badSchool = true; }
+
+ if (props.answerThree === 'plain spaghetti') { thinPasta = true; }
+
+ if (longName && badSchool && thinPasta) {
+ song = 'American Football - Never Meant';
+ text = "you're the true original midwest emo tune. pure longing and regret in 04:28. as they say, 'everyone's a gangster until that second guitar part comes in'. listen and you'll know.";
+ embedurl = 'https://open.spotify.com/embed/track/6kZqCqD1r08sJAQ1TjuEpM?utm_source=generator'
+ }
+
+ if (longName && badSchool && !thinPasta) {
+ song = "Sleep in. - I Do Know And I'm Not Sorry";
+ text = "you have attitude, and a riff which makes you want to dramatically throw a plate on the ground. you walk with your back straight. people shouldn't mess with you.";
+ embedurl = 'https://open.spotify.com/embed/track/4J1Ie6FTecIid0yPEHNGST?utm_source=generator'
+ }
+
+ if (longName && !badSchool && thinPasta) {
+ song = 'Modern Baseball - Your Graduation';
+ text = "uou're all about high school and unrequited love. you know what? it's their loss. you also have a really good guitar solo.";
+ embedurl = 'https://open.spotify.com/embed/track/7kVoPBSlGghzLoQjODkxGD?utm_source=generator'
+ }
+
+ if (longName && !badSchool && !thinPasta) {
+ song = "Hot Mulligan - How Do You Know It's Not Armadillo Shells?";
+ text = "you're what happens when a guitar meets a drum machine and synth. you're both electronic and acoustic. you're the duality of man. and the final product really comes together well.";
+ embedurl = 'https://open.spotify.com/embed/track/2oEInOIbcj4f9pFpxsS1Td?utm_source=generator'
+ }
+
+ if (!longName && badSchool && thinPasta) {
+ song = 'Turnover - I Would Hate You If I Could';
+ text = "you're melancholy, and somewhat sultry. but above all, you're really melodic. listening to you sing about old loves feels like walking on velvet in an empty room."
+ embedurl = 'https://open.spotify.com/embed/track/5g1zOEyrfjMxorKlvCE3AN?utm_source=generator'
+ }
+
+ if (!longName && badSchool && !thinPasta) {
+ song = 'The Appleseed Cast - Marigold & Patchwork';
+ text = "you're old school. no nonsense. just straight up harsh heartache, wishing to go back in time. but you have to face the fact: it's not 1998 anymore. but there is still beauty in the present.";
+ embedurl = 'https://open.spotify.com/embed/track/2MPndJjBcn555aZQyuvt3S?utm_source=generator'
+ }
+
+ if (!longName && !badSchool && !thinPasta) {
+ song = 'Foxing - The Medic';
+ text = "you don't feel like the others. you want more of life. you want to be loved, you want to be intoxicated. but be careful. don't go chasing something that would ultimately kill you.";
+ embedurl = 'https://open.spotify.com/embed/track/5KzuAU7zxcP0bq0CPdRRyr?utm_source=generator'
+ }
+
+ if (!longName && !badSchool && thinPasta) {
+ song = 'Tiny Moving Parts - Medicine';
+ text = "you're intricate and modern. something tells me you are always wishing you were somewhere else than where you are, with someone else than the one you are with. but isn't there also beauty in the known?"
+ embedurl = 'https://open.spotify.com/embed/track/0uqTwEKTbkuhrn8yGSO6b5?utm_source=generator'
+ }
+
+ return (
+
+
your results:
+
your name is {props.answerOne}, your high school experience was {props.answerTwo},
+ and you prefer {props.answerThree} in your pasta dish...
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/code/src/components/Song.js b/code/src/components/Song.js
new file mode 100644
index 000000000..caf23ba34
--- /dev/null
+++ b/code/src/components/Song.js
@@ -0,0 +1,12 @@
+import React from 'react';
+
+export const Song = (props) => {
+ return (
+
+
you are {props.song}
+
{props.text}
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/code/src/components/Survey.js b/code/src/components/Survey.js
new file mode 100644
index 000000000..108e92d54
--- /dev/null
+++ b/code/src/components/Survey.js
@@ -0,0 +1,79 @@
+import React, { useState } from 'react'
+import { Result } from './Result'
+
+export const Survey = () => {
+ const [answerOne, setAnswerOne] = useState('')
+ const [answerTwo, setAnswerTwo] = useState('not good')
+ const [answerThree, setAnswerThree] = useState('plain spaghetti')
+ const [surveyStep, setSurveyStep] = useState(0)
+
+ return (
+