Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Lifestyle app with advances in javascript.#22

Open
EdithOrt wants to merge 18 commits into
Laboratoria:masterfrom
Lourdesdiaz11:master
Open

Lifestyle app with advances in javascript.#22
EdithOrt wants to merge 18 commits into
Laboratoria:masterfrom
Lourdesdiaz11:master

Conversation

@EdithOrt

@EdithOrt EdithOrt commented May 1, 2020

Copy link
Copy Markdown

No description provided.

@HectorBlisS HectorBlisS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edith tu trabajo es muy consistente, es una lastima no poder ver el trabajo de ninguna de tus compañeras pero al mismo tiempo demuestras la solides con la que puedes crear una aplicación web, felicidades por el trabajo duro y por no rendirte. La modularización puede mejorar y también la semántica pero se ve que vas por buen camino.

Comment thread src/index.html Outdated
Comment on lines +18 to +22
<button id="logo" href="#/" class="btnNav"><img src="images/logoWhite.png"> </button>
<button id="browser" href="#/browser" class="btnNav"><img src="images/browser.png"></button>
<button id="favorites" href="#/favorites" class="btnNav"><img src="images/whiteHeart.png"></button>
<button id="oupladContent" href="#/newpost" class="btnNav"><img src="images/camera.png"></button>
<button id="profile" href="#/profile" class="btnNav"></button>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todas las imagenes deben llevar un alt="" con un caption para ayudar con el SEO, siempre!

Comment thread src/index.html
</footer>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase.js"></script>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Con este script no necesitamos el de analitycs ya lo incluye

Comment thread src/index.js Outdated


// Your web app's Firebase configuration
var firebaseConfig = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO USAMOS VAR

Comment thread src/login.js
@@ -0,0 +1,16 @@
import showOupladWindow from './uopladContent.js'
let content= document.querySelector(".root");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreguemos poquita más semantica a los nodos contentSection o homeContent

Comment thread src/style.css
/*Flexbox*/
}

.btnNav{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En css es importante no usar camelCase, se prefiere con guiones 'preview-image'

Comment thread src/uopladContent.js Outdated
Comment on lines +1 to +2
import singIn from './login.js'
import profile from './profile.js'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien por las importaciones, pero podríamos meter mas funciones en el mismo archivo e importar deconstruyendo {signIn, profile} además son relacionados.

Comment thread src/uopladContent.js Outdated
let header= document.querySelector(".header");
let staticMenu= document.querySelector("#staticMenu");

export function showOupladWindow (){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy buen nombre de función

Comment thread src/uopladContent.js
Comment on lines +16 to +31
<section>
<div id="divFile">
<img id="labelImg" src="images/plusImage.png">
<input type="file" accept="image/*" class="addImage" id="addImage">
</div>
<div id="previewImage"></div>
<label>
Título
<input type="text" placeholder="Máximo 70 carácteres"/>
</label>
<label>
Descripción
<input type="text" id="title" placeholder="Máximo 200 carácteres"/>
</label>
<button id="toPost">PUBLICAR</button>
</section>`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La identación es importante al usar template strings, ya que nos permite usar espacios para la legibilidad.

Comment thread src/index.js
firebase.firestore();
window.addEventListener('load', init); No newline at end of file
// Your web app's Firebase configuration
const firebaseConfig = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien el cambio de var a const

Comment thread src/uopladContent.js
Comment on lines +6 to 8
const content = document.querySelector(".root");
let header= document.querySelector(".header");
let staticMenu= document.querySelector("#staticMenu");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es indiferente (para mi y la mayoria de devs) el uso de let o const pero es mejor usar solo 1 para ser consistentes

@EdithOrt EdithOrt force-pushed the master branch 2 times, most recently from bddf96a to d53704f Compare May 9, 2020 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants