From d13c48b285f05c071135a1e5cb25aa96b2c6f156 Mon Sep 17 00:00:00 2001 From: jherman5 <jherman5@huskers.unl.edu> Date: Wed, 2 Sep 2020 12:17:00 -0500 Subject: [PATCH] Added a few initial aspects of the app's initial state. --- simon-says/debug.log | 22 +++++++++++++++++++ .../src/features/patternGen/buttonLayout.css | 8 +++---- .../features/patternGen/patternGeneration.js | 1 - .../src/features/patternGen/patternSlice.js | 15 +++++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 simon-says/src/features/patternGen/patternSlice.js diff --git a/simon-says/debug.log b/simon-says/debug.log index df3eb33..1ec9ba1 100644 --- a/simon-says/debug.log +++ b/simon-says/debug.log @@ -145,3 +145,25 @@ [0829/183110.543:ERROR:crash_report_database_win.cc(469)] failed to stat report [0829/183110.543:ERROR:crash_report_database_win.cc(469)] failed to stat report [0829/183110.544:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.193:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.196:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report +[0831/110742.197:ERROR:crash_report_database_win.cc(469)] failed to stat report diff --git a/simon-says/src/features/patternGen/buttonLayout.css b/simon-says/src/features/patternGen/buttonLayout.css index e7e3133..89c20e2 100644 --- a/simon-says/src/features/patternGen/buttonLayout.css +++ b/simon-says/src/features/patternGen/buttonLayout.css @@ -2,25 +2,25 @@ background-color: #f44336; border: none; width: 50%; - height: 300px; + height: 20em; } .bluebutton{ background-color: #008CBA; border: none; width: 50%; - height: 300px; + height: 20em; } .yellowbutton{ background-color: #ffff00; border: none; width: 50%; - height: 300px; + height: 20em; } .greenbutton{ background-color: #4CAF50; border: none; width: 50%; - height: 300px; + height: 20em; } #wrapper{ width: 100%; diff --git a/simon-says/src/features/patternGen/patternGeneration.js b/simon-says/src/features/patternGen/patternGeneration.js index dbf89a0..dac1a12 100644 --- a/simon-says/src/features/patternGen/patternGeneration.js +++ b/simon-says/src/features/patternGen/patternGeneration.js @@ -8,7 +8,6 @@ export function Pattern() { <button class = "redbutton"> </button> <button class = "bluebutton"> - </button> <button class = 'yellowbutton'> diff --git a/simon-says/src/features/patternGen/patternSlice.js b/simon-says/src/features/patternGen/patternSlice.js new file mode 100644 index 0000000..6430c5c --- /dev/null +++ b/simon-says/src/features/patternGen/patternSlice.js @@ -0,0 +1,15 @@ +import { createSlice } from '@reduxjs/toolkit'; + +const patternSlice = createSlice({ + name: 'pattern', + initialState: { + borderState: 0, + patternList: [] + }, + reducers: { + }, +}); +export default patternSlice; + +export const { +} = patternSlice.actions; \ No newline at end of file -- GitLab