aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-03-26 21:38:05 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-03-26 21:38:05 +0530
commitb34cdba24fe2c2b445adcb3cf7c3e65e79ff6fd0 (patch)
tree375b33f364354a9939098d61508c9a1c4589ec81 /src
parenta0b22d6aa60baa24225214667bc9171f83484f25 (diff)
first commit, doesn't do anything yet
Diffstat (limited to 'src')
-rw-r--r--src/App.css38
-rw-r--r--src/App.js25
-rw-r--r--src/App.test.js8
-rw-r--r--src/components/App.js10
-rw-r--r--src/components/Header.js13
-rw-r--r--src/index.css13
-rw-r--r--src/index.js26
-rw-r--r--src/reportWebVitals.js13
-rw-r--r--src/setupTests.js5
-rw-r--r--src/styles/header.scss5
10 files changed, 44 insertions, 112 deletions
diff --git a/src/App.css b/src/App.css
deleted file mode 100644
index 74b5e05..0000000
--- a/src/App.css
+++ /dev/null
@@ -1,38 +0,0 @@
-.App {
- text-align: center;
-}
-
-.App-logo {
- height: 40vmin;
- pointer-events: none;
-}
-
-@media (prefers-reduced-motion: no-preference) {
- .App-logo {
- animation: App-logo-spin infinite 20s linear;
- }
-}
-
-.App-header {
- background-color: #282c34;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: calc(10px + 2vmin);
- color: white;
-}
-
-.App-link {
- color: #61dafb;
-}
-
-@keyframes App-logo-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/src/App.js b/src/App.js
deleted file mode 100644
index 3784575..0000000
--- a/src/App.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import logo from './logo.svg';
-import './App.css';
-
-function App() {
- return (
- <div className="App">
- <header className="App-header">
- <img src={logo} className="App-logo" alt="logo" />
- <p>
- Edit <code>src/App.js</code> and save to reload.
- </p>
- <a
- className="App-link"
- href="https://reactjs.org"
- target="_blank"
- rel="noopener noreferrer"
- >
- Learn React
- </a>
- </header>
- </div>
- );
-}
-
-export default App;
diff --git a/src/App.test.js b/src/App.test.js
deleted file mode 100644
index 1f03afe..0000000
--- a/src/App.test.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import { render, screen } from '@testing-library/react';
-import App from './App';
-
-test('renders learn react link', () => {
- render(<App />);
- const linkElement = screen.getByText(/learn react/i);
- expect(linkElement).toBeInTheDocument();
-});
diff --git a/src/components/App.js b/src/components/App.js
new file mode 100644
index 0000000..666667b
--- /dev/null
+++ b/src/components/App.js
@@ -0,0 +1,10 @@
+import React from "react";
+
+const App = () => {
+ const txt = "sldjflksjdfljsd";
+ return (
+ <p>{txt}</p>
+ )
+}
+
+export default App
diff --git a/src/components/Header.js b/src/components/Header.js
new file mode 100644
index 0000000..ecc2b42
--- /dev/null
+++ b/src/components/Header.js
@@ -0,0 +1,13 @@
+import React from "react";
+// import React, { useState } from "react";
+
+const App = () => {
+ // const [activeLink, updateActiveLink] = useState("home")
+ return (
+ <div>
+
+ </div>
+ )
+}
+
+export default App
diff --git a/src/index.css b/src/index.css
deleted file mode 100644
index ec2585e..0000000
--- a/src/index.css
+++ /dev/null
@@ -1,13 +0,0 @@
-body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
- monospace;
-}
diff --git a/src/index.js b/src/index.js
index ef2edf8..4593486 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,17 +1,23 @@
import React from 'react';
import ReactDOM from 'react-dom';
-import './index.css';
-import App from './App';
-import reportWebVitals from './reportWebVitals';
+import App from "./components/App";
-ReactDOM.render(
- <React.StrictMode>
- <App />
- </React.StrictMode>,
- document.getElementById('root')
-);
+ReactDOM.render(App(), document.getElementById("root"))
+
+
+// auto generated code
+// import './index.css';
+// import App from './App';
+// import reportWebVitals from './reportWebVitals';
+
+// ReactDOM.render(
+// <React.StrictMode>
+// <App />
+// </React.StrictMode>,
+// document.getElementById('root')
+// );
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
-reportWebVitals();
+//reportWebVitals();
diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js
deleted file mode 100644
index 5253d3a..0000000
--- a/src/reportWebVitals.js
+++ /dev/null
@@ -1,13 +0,0 @@
-const reportWebVitals = onPerfEntry => {
- if (onPerfEntry && onPerfEntry instanceof Function) {
- import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
- getCLS(onPerfEntry);
- getFID(onPerfEntry);
- getFCP(onPerfEntry);
- getLCP(onPerfEntry);
- getTTFB(onPerfEntry);
- });
- }
-};
-
-export default reportWebVitals;
diff --git a/src/setupTests.js b/src/setupTests.js
deleted file mode 100644
index 8f2609b..0000000
--- a/src/setupTests.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// jest-dom adds custom jest matchers for asserting on DOM nodes.
-// allows you to do things like:
-// expect(element).toHaveTextContent(/react/i)
-// learn more: https://github.com/testing-library/jest-dom
-import '@testing-library/jest-dom';
diff --git a/src/styles/header.scss b/src/styles/header.scss
new file mode 100644
index 0000000..5071b5e
--- /dev/null
+++ b/src/styles/header.scss
@@ -0,0 +1,5 @@
+$bgColor: lightgray;
+
+#header {
+ background-color: $bgColor;
+}