-
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.
Update BackLink and add AboutMeSection and SocialSection
- Loading branch information
1 parent
7055056
commit 8d4addc
Showing
4 changed files
with
53 additions
and
22 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,11 +1,28 @@ | ||
--- | ||
import { ArrowLeft } from 'lucide-preact' | ||
import Link from './Link.astro' | ||
const { href } = Astro.props | ||
--- | ||
|
||
<Link | ||
class='p-4 h-fit border-2 border-[#282828] bg-[#0E0F11] hover:border-white transition-colors rounded-full' | ||
href='javascript: history.go(-1)' | ||
class='p-4 h-fit border-2 border-[#282828] bg-[#0E0F11] hover:border-white transition-colors rounded-full cursor-pointer' | ||
> | ||
<ArrowLeft size={16} /> | ||
</Link> | ||
|
||
<script> | ||
import { navigate } from 'astro:transitions/client' | ||
|
||
document.addEventListener('astro:page-load', () => { | ||
const button = document.querySelector('a') | ||
|
||
button?.addEventListener('click', () => { | ||
if (document.referrer.includes(window.location.origin)) { | ||
history.back() | ||
} else { | ||
navigate('/') | ||
} | ||
}) | ||
}) | ||
</script> |
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,26 @@ | ||
--- | ||
import Section from '../Section.astro' | ||
import Link from '../Link.astro' | ||
import ExternalLink from '../ExternalLink.astro' | ||
--- | ||
|
||
<Section> | ||
<p class='leading-7 sm:px-4 sm:text-center'> | ||
Apasionado por el desarrollo y ansioso por crecer en este fascinante campo. Encuéntrame en | ||
<ExternalLink | ||
href='https://www.linkedin.com/in/danielcarmonagilibert/' | ||
class='inline-flex underline decoration-dotted underline-offset-2 border-0' | ||
> | ||
</ExternalLink> para una respuesta rápida. | ||
</p> | ||
|
||
<!-- <p class='leading-7 sm:px-4 sm:text-center'> | ||
Enviame un mensaje <Link | ||
href='/contact' | ||
class='inline-flex underline decoration-dotted underline-offset-2 border-0' | ||
> | ||
contacto | ||
</Link> | ||
</p> --> | ||
</Section> |
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