-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
64b12f5
commit 7429b69
Showing
5 changed files
with
287 additions
and
35 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
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,16 +1,30 @@ | ||
/* https://static-00.iconduck.com/assets.00/next-js-icon-512x512-zuauazrk.png - NEXTJS ICON */ | ||
|
||
|
||
import React from 'react' | ||
'use client' | ||
import Image from 'next/image'; | ||
import 'bootstrap-icons/font/bootstrap-icons.css'; | ||
import React, { useState } from 'react'; | ||
|
||
import styles from "./css/main.css" | ||
import style from "./css/mainrespons.css" | ||
import Navbar from './components/navbar'; | ||
|
||
|
||
export default function Portafolio() { | ||
export default function Portafolio() { | ||
|
||
const [copiado, setCopiado] = useState(false); | ||
|
||
function copiarAlPortapapeles(id_elemento) { | ||
const aux = document.createElement('input'); | ||
aux.setAttribute('value', document.getElementById(id_elemento).innerHTML); | ||
document.body.appendChild(aux); | ||
aux.select(); | ||
document.execCommand('copy'); | ||
document.body.removeChild(aux); | ||
|
||
// Cambiar el estado para mostrar "Copiado" | ||
setCopiado(true); | ||
} | ||
|
||
return ( | ||
<div className='main'> | ||
|
@@ -45,8 +59,6 @@ export default function Portafolio() { | |
|
||
|
||
|
||
|
||
|
||
<div className="lenguajes"> | ||
<h2>LENGUAJES QUE HE TRABAJADO</h2> | ||
|
||
|
@@ -73,7 +85,6 @@ export default function Portafolio() { | |
|
||
|
||
|
||
|
||
<div className='projects'> | ||
<h2>PROYECTOS</h2> | ||
|
||
|
@@ -167,11 +178,31 @@ export default function Portafolio() { | |
|
||
</div> | ||
|
||
|
||
|
||
<div className="contactme"> | ||
|
||
<h1>CORREO</h1> | ||
<div className="correo"></div> | ||
<span id="url" className='correotxt'>[email protected]</span> | ||
<button className='correobtn' onClick={() => copiarAlPortapapeles('url')}> | ||
{copiado ? 'Copiado' : 'Copiar'} | ||
</button> | ||
|
||
<h1>TELEFONO</h1> | ||
<div className="telefono"> | ||
<span id="url" className='correotxt'>+52 3141576598</span> | ||
<button className='correobtn' onClick={() => copiarAlPortapapeles('url')}> | ||
{copiado ? 'Copiado' : 'Copiar'} | ||
</button> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
</div> | ||
<script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script> | ||
</div> | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.