diff --git a/fondo.jpg b/fondo.jpg new file mode 100644 index 0000000..55a7cc9 Binary files /dev/null and b/fondo.jpg differ diff --git a/fondoPeque.jpg b/fondoPeque.jpg new file mode 100644 index 0000000..f5fb2a8 Binary files /dev/null and b/fondoPeque.jpg differ diff --git a/package.json b/package.json index 1d89e14..50b3d0d 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "pretest": "npm run htmlhint && npm run eslint && npm run stylelint", "test": "jest --coverage", "dev": "vite dev src", - "start": "npm run dev", + "start": "npm run dev", "build": "vite build", "preview": "vite preview" }, @@ -42,4 +42,4 @@ "version": "6.3.0", "commit": "a942adeb868f1fe54b86e34cc4fc4ddb0601700d" } -} \ No newline at end of file +} diff --git a/src/app/firebase.js b/src/app/firebase.js new file mode 100644 index 0000000..7f023c7 --- /dev/null +++ b/src/app/firebase.js @@ -0,0 +1,19 @@ +// Import the functions you need from the SDKs you need +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.1.0/firebase-app.js"; +import { getAuth } from "https://www.gstatic.com/firebasejs/10.1.0/firebase-auth.js" +// TODO: Add SDKs for Firebase products that you want to use +// https://firebase.google.com/docs/web/setup#available-libraries + +// Your web app's Firebase configuration +const firebaseConfig = { + apiKey: "AIzaSyBlAvA2-uauLNm5HRGSWkIqnt0QOMB2QYo", + authDomain: "labsconnect.firebaseapp.com", + projectId: "labsconnect", + storageBucket: "labsconnect.appspot.com", + messagingSenderId: "178492302381", + appId: "1:178492302381:web:e980e33e9675624edb44a4" +}; + +// Initialize Firebase +export const app = initializeApp(firebaseConfig); +export const auth = getAuth(app) \ No newline at end of file diff --git a/src/app/signupForm.js b/src/app/signupForm.js new file mode 100644 index 0000000..df20913 --- /dev/null +++ b/src/app/signupForm.js @@ -0,0 +1,22 @@ +import { createUserWithEmailAndPassword } from "https://www.gstatic.com/firebasejs/10.1.0/firebase-auth.js" +import { auth } from './firebase.js' +const signupForm = document.querySelector('#signupForm'); + +signupForm.addEventListener('submit', async (e) => { + e.preventDefault(); + + const email = signupForm['signup-email'].value; + const password = signupForm['signup-password'].value; + + console.log(email, password); + + try { + const userCredentials = await createUserWithEmailAndPassword(auth, email, password) + console.log(userCredentials) + //para cerrar el modal de registro (aquí le falta) + const signupModal = document.querySelector('#signupModal') + } catch (error) { + console.log(error) + } + +}); diff --git a/src/imagenes/elq.png b/src/imagenes/elq.png new file mode 100644 index 0000000..bb5aff3 Binary files /dev/null and b/src/imagenes/elq.png differ diff --git a/src/index.html b/src/index.html index 788db3c..09c208e 100644 --- a/src/index.html +++ b/src/index.html @@ -3,10 +3,58 @@
+ +