+
+
+
);
};
+//uso de mathfloor para redondear
+//sacamos el primer numero de la izquierda (1 + 6 digitos representados en 0 hasta llegar al ultimo digito del contador)
+//uso de evento en el form para que no se reinicie, ya que el submit reinicia la pagina.
export default Home;
\ No newline at end of file
diff --git a/src/js/main.jsx b/src/js/main.jsx
index 14662105b..6011f6f51 100644
--- a/src/js/main.jsx
+++ b/src/js/main.jsx
@@ -1,18 +1,28 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
-//Bootstrap
-import "bootstrap/dist/css/bootstrap.min.css";
+// Bootstrap
+import "bootstrap/dist/css/bootstrap.min.css"
import "bootstrap"
-// index.css'
+// index.css
import '../styles/index.css'
-// components
-import Home from './components/Home';
+// Components
+import Home from './components/Home'
+
+const reactRender = ReactDOM.createRoot(document.getElementById('root'))
+
+let counter = 0
+
+setInterval(() => {
+ reactRender.render(
+
+
+
+ )
+ counter++
+}, 1000)
+
+
-ReactDOM.createRoot(document.getElementById('root')).render(
-
-
- ,
-)
diff --git a/src/styles/index.css b/src/styles/index.css
index 50716eb70..69655961a 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -1,11 +1,23 @@
-/*
-
- You can write your own styles here...
-
-
- ...Or you can use the import command to include
- other sylesheets into your bunde as well, e.j:
-
- import 'relative/path/to/stylesheet.scss';
-
-*/
+.counter-holder{
+ background-color: whitesmoke;
+ width: 80%;
+ display: flex;
+ justify-content: space-around;
+ margin: 0 auto;
+ padding: 1rem;
+}
+.digito{
+ color: black;
+ font-weight: bold;
+ font-size: 4rem;
+ padding: 0.5rem;
+}
+.fondo-contador {
+ background-color: orange;
+ background-size: cover;
+ background-position: center;
+ min-height: 100vh;
+}
+.container {
+ color: aliceblue;
+}
\ No newline at end of file