Clone down this repository. You will need node and npm installed globally on your machine.
git switch main
npm install
gatsby start
localhost:8000
React project that loads a MD document containing multiple react questions, parses them and then serves a single question and answer at random.
Clone down this repository. You will need node and npm installed globally on your machine.
git switch main
npm install
gatsby start
localhost:8000
Add a button that changes the question if the user wants.
Optional:Track which questions have been seen and remove them from the questions that appear each day.
Now that scope of project has changed, have a parent component that holds state, and the question and question list component can sit inside.
Create a seperate section to hold buttons that are only there to test code e.g. print things to console, clear arrays etc.
E.g. Remove functions that can sit in utils.
Blank numbers 109 & 208
Get random function to set a random question per day. Eg. the question for March 1st 2020 is always the same, but randomly selected from the 320 available.
Create array of questions seen. This can be used to compare and turn questions green in question list (#23).
This must be stored in local storage so that it can be used to update list of questions.
Numbers may change so use question title for comparison.
Either hide the button once clicked, or change to 'Hide Answer'
Display list of available question numbers. Indicate if question has already been seen or not.
Don't worry about styling at this stage.
When page loads, initially loads with white background and plain text before background and styling is added.
The final question causes the whole mdData file to be pulled through to the answer box.
Update MDFile from github repository. This can be done on page load, or via a manual button or both.
Update visible numbered list (#23) at same time.
Compare list of seen questions with total list of questions to determine which are colored green or red (seen/not seen).
Question numbers may change, new questions may be added, so try and mitigate for this.
Create a front end that shows the 'Question of the day' with the answer hidden.
Include button to reveal answer.
Include button to change question.
User Acceptance
Track questions that have already been seen. Store information in local storage.
Note:
Take into account that numbers and questions may change.
Not sure why. Get the components to console log before this so that it shows up when the error occurs.
If a long question answer is revealed, the text currently flows over the bottom of the page, leaving a white space.
Possible solutions:
Make the answer scrollable.
Extend the header image.
A random question is shown when launching the page, this remains the same for that day (calendar day, not 24 hr period).
On render check for 'current day question' in local storage, if present add to state, then:
If date === currentdate then display that question
else if date !== currentdate then generate random question number
Store new current day question in state.
Save current day question in local storage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.