parent
657670e78d
commit
0c335c5e67
@ -1,30 +1,63 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
import cute from './images/cute.png';
|
|
||||||
|
|
||||||
const header = (
|
// const header = (
|
||||||
<header>
|
// <header>
|
||||||
<h1>Welcome to 30 Days Of React</h1>
|
// <h1>Welcome to 30 Days Of React</h1>
|
||||||
<h2>Getting Started React</h2>
|
// <h2>Getting Started React</h2>
|
||||||
<h3>JavaScript Library</h3>
|
// <h3>JavaScript Library</h3>
|
||||||
</header>
|
// </header>
|
||||||
)
|
// )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||||
root.render(
|
root.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<div style = {{display: "flex", justifyContent:'center', height: 'auto'}}>
|
<div className = 'rounded outerbox' style = {{background: 'lightblue'}}>
|
||||||
<header>
|
|
||||||
{header}
|
<h1 className='text'>
|
||||||
</header>
|
Subscribe
|
||||||
</div>
|
</h1>
|
||||||
<div style = {{display: "flex", justifyContent:'center', height: 'auto'}}>
|
|
||||||
<img src={cute} alt='Cute Bunny!'></img>
|
<p className='text'>
|
||||||
</div>
|
Sign up with your email address to recieve news and updates
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<input
|
||||||
|
className = 'rounded input'
|
||||||
|
type = "text"
|
||||||
|
id="firstname"
|
||||||
|
name="firstname"
|
||||||
|
placeholder='First Name'
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
className = 'rounded input'
|
||||||
|
type = "text"
|
||||||
|
id="lastname"
|
||||||
|
name="lastname"
|
||||||
|
placeholder='Last Name'
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
className = 'rounded input'
|
||||||
|
type = "text"
|
||||||
|
id="email"
|
||||||
|
name="email"
|
||||||
|
placeholder='Email'
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button className='button-9'>
|
||||||
|
Subscribe
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
);
|
);
|
||||||
|
|
||||||
// If you want to start measuring performance in your app, pass a function
|
// If you want to start measuring performance in your app, pass a function
|
||||||
// to log results (for example: reportWebVitals(console.log))
|
// to log results (for example: reportWebVitals(console.log))
|
||||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in new issue