diff --git a/package-lock.json b/package-lock.json index d6b5fd56a..a87d148a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,9 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.6", "vite": "^5.2.0" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@eslint-community/eslint-utils": { diff --git a/src/img/Captura de pantalla 2025-05-05 a las 15.14.05.png b/src/img/Captura de pantalla 2025-05-05 a las 15.14.05.png new file mode 100644 index 000000000..340e61ccb Binary files /dev/null and b/src/img/Captura de pantalla 2025-05-05 a las 15.14.05.png differ diff --git a/src/img/brand-logo.png b/src/img/brand-logo.png new file mode 100644 index 000000000..8c78d4da3 Binary files /dev/null and b/src/img/brand-logo.png differ diff --git a/src/img/corazon.png b/src/img/corazon.png new file mode 100644 index 000000000..92b8c082d Binary files /dev/null and b/src/img/corazon.png differ diff --git a/src/img/human-body.jpg b/src/img/human-body.jpg new file mode 100644 index 000000000..9b796690a Binary files /dev/null and b/src/img/human-body.jpg differ diff --git a/src/img/libro.png b/src/img/libro.png new file mode 100644 index 000000000..39b3d4db7 Binary files /dev/null and b/src/img/libro.png differ diff --git a/src/img/maletin.png b/src/img/maletin.png new file mode 100644 index 000000000..01fb80433 Binary files /dev/null and b/src/img/maletin.png differ diff --git a/src/js/components/Body.css b/src/js/components/Body.css new file mode 100644 index 000000000..7e8c1f995 --- /dev/null +++ b/src/js/components/Body.css @@ -0,0 +1,89 @@ +.body-container { + /* border-radius: 25%; */ + /* width: 100%; + height: 100vh; */ +} + +img { + max-width: 100%; + min-height: 100%; + object-fit: cover; + position: relative; +} + +/* .buds img { + width: 50px; + height: 50px; +} */ + +.emoticons { + display: flex; + flex-direction: column; + justify-content: center; + border-radius: 2rem 2rem 10% 10%; + /* clip-path: polygon(0 0, 100% 0%, 7% 100%, 0% 100%); */ + width: 70px; + height: 250px; + align-items: center; + background-color: white; + position: absolute; + top: 50%; + left: 10%; + gap: 5px; + border: 1px solid lightgrey; +} + +.emoticon { + width: fit-content; + height: fit-content; + padding: 5px; + background-color: lightgrey; + border-radius: 50%; +} + +.super-happy { + font-size: xx-large; + width: 50px; + height: 50px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} + +.happy { + font-size: x-large; + width: 45px; + height: 45px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} +.neutral { + font-size: larger; + width: 40px; + height: 40px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} +.sad { + font-size: medium; + width: 35px; + height: 35px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} +.angry { + font-size: smaller; + width: 30px; + height: 30px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} diff --git a/src/js/components/Body.jsx b/src/js/components/Body.jsx new file mode 100644 index 000000000..f057c3e88 --- /dev/null +++ b/src/js/components/Body.jsx @@ -0,0 +1,51 @@ +import React from "react"; +import Buds from "./Buds.jsx"; +import "./Body.css"; + +//include images into your bundle +import humanBody from "../../img/human-body.jpg"; + +//create your first component +function Body({ children }) { + return ( + <> +
+
+ {children} + +
+ +
+ +
+ {/* Body Parts */} +
+
+ {/* Emoticons */} +
+
😆
+
🙂
+
😑
+
😕
+
😡
+
+
+ + ); +} + +export default Body; + +{ + /* Buds +
+
+
+
Buds
+

+ Hurted +

+
+
+
*/ +} diff --git a/src/js/components/Botonera.jsx b/src/js/components/Botonera.jsx new file mode 100644 index 000000000..c4f084224 --- /dev/null +++ b/src/js/components/Botonera.jsx @@ -0,0 +1,23 @@ +function Botonera() { + return ( + <> +
+
+ +
+
+ + ); +} + +export default Botonera; diff --git a/src/js/components/Buds.jsx b/src/js/components/Buds.jsx new file mode 100644 index 000000000..73623f54f --- /dev/null +++ b/src/js/components/Buds.jsx @@ -0,0 +1,30 @@ +function Buds() { + return ( + <> +
+
+
+
+ ... +
+
+
+
Card title
+

+ This is a wider card with supporting text below as a natural + lead-in to additional content. This content is a little bit + longer. +

+

+ Last updated 3 mins ago +

+
+
+
+
+
+ + ); +} + +export default Buds; diff --git a/src/js/components/Calendario.jsx b/src/js/components/Calendario.jsx new file mode 100644 index 000000000..f18d672fd --- /dev/null +++ b/src/js/components/Calendario.jsx @@ -0,0 +1,116 @@ +const Calendario = () => { + return ( + <> +
+
+
+

Mon

+

20

+ +
+
+

Tue

+

21

+ +
+
+

Wed

+

22

+ +
+
+

Thu

+

23

+ ✔️ +
+
+

Fri

+

24

+ ✔️ +
+
+ +
+ +
+ +
+
📍
+ +
56 min
+ +
+
+ +
+ +
+ +
+
48° F
+
Cloudy
+
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+
+
+ +
+ +
+ +
Life Quality
+ +
...
+ +
+
Week
+
...
+
+
+
+
+
1.765
+
Quality Points
+
+
2
+
+
3
+ +
+
+ + ); +}; + +export default Calendario; \ No newline at end of file diff --git a/src/js/components/Header.jsx b/src/js/components/Header.jsx new file mode 100644 index 000000000..68d10e401 --- /dev/null +++ b/src/js/components/Header.jsx @@ -0,0 +1,28 @@ +function Header() { + return ( + <> + + + ); +} + +export default Header; diff --git a/src/js/components/Home.jsx b/src/js/components/Home.jsx deleted file mode 100644 index 74bc8d768..000000000 --- a/src/js/components/Home.jsx +++ /dev/null @@ -1,28 +0,0 @@ -import React from "react"; - -//include images into your bundle -import rigoImage from "../../img/rigo-baby.jpg"; - -//create your first component -const Home = () => { - return ( -
- - -

Hello Rigo!

-

- -

- - If you see this green button... bootstrap is working... - -

- Made by{" "} - 4Geeks Academy, with - love! -

-
- ); -}; - -export default Home; \ No newline at end of file diff --git a/src/js/components/Layout.jsx b/src/js/components/Layout.jsx new file mode 100644 index 000000000..fa7e3636a --- /dev/null +++ b/src/js/components/Layout.jsx @@ -0,0 +1,32 @@ +import React from "react"; +import Sidebar from "./Sidebar"; +import Header from "./Header"; +import Calendario from "./Calendario" + +function Layout() { + return ( + <> +
+
+
+ +
+
+ Componente NAvBAr +
+ ComponenteTOOLS +
+
componente 1
+
componente 2
+
+
+
+
+
+
+
+ + ); +} + +export default Layout; diff --git a/src/js/components/Sidebar.jsx b/src/js/components/Sidebar.jsx new file mode 100644 index 000000000..434584549 --- /dev/null +++ b/src/js/components/Sidebar.jsx @@ -0,0 +1,18 @@ +import Botonera from "./Botonera"; + +function Sidebar() { + return ( + <> +
+ + + +
+ +
+
+ + ); +} + +export default Sidebar; diff --git a/src/js/main.jsx b/src/js/main.jsx index 14662105b..27c2eeef1 100644 --- a/src/js/main.jsx +++ b/src/js/main.jsx @@ -1,18 +1,21 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' +import React from "react"; +import ReactDOM from "react-dom/client"; //Bootstrap import "bootstrap/dist/css/bootstrap.min.css"; -import "bootstrap" +import "bootstrap"; // index.css' -import '../styles/index.css' +import "../styles/index.css"; +import "../styles/calendar.css"; // components -import Home from './components/Home'; +// import Home from "./components/Home"; +import Sidebar from "./components/Sidebar"; +import Layout from "./components/Layout"; -ReactDOM.createRoot(document.getElementById('root')).render( +ReactDOM.createRoot(document.getElementById("root")).render( - + , -) +); diff --git a/src/styles/calendar.css b/src/styles/calendar.css new file mode 100644 index 000000000..d5e1e67f4 --- /dev/null +++ b/src/styles/calendar.css @@ -0,0 +1,69 @@ +.All { + height: 100vh; + background-color: #b1daf5 !important; +} + +.h-10 { + height: 10%; +} + +.h-20 { + height: 20%; +} + +.h-30 { + height: 30%; +} + +.h-40 { + height: 40%; +} + +.h-60 { + height: 60%; +} + +.h-70 { + height: 70% +} + +.location-top-right { + background-color: rgba(128, 128, 128, 0.2); + +} + +.location-top-left { + background: url(https://www.shutterstock.com/image-vector/fictitious-generic-street-map-urban-600nw-2312834423.jpg); + object-fit:scale-down; +} + +.car-right { + background-color: white; +} + +.car-left { + background-color: rgb(255, 255, 101); +} + +.car-middle { + background-color: midnightblue; + color: white; +} + +.weather-left { + background-color: white; +} + +.quality-top-2 { + border: 1px solid rgba(128, 128, 128, 0.2); + width: 8%; + padding: 10px +} + +.quality-top-3 { + border: 1px solid rgba(128, 128, 128, 0.2); +} + +.dots { + background-color: rgb(128, 128, 128, 0.2); +} \ No newline at end of file diff --git a/src/styles/index.css b/src/styles/index.css index 50716eb70..7f724714e 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -9,3 +9,7 @@ import 'relative/path/to/stylesheet.scss'; */ + +.bg-custom { + background-color: #b1daf5 !important; +}