-
Notifications
You must be signed in to change notification settings - Fork 1
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
19 changed files
with
136 additions
and
125 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
interface Props { | ||
lang?: string | ||
} | ||
const { lang = 'en' }: Props = Astro.props | ||
import Badge from './badge.astro' | ||
--- | ||
|
||
<Badge | ||
class='animate-fade-in group relative inline-flex h-12 items-center justify-center overflow-hidden rounded-md font-medium text-neutral-200 duration-500' | ||
> | ||
<div | ||
class='translate-x-0 opacity-100 transition group-hover:-translate-x-[150%] group-hover:opacity-0 flex' | ||
> | ||
[email protected] | ||
<svg | ||
class='w-4 h-4 ml-2 text-slate-900 group' | ||
aria-hidden='true' | ||
xmlns='http://www.w3.org/2000/svg' | ||
width='12' | ||
height='12' | ||
fill='none' | ||
viewBox='0 0 24 24' | ||
> | ||
<path | ||
stroke='currentColor' | ||
stroke-linecap='round' | ||
stroke-linejoin='round' | ||
stroke-width='2' | ||
d='M8 7H5a2 2 0 0 0-2 2v4m5-6h8M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m0 0h3a2 2 0 0 1 2 2v4m0 0v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6m18 0s-4 2-9 2-9-2-9-2m9-2h.01' | ||
></path> | ||
</svg> | ||
</div> | ||
<button | ||
class='absolute translate-x-[150%] opacity-0 transition group-hover:translate-x-0 group-hover:opacity-100 flex items-center gap-2' | ||
id='copyMailButton' | ||
> | ||
{lang === 'en' ? 'copy this email' : 'copia este correo'} | ||
<svg | ||
width='15' | ||
height='15' | ||
viewBox='0 0 15 15' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
class='h-6 w-6' | ||
> | ||
<path | ||
d='M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z' | ||
fill='currentColor' | ||
fill-rule='evenodd' | ||
clip-rule='evenodd' | ||
> | ||
</path> | ||
</svg> | ||
</button> | ||
</Badge> |
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,17 +1,24 @@ | ||
--- | ||
const isInBlog = Astro.url.pathname.includes('/blog/') | ||
--- | ||
|
||
<style> | ||
.background { | ||
/* background-image: url('/pizarra.webp'); */ | ||
background-color: #222831; | ||
min-height: 100%; | ||
width: 100vw; | ||
background-position: center; | ||
background-repeat: repeat; | ||
.noise::before { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 100vh; | ||
content: ''; | ||
opacity: 0.05; | ||
z-index: -50; | ||
inset: 0; | ||
pointer-events: none; | ||
background: url('/img/resized_noise.gif'); | ||
} | ||
</style> | ||
|
||
<div class='background'></div> | ||
<div | ||
data-blog={isInBlog} | ||
class='fixed top-0 -z-50 h-[100dvh] w-[100dvw] data-[blog]:bg-cover data-[blog]:bg-center bg-[#222831] data-[blog]:bg-[url("/pizarra.webp")] data-[blog]:bg-opacity-5' | ||
> | ||
<div class='noise'></div> | ||
</div> |
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,6 @@ | ||
--- | ||
import { siMaildotru } from 'simple-icons' | ||
import Copy from '@components/icons/copy.astro' | ||
import GenericIcon from '@components/icons/icon.astro' | ||
interface Props { | ||
|
@@ -11,6 +10,7 @@ interface Props { | |
const { lang }: Props = Astro.props | ||
import Box from '@components/boxes/box.astro' | ||
import EmailBadge from '@components/badges/email-badge.astro' | ||
import getIconsFn from '@data/socials.ts' | ||
const socials = getIconsFn(lang) | ||
|
@@ -24,18 +24,7 @@ const socials = getIconsFn(lang) | |
<p class='font-semibold text-3xl xl:text-4xl'>Contact Links</p> | ||
<GenericIcon svg={siMaildotru.svg} /> | ||
</header> | ||
<div class='flex h-fit w-full items-center justify-center gap-2'> | ||
<span | ||
class='font-bold font-secondary text-sm xl:text-base text-center dark:text-cyan-100 text-cyan-950 dark:bg-emerald-950 bg-emerald-500 p-2 rounded shadow-sm shadow-black' | ||
> | ||
[email protected] | ||
</span> | ||
<button id='copyMailButton' aria-label='copy mail button' title='copy mail'> | ||
<Copy | ||
class='w-8 h-8 dark:bg-emerald-300 bg-slate-900 fill-slate-300 dark:fill-slate-950 px-2 py-1 rounded cursor-pointer hover:scale-110 transition-all shadow-sm shadow-black' | ||
/> | ||
</button> | ||
</div> | ||
<EmailBadge lang={lang} /> | ||
<div class='flex justify-around gap-4 w-[90%]'> | ||
{ | ||
socials.map((s) => ( | ||
|
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
Oops, something went wrong.