-
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
a481a51
commit efea450
Showing
5 changed files
with
77 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
'use client' | ||
|
||
|
||
import { useState, useEffect } from 'react'; | ||
import Image from 'next/image'; | ||
import Head from 'next/head'; | ||
|
||
const Contactame = () => { | ||
|
||
const [copiadoCorreo, setCopiadoCorreo] = useState(false); | ||
const [copiadoTelefono, setCopiadoTelefono] = useState(false); | ||
|
||
function copiarAlPortapapeles(texto) { | ||
if (navigator.clipboard) { | ||
navigator.clipboard.writeText(texto); | ||
setCopiadoCorreo(true); | ||
setTimeout(() => setCopiadoCorreo(false), 3000); // Espera 3 segundos | ||
} | ||
} | ||
|
||
function copiarTelefono(texto) { | ||
if (navigator.clipboard) { | ||
navigator.clipboard.writeText(texto); | ||
setCopiadoTelefono(true); | ||
setTimeout(() => setCopiadoTelefono(false), 3000); // Espera 3 segundos | ||
} | ||
} | ||
|
||
return ( | ||
<div className="contactme"> | ||
<h1 className="contactmett">CONTACTAME</h1> | ||
<h1>CORREO</h1> | ||
<div className="correo"> | ||
<span id="url" className='correotxt'>[email protected]</span> | ||
<button className='correobtn' onClick={() => copiarAlPortapapeles('[email protected]')}> | ||
{copiadoCorreo ? 'Copiado' : 'Copiar'} | ||
</button> | ||
</div> | ||
<h1>TELEFONO</h1> | ||
<div className="telefono"> | ||
<span id="tel" className='correotxt'>+52 3141576598</span> | ||
<button className='correobtn' onClick={() => copiarTelefono('+523141576598')}> | ||
{copiadoTelefono ? 'Copiado' : 'Copiar'} | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Contactame; |
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 |
---|---|---|
|
@@ -6,18 +6,17 @@ import { useState, useEffect } from 'react'; | |
import Image from 'next/image'; | ||
import Head from 'next/head'; | ||
|
||
import Navbar from './components/navbar'; | ||
import styles from "./css/main.css"; | ||
import stylerespons from "./css/mainrespons.css"; | ||
|
||
import miImagen from './images/1mb.jpeg'; | ||
|
||
import Navbar from './components/navbar'; | ||
import Tecnologias from './components/tecnologies'; | ||
import Proyectos from './components/projects'; | ||
import Contactame from './components/contactme'; | ||
|
||
export default function Portafolio() { | ||
const [copiadoCorreo, setCopiadoCorreo] = useState(false); | ||
const [copiadoTelefono, setCopiadoTelefono] = useState(false); | ||
|
||
useEffect(() => { | ||
if (typeof window !== 'undefined') { | ||
|
@@ -41,30 +40,16 @@ export default function Portafolio() { | |
} | ||
} | ||
|
||
function copiarAlPortapapeles(texto) { | ||
if (navigator.clipboard) { | ||
navigator.clipboard.writeText(texto); | ||
setCopiadoCorreo(true); | ||
setTimeout(() => setCopiadoCorreo(false), 3000); // Espera 3 segundos | ||
} | ||
} | ||
|
||
function copiarTelefono(texto) { | ||
if (navigator.clipboard) { | ||
navigator.clipboard.writeText(texto); | ||
setCopiadoTelefono(true); | ||
setTimeout(() => setCopiadoTelefono(false), 3000); // Espera 3 segundos | ||
} | ||
} | ||
|
||
return ( | ||
<div className='main'> | ||
<Navbar /> | ||
<div className="personaldata"> | ||
<div className="datos1"> | ||
<div className="photomia"> | ||
<button type="button" className='photo'> | ||
<Image src={miImagen} width={"auto"} height={"auto"} priority={true} alt="" /> | ||
<a href="/CV - Alberto Ambriz.pdf" download> | ||
<Image src={miImagen} width={"auto"} height={"auto"} priority={true} alt="" /> | ||
</a> | ||
</button> | ||
</div> | ||
<div className="datos"> | ||
|
@@ -95,7 +80,7 @@ export default function Portafolio() { | |
</a> | ||
</button> | ||
<button> | ||
<a href="https://url_de_tu_documento" download> | ||
<a href="/CV - Alberto Ambriz.pdf" download> | ||
<i className="bi bi-file-earmark-person-fill"></i> | ||
</a> | ||
</button> | ||
|
@@ -107,23 +92,7 @@ export default function Portafolio() { | |
|
||
<Proyectos/> | ||
|
||
<div className="contactme"> | ||
<h1 className="contactmett">CONTACTAME</h1> | ||
<h1>CORREO</h1> | ||
<div className="correo"> | ||
<span id="url" className='correotxt'>[email protected]</span> | ||
<button className='correobtn' onClick={() => copiarAlPortapapeles('[email protected]')}> | ||
{copiadoCorreo ? 'Copiado' : 'Copiar'} | ||
</button> | ||
</div> | ||
<h1>TELEFONO</h1> | ||
<div className="telefono"> | ||
<span id="tel" className='correotxt'>+52 3141576598</span> | ||
<button className='correobtn' onClick={() => copiarTelefono('+523141576598')}> | ||
{copiadoTelefono ? 'Copiado' : 'Copiar'} | ||
</button> | ||
</div> | ||
</div> | ||
<Contactame/> | ||
|
||
<div className='creador'> | ||
<h4>Estilo de portafolio con derechos reservados <i className="bi bi-c-circle"></i></h4> | ||
|
Binary file not shown.