Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
mejorando el codigo
  • Loading branch information
RaulMF40 authored Mar 26, 2024
1 parent 71bb7f7 commit 7f8b45b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const createHeader = () => {
const inputMenu$$ = document.createElement('input')
inputMenu$$.type = 'checkbox'
inputMenu$$.id = 'menu'
inputMenu$$.style.display = 'none'

const label$$ = document.createElement('label')
label$$.htmlFor = 'menu'
Expand Down Expand Up @@ -89,6 +90,17 @@ const createHeader = () => {

createHeader()

const createHero = () => {
const img$$ = document.createElement('img')
img$$.className = 'hero-img'
const figure$$ = document.createElement('figure')
figure$$.className = 'hero-container'
img$$.src = './assets/comic.jpg'
figure$$.appendChild(img$$)
app$$.appendChild(figure$$)
}
createHero()

// Función para crear las etiquetas de filtro
const createFilterTags = () => {
const aside$$ = document.createElement('aside')
Expand Down

0 comments on commit 7f8b45b

Please sign in to comment.