From f65f02f1adf6b7e2b34fa4c94e001bdad82caed8 Mon Sep 17 00:00:00 2001 From: miggymofongo2 Date: Sat, 15 Jun 2024 00:16:44 -0400 Subject: [PATCH] starting out my quote shuffler v2 --- src/Components/App/App.css | 38 +++++++++++++++ src/Components/App/App.js | 7 +++ src/Components/App/App.test.js | 8 ++++ src/Components/Quote/quote.js | 85 ++++++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 src/Components/App/App.css create mode 100644 src/Components/App/App.js create mode 100644 src/Components/App/App.test.js create mode 100755 src/Components/Quote/quote.js diff --git a/src/Components/App/App.css b/src/Components/App/App.css new file mode 100644 index 0000000..74b5e05 --- /dev/null +++ b/src/Components/App/App.css @@ -0,0 +1,38 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/src/Components/App/App.js b/src/Components/App/App.js new file mode 100644 index 0000000..1238da7 --- /dev/null +++ b/src/Components/App/App.js @@ -0,0 +1,7 @@ +import './App.css'; + +function App() { + return <> +} + +export default App; diff --git a/src/Components/App/App.test.js b/src/Components/App/App.test.js new file mode 100644 index 0000000..1f03afe --- /dev/null +++ b/src/Components/App/App.test.js @@ -0,0 +1,8 @@ +import { render, screen } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + render(); + const linkElement = screen.getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); diff --git a/src/Components/Quote/quote.js b/src/Components/Quote/quote.js new file mode 100755 index 0000000..d086b04 --- /dev/null +++ b/src/Components/Quote/quote.js @@ -0,0 +1,85 @@ +const quotes = [ + { + quote: "So many places I want to see... I know I'll get there someday. I'll find a way somehow. I'm sure of it.", + author: "ARIEL", + game: "Kingdom Hearts" + }, + { + quote: "You be careful, now, both of you.", + author: "DAISY DUCK", + game: "Kingdom Hearts" + }, + { + quote: "All for one, and one for all!", + author: "GOOFY", + game: "Kingdom Hearts" + }, + { + quote: "Cricket's the name. Jiminy Cricket, at your service.", + author: "JIMINY CRICKET", + game: "Kingdom Hearts" + }, + { + quote: "I want to be a part of your life no matter what. That's all.", + author: "KAIRI", + game: "Kingdom Hearts III" + }, + { + quote: "There will always be a door to the light.", + author: "KING MICKEY", + game: "Kingdom Hearts II" + }, + + { + quote: "We may never meet again, but we'll never forget each other.", + author:"LEON", + game: "Kingdom Hearts" + }, + + { + quote: "The heart of all kingdoms, the heart of all that lives. A dominion fit to be called Kingdom Hearts must be MY dominion.", + author: "MALEFICENT", + game: "Kingdom Hearts II" + }, + + { + quote: "The name is Merlin! I'm a powerful wizard, and I'll have you know a lot of wisdom comes with age.", + author: "MERLIN", + game: "Kingdom Hearts Birth by Sleep" + }, + + { + quote: "Kid, I got two words of advice for you: Attack!" , + author: "PHILOCTETES", + game: "Kingdom Hearts" + }, + + { + quote: "What really makes someone a hero isn't what they wear or what they say it's the things they do and how they treat everyone.", + author: "QUEEN MINNIE MOUSE", + game: "Kingdom Hearts Birth by Sleep" + }, + + { + quote: "I'm going to face my past.", + author: "SIMBA", + game:"Kingdom Hearts II" + }, + + { + quote: "My friends are my power!", + author: "SORA", + game:"Kingdom Hearts" + }, + + { + quote: "But the girl could prove useful. And I've got the Heartless on my side. Triton, my old friend...Your day is coming.", + author: "URSULA", + game: "Kingdom Hearts" + } + + + ]; + +export default quotes; +