Note Taking Web App
Note Taking Web App
Note Taking Web App
HTML File: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta
name="viewport"
/>
<!--
manifest.json provides metadata used when your web app is added to the
-->
<!--
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>
</noscript>
<div id="root"></div>
<!--
If you open it directly in the browser, you will see an empty page.
The build step will place the bundled scripts into the <body> tag.
</body>
</html>
CSS File: -
*{
padding: 0;
margin: 0;
box-sizing: border-box;
html {
body {
background: #eee;
padding: 0 16px;
}
header {
background-color: #f5ba13;
header h1 {
color: #fff;
font-weight: 200;
footer {
position: absolute;
text-align: center;
bottom: 0;
width: 100%;
height: 2.5rem;
}
footer p {
color: #ccc;
.note {
background: #fff;
border-radius: 7px;
padding: 10px;
width: 240px;
margin: 16px;
float: left;
.note h1 {
font-size: 1.1em;
margin-bottom: 6px;
.note p {
font-size: 1.1em;
margin-bottom: 10px;
white-space: pre-wrap;
word-wrap: break-word;
JAVASCRIPT FILES: -
Index.js: -
reactDOM.render(
<div>
<App />
</div>,
document.getElementById("root")
);
App.jsx: -
return (
<div>
<Heading />
<Note />
<Footer />
</div>
);
Footer.jsx: -
function Footer() {
return (
<footer>
<p>Copyright @ {currYear}</p>
</footer>
);
}
Heading.jsx: -
function Heading() {
return (
<header>
<h1>SHK</h1>
</header>
);
Note.jsx: -
const react = require("react");
function Note() {
return (
<div className="note">
<h1>SHK</h1>
</div>
);