0% found this document useful (0 votes)
184 views

Note Taking Web App

This document is reference for how to create a simple Note Taking Web Application using React and its components. Feel free to update any parts of the code. Thank You.

Uploaded by

sathwick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views

Note Taking Web App

This document is reference for how to create a simple Note Taking Web Application using React and its components. Feel free to update any parts of the code. Thank You.

Uploaded by

sathwick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Note Taking Web App (Frontend only)

HTML File: -

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8" />

<meta

name="viewport"

content="width=device-width, initial-scale=1, shrink-to-fit=no"

/>

<meta name="theme-color" content="#000000" />

<!--

manifest.json provides metadata used when your web app is added to the

homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-


retain/web-app-manifest/

-->

<link rel="stylesheet" href="styles.css" />

<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />

<!--

Notice the use of %PUBLIC_URL% in the tags above.

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.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will

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>

You need to enable JavaScript to run this app.

</noscript>

<div id="root"></div>

<!--

This HTML file is a template.

If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.

The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.

To create a production bundle, use `npm run build` or `yarn build`.


-->

</body>

</html>

CSS File: -

*{

padding: 0;

margin: 0;

box-sizing: border-box;

html {

font-family: "Montserrat", sans-serif;

body {

background: #eee;

padding: 0 16px;
}

header {

background-color: #f5ba13;

margin: auto -16px;

padding: 16px 32px;

box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);

header h1 {

color: #fff;

font-family: "McLaren", cursive;

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;

box-shadow: 0 2px 5px #ccc;

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: -

import App from "./components/App";

const react = require("react");

const reactDOM = require("react-dom");

reactDOM.render(

<div>

<App />

</div>,

document.getElementById("root")

);

JS FILES INSIDE COMPONENTS FOLDER: -

App.jsx: -

import Heading from "./Heading";

import Footer from "./Footer";

import Note from "./Note";

const react = require("react");


function App() {

return (

<div>

<Heading />

<Note />

<Footer />

</div>

);

export default App;

Footer.jsx: -

const react = require("react");

function Footer() {

const currYear = new Date().getFullYear();

return (

<footer>

<p>Copyright @ {currYear}</p>

</footer>

);
}

export default Footer;

Heading.jsx: -

const react = require("react");

function Heading() {

return (

<header>

<h1>SHK</h1>

</header>

);

export default Heading;

Note.jsx: -
const react = require("react");

function Note() {

return (

<div className="note">

<h1>SHK</h1>

<p>Welcome to this beautiful site</p>

</div>

);

export default Note;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy