Modify about and contact.js page with placeholder text

This commit is contained in:
Ray 2024-01-17 13:59:00 +00:00 committed by GitHub
parent e5c62f08e5
commit 64d10e845a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 7 deletions

View File

@ -100,7 +100,7 @@ function App() {
<StorageContext.Provider value={FBstorage}>
<Routes>
<Route path="/" element={<Home/>} />
<Route path="/about" element={<About greeting="Hey you, this is about page!" handler={saySomething} />} />
<Route path="/about" element={<About/>} />
<Route path="/contact" element={<Contact/>} />
<Route path="/detail/:id" element={<Detail handler={getDocument} />} />
<Route path="/gallery" element={<Gallery items={data} />} />

View File

@ -1,8 +1,9 @@
export function About ( props ) {
export function About() {
return (
<div>
<h1>{ props.greeting }</h1>
<button onClick={ () => props.handler("I've been clicked!") } >Click me</button>
<h1>About me:</h1>
<p>This will have information added soon</p>
</div>
)
);
}

View File

@ -6,6 +6,7 @@ export function Contact ( props ) {
return (
<div>
<h1>Contact</h1>
<p>Deciding whether to just put contact info or actually develop a contact form, figure it out along the way</p>
</div>
)
}