Change website background colour to make it look pleasing to the eyes

This commit is contained in:
Ray 2023-12-28 02:34:52 +00:00 committed by GitHub
parent e6b8047001
commit 1c882e6f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 67 additions and 69 deletions

View File

@ -26,8 +26,6 @@ import './App.css'
import { FSContext } from ".//contexts/FSContext.js" import { FSContext } from ".//contexts/FSContext.js"
// declare variables // declare variables
export function MyForm(props) { export function MyForm(props) {
@ -60,74 +58,74 @@ export function MyForm(props) {
// Create form for user to imput data // Create form for user to imput data
return ( return (
<Form onSubmit={submitHandler}> <div style={{ backgroundColor: '#FBC40E' }}>
<Form.Group> <Form onSubmit={submitHandler}>
<Form.Label style={{ fontSize: '40px' }}>Ray Ray's Word Bingo</Form.Label> <Form.Group>
<Col sm={2}></Col> <Form.Label style={{ fontSize: '40px' }}>Ray Ray's Word Bingo</Form.Label>
<Col sm={8}> <Col sm={2}></Col>
<Form.Label style={{ fontSize: '30px' }}>Enter submitter name:</Form.Label> <Col sm={8}>
<Form.Control <Form.Label style={{ fontSize: '30px' }}>Enter submitter name:</Form.Label>
name="submitter" <Form.Control
type="text" name="submitter"
placeholder="Name" type="text"
value={submitter} placeholder="Name"
onChange={(e) => setSubmitter(e.target.value)} value={submitter}
/> onChange={(e) => setSubmitter(e.target.value)}
<Form.Label style={{ fontSize: '30px' }}>Enter the date the shennanigans occurred (dd-mm-yyyy):</Form.Label> />
<Form.Control <Form.Label style={{ fontSize: '30px' }}>Enter the date the shennanigans occurred (dd-mm-yyyy):</Form.Label>
name="date" <Form.Control
type="text" name="date"
placeholder="Date" type="text"
value={date} placeholder="Date"
onChange={(e) => setDate(e.target.value)} value={date}
/> onChange={(e) => setDate(e.target.value)}
<Form.Label style={{ fontSize: '30px' }}>Enter context for this tamper tantrum:</Form.Label> />
<Form.Control <Form.Label style={{ fontSize: '30px' }}>Enter context for this tamper tantrum:</Form.Label>
type="text" <Form.Control
name="context" type="text"
placeholder="Enter context here" name="context"
value={context} placeholder="Enter context here"
onChange={(e) => setContext(e.target.value)} value={context}
/> onChange={(e) => setContext(e.target.value)}
<Form.Label />
name="selectedoptions" <Form.Label
style={{ fontSize: '30px' }}>Select the words used by Ray during his little tamper tantrum: name="selectedoptions"
</Form.Label> style={{ fontSize: '30px' }}>Select the words used by Ray during his little tamper tantrum:
<Form.Check </Form.Label>
type="checkbox" <Form.Check
label="poop" type="checkbox"
value="poop" label="poop"
checked={selectedOptions.includes('poop')} value="poop"
onChange={handleCheckboxChange} checked={selectedOptions.includes('poop')}
/> onChange={handleCheckboxChange}
<Form.Check />
type="checkbox" <Form.Check
label="snot" type="checkbox"
value="snot" label="snot"
checked={selectedOptions.includes('snot')} value="snot"
onChange={handleCheckboxChange} checked={selectedOptions.includes('snot')}
/> onChange={handleCheckboxChange}
<Form.Check />
type="checkbox" <Form.Check
label="brain" type="checkbox"
value="brain" label="brain"
checked={selectedOptions.includes('brain')} value="brain"
onChange={handleCheckboxChange} checked={selectedOptions.includes('brain')}
/> onChange={handleCheckboxChange}
<Form.Check />
type="checkbox" <Form.Check
label="fart" type="checkbox"
value="fart" label="fart"
checked={selectedOptions.includes('fart')} value="fart"
onChange={handleCheckboxChange} checked={selectedOptions.includes('fart')}
/> onChange={handleCheckboxChange}
/>
<Button type="submit">Submit</Button> <Button type="submit">Submit</Button>
</Col> </Col>
</Form.Group> </Form.Group>
</Form> </Form>
// Create a button to submit the form data to Firebase </div>
); );
} }
export default MyForm; export default MyForm;