Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/js #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^25.3.0",
"htmlhint": "^1.0.0",
"htmlhint": "^1.1.2",
"jest": "^27.0.1",
"regenerator-runtime": "^0.13.1",
"serve": "^13.0.2",
Expand All @@ -35,4 +35,4 @@
"engines": {
"node": ">=14"
}
}
}
23 changes: 23 additions & 0 deletions src/firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Configuracion firebase
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.8/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.6.8/firebase-analytics.js";
import { getFirestore, collection, addDoc } from "https://www.gstatic.com/firebasejs/9.6.8/firebase-firestore.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
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyBjr-ZpWK_pg0Apckfty-O56ZqnFhwSO_U",
authDomain: "valorant-social.firebaseapp.com",
projectId: "valorant-social",
storageBucket: "valorant-social.appspot.com",
messagingSenderId: "700869464423",
appId: "1:700869464423:web:88689d128213e38acb1fc2",
measurementId: "G-1KJ7QLNHYF"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
Binary file added src/img/E24Skm_WYAQk1qW.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 25 additions & 7 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Social Valorant</title>
</head>
<body>

<section class="firstPage">
<div class="user">
<p>Correo electronico:</p>
<input type="text" placeholder="Escribe tu email" id="email">
</div>
<div class="password">
<p>Contraseña:</p>
<input type="text" placeholder="Escribe tu contraseña" id="password">
</div>
<div class="btnEnter">
<button id="btnEnter">Ingresar</button>
</div>

<div class="register">
<p>¿No tienes usuario?</p>
<a href="" class="organize">Registrate aqui</a>
<a href="" class="organize" id="register">Registrate aqui</a>
<p>o ingresa con</p>
<a href="" class="organize">Google</a>
</div>
</section>
<script type="module" src="main.js"></script>
</body>
</html>
7 changes: 4 additions & 3 deletions src/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// aqui exportaras las funciones que necesites

export const myFunction = () => {
// aqui tu codigo
console.log('Hola mundo!');
export const poyo = () => {
window.addEventListener("DOMContentLoaded", () => {

})
};
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Este es el punto de entrada de tu aplicacion
import { poyo } from './lib/index.js';

import { myFunction } from './lib/index.js';

myFunction();
51 changes: 51 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
*{
font-family: calibri;
}

body{
margin: 0;
}

.firstPage{
background-image: url("/src/img/E24Skm_WYAQk1qW.jpg");
background-repeat: no-repeat;
background-size: cover;
padding: 26%;
}

.user{
position: relative;
top: 3px;
left: 550px;
color: white;
}

.password{
position: relative;
top: -71px;
left: 750px;
color: white;
}

.btnEnter{
position: relative;
top: -92px;
left: 950px;
color: white;
}

.register{
display: flex;
position: relative;
justify-content: center;
color: white;
left: 270px;
top: -60px;
}

.organize{
position: relative;
top: 15px;
margin-right: 5px;
margin-left: 5px;
}