Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.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);
}
}

.head{

background-color:purple;
display: flex;
flex-direction: column;
align-items: start;

}
h1 {
margin-left: 9px;
}
p{
margin-left: 9px;
font-size: auto;

}
button{
width: 90px;
padding: 8px;
margin: 10px;
border-radius: 9px;
height: 60px;
background-color: #04AA6D;
font-size: 15px;
}

.four-columns{
margin-top: 35px;
display: flex;
flex-direction: row;
gap:1em;

}
/* .four-columns{
display: grid;
grid-template-columns: repeat(50, 1fr);
} */
47 changes: 47 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import logo from './logo.svg';
import './App.css';

function App() {
return (
<div className="App">
<div className='head'>
<h1>Say hello to <br/>ReactJS</h1>
<p>You will learn a Frontend framework from scratch to become an Ninka Developer</p>
<button>Awesome!</button>

</div>
<div className='four-columns'>
<div>
<img src='https://imgur.com/H2L3ohY.png'/>
<span>
<h2>Declarative</h2>
<p>React makes it painless to create interactive UIs.</p>
</span>
</div>
<div>
<img src='https://imgur.com/IHW1mFB.png'/>
<span>
<h2>Components</h2>
<p>Build encapsulates components that manage their state</p>
</span>
</div>
<div>
<img src='https://imgur.com/LtUDB9y.png'/>
<span>
<h2>Single-Way</h2>
<p>A set of immutable values are passed to the components</p>
</span>
</div>
<div>
<img src='https://imgur.com/agN6R4Y.png'/>
<span>
<h2>JSX</h2>
<p>Statically-typed designed to run on modern browsers</p>
</span>
</div>
</div>
</div>
);
}

export default App;
8 changes: 8 additions & 0 deletions App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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();
});
13 changes: 13 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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;
}
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

// 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();
1 change: 1 addition & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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;
5 changes: 5 additions & 0 deletions setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// 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';