Skip to content

Commit fba4f7e

Browse files
author
Nicolas Orieta
committed
Pagina principal y cambio de logo
1 parent 4acff21 commit fba4f7e

File tree

14 files changed

+17072
-263
lines changed

14 files changed

+17072
-263
lines changed

package-lock.json

Lines changed: 16990 additions & 165 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@testing-library/user-event": "^13.5.0",
99
"react": "^18.2.0",
1010
"react-dom": "^18.2.0",
11+
"react-icons": "^4.4.0",
1112
"react-scripts": "5.0.1",
1213
"web-vitals": "^2.1.4"
1314
},
@@ -34,5 +35,10 @@
3435
"last 1 firefox version",
3536
"last 1 safari version"
3637
]
38+
},
39+
"devDependencies": {
40+
"autoprefixer": "^10.4.7",
41+
"postcss": "^8.4.14",
42+
"tailwindcss": "^3.1.6"
3743
}
3844
}

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/App.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/App.js

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
import logo from './logo.svg';
2-
import './App.css';
1+
import React from "react";
2+
import { Hero } from "./components/Hero";
3+
import { Navbar } from "./components/Navbar";
34

45
function App() {
56
return (
6-
<div className="App">
7-
<header className="App-header">
8-
<img src={logo} className="App-logo" alt="logo" />
9-
<p>
10-
Edit <code>src/App.js</code> and save to reload.
11-
</p>
12-
<a
13-
className="App-link"
14-
href="https://reactjs.org"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
Learn React
19-
</a>
20-
</header>
7+
<div>
8+
<Navbar/>
9+
<Hero/>
2110
</div>
2211
);
2312
}

src/App.test.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/Hero.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
3+
export const Hero = () => {
4+
return (
5+
<div>
6+
<h1 className='text-white'>hola</h1>
7+
</div>
8+
)
9+
}
10+

src/components/Navbar.jsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React, {useState} from 'react';
2+
import {AiOutlineMenu , AiOutlineClose } from 'react-icons/ai';
3+
4+
export const Navbar = () => {
5+
6+
const [nav, setNav] = useState(false)
7+
8+
const handleNav = () => {
9+
setNav(!nav)
10+
}
11+
12+
return (
13+
<div className='flex justify-between items-center h-24 max-w-[1240px] mx-auto px-4 text-white'>
14+
<h1 className='w-full text-3xl font-bold text-[#00df9a]'>REACT.</h1>
15+
<ul className='hidden md:flex font-semibold'>
16+
<li className='p-4'>Home</li>
17+
<li className='p-4'>Compania</li>
18+
<li className='p-4'>Recursos</li>
19+
<li className='p-4'>Nosotros</li>
20+
<li className='p-4'>Contacto</li>
21+
</ul>
22+
<div onClick={handleNav} className='block md:hidden'>
23+
{!nav ? <AiOutlineClose size={20}/> : <AiOutlineMenu size={20}/>}
24+
</div>
25+
<div className={!nav ? 'fixed left-0 top-0 w-[60%] h-full backdrop-blur-xl border-r border-r-gray-600 duration-500' : 'fixed left-[-100%] top-0 h-full w-[60%] duration-500'}>
26+
27+
<h1 className='w-full text-3xl font-bold text-[#00df9a] mx-4 my-[30px]'>REACT.</h1>
28+
29+
<ul className='p-4 font-semibold'>
30+
<li className='p-4 border-b border-gray-600'>Home</li>
31+
<li className='p-4 border-b border-gray-600'>Compania</li>
32+
<li className='p-4 border-b border-gray-600'>Recursos</li>
33+
<li className='p-4 border-b border-gray-600'>Nosotros</li>
34+
<li className='p-4'>Contacto</li>
35+
</ul>
36+
</div>
37+
</div>
38+
)
39+
}

src/index.css

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
body {
2-
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5-
sans-serif;
6-
-webkit-font-smoothing: antialiased;
7-
-moz-osx-font-smoothing: grayscale;
8-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
94

10-
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
5+
body {
6+
background-color: #000300;
137
}

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
5+
66

77
const root = ReactDOM.createRoot(document.getElementById('root'));
88
root.render(
@@ -11,7 +11,3 @@ root.render(
1111
</React.StrictMode>
1212
);
1313

14-
// If you want to start measuring performance in your app, pass a function
15-
// to log results (for example: reportWebVitals(console.log))
16-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17-
reportWebVitals();

0 commit comments

Comments
 (0)