-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
105 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
export const footer = () => { | ||
const htmlTemplate = | ||
<p> Dev by Cami & Vane </p> | ||
export const Footer = () => { | ||
const Footer = document.createElement("footer"); | ||
Footer.id = "footer" | ||
Footer.innerHTML = `<footer> Dev by Cami & vane </footer>`; | ||
|
||
|
||
const footer = document.createElement('footer'); | ||
footer.classList.add('container'); | ||
footer.innerHTML = htmlTemplate; | ||
return footer; | ||
} | ||
return Footer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const Header = () => { | ||
const Header = document.createElement("header"); | ||
Header.id = "header" | ||
Header.innerHTML = `<h1> w a r s i e p e d i a </h1>`; | ||
Header.innerHTML = `<h1> w a r s i e p e d i a </h1> <h2>May the Force be with you</h2>`; | ||
|
||
return Header | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const buton = () =>{ | ||
export const buton = () =>{ | ||
const button = document.createElement('button') | ||
button.textContent='now click here' | ||
return button; | ||
} | ||
export default buton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export const Error = () => { | ||
return document.createElement('p').textContent("hola mundo"); | ||
const errorView = document.createElement('div'); | ||
|
||
const errorMessage = document.createElement('p'); | ||
errorMessage.innerHTML = `Error` | ||
errorView.appendChild(errorMessage); | ||
|
||
return errorView | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export const example = () => { | ||
return document.createElement('p').textContent("hola mundo"); | ||
}; | ||
<<<<<<< HEAD | ||
======= | ||
export const Example = () => { | ||
return document.createElement('p').textContent("hola mundo"); | ||
}; | ||
>>>>>>> f0ddbf36c21f4736f12f50458920976e226e3ff3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,39 @@ | ||
import { template } from "@babel/core"; | ||
import buton from "../components/returnButton.js"; | ||
import footer from "../components/footer.js" | ||
import data from "../data/dataset.js"; | ||
import buton from "../components/returnButton.js"; | ||
// import { template } from "@babel/core"; | ||
// import buton from "../components/returnButton.js"; | ||
import {Footer} from "../components/footer.js" | ||
// import data from "../data/dataset.js"; | ||
// import buton from "../components/returnButton.js"; | ||
import { Header } from "../components/header.js"; | ||
|
||
export const Home = () => { | ||
const section = document.createElement('section'); //se crea una sección para contener el header | ||
const headerHome = section; //se asigna | ||
const header = Header(); //se llama al componente | ||
headerHome.appendChild(header) //se agrega el componente a la sección | ||
return Home | ||
const divContainerHome = document.createElement('div'); //se crea una sección para contener el header | ||
|
||
//se llaman componentes | ||
const headerComponent = Header(); | ||
|
||
const footerComponent = Footer(); | ||
|
||
//se agregan los componentes al contenedor de toda la vista Home | ||
divContainerHome.appendChild(headerComponent); | ||
divContainerHome.appendChild(footerComponent); | ||
|
||
return divContainerHome | ||
} | ||
|
||
export const Example = () => { | ||
const example = () => { | ||
const container = document.createElement('span'); | ||
const tittle = document.createElement('h1') | ||
tittle.textContent='jajaja' | ||
container.append(tittle, buton()) | ||
return container | ||
}; | ||
}; | ||
// export const Example = () => { | ||
// const example = () => { | ||
// const container = document.createElement('span'); | ||
// const tittle = document.createElement('h1') | ||
// tittle.textContent='jajaja' | ||
// container.append(tittle, buton()) | ||
// return container | ||
// }; | ||
// }; | ||
|
||
const footer = () => { | ||
const view = document.createElement ("section"); | ||
const footerTitle= document.createElement('h1') | ||
footerTitle.textContent='Devs Cami & Vane' | ||
view.append (footerTitle) | ||
return view | ||
}; | ||
// const footer = () => { | ||
// const view = document.createElement ("section"); | ||
// const footerTitle= document.createElement('h1') | ||
// footerTitle.textContent='Devs Cami & Vane' | ||
// view.append (footerTitle) | ||
// return view | ||
// }; |