Modify about and contact.js page with placeholder text
This commit is contained in:
parent
e5c62f08e5
commit
64d10e845a
|
@ -100,7 +100,7 @@ function App() {
|
||||||
<StorageContext.Provider value={FBstorage}>
|
<StorageContext.Provider value={FBstorage}>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Home/>} />
|
<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="/contact" element={<Contact/>} />
|
||||||
<Route path="/detail/:id" element={<Detail handler={getDocument} />} />
|
<Route path="/detail/:id" element={<Detail handler={getDocument} />} />
|
||||||
<Route path="/gallery" element={<Gallery items={data} />} />
|
<Route path="/gallery" element={<Gallery items={data} />} />
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
export function About ( props ) {
|
export function About() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>{ props.greeting }</h1>
|
<h1>About me:</h1>
|
||||||
<button onClick={ () => props.handler("I've been clicked!") } >Click me</button>
|
<p>This will have information added soon</p>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ export function Contact ( props ) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>Contact</h1>
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in New Issue