Skip to content

Commit

Permalink
feat: habemus domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jamerrq committed May 19, 2024
1 parent 327ba61 commit ac03a0d
Show file tree
Hide file tree
Showing 33 changed files with 192 additions and 310 deletions.
6 changes: 2 additions & 4 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export default defineConfig({
preact(),
pageInsight(),
sitemap({
filter: (page) =>
page !== 'https://jamerrq.deno.dev/board/' &&
page !== 'https://jamerrq.deno.dev/es/board/'
filter: (page) => page !== 'https://jamerrq.dev/board/'
}),
mdx(),
AstroPWA({
Expand Down Expand Up @@ -86,7 +84,7 @@ export default defineConfig({
strategy: 'pathname'
}
},
site: 'https://jamerrq.deno.dev',
site: 'https://jamerrq.dev',
image: {
domains: ['https://github.com/']
},
Expand Down
Binary file added public/compressed_noise.webm
Binary file not shown.
1 change: 0 additions & 1 deletion public/googleb2ce14a6d711f834.html

This file was deleted.

Binary file added public/img/noise.webm
Binary file not shown.
131 changes: 0 additions & 131 deletions public/offline.html

This file was deleted.

18 changes: 18 additions & 0 deletions src/components/css-peeps/about-me-peep.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div data-css-peeps='twists1 calm mustache4 sweater-crossed' id='peep'></div>
<style>
@import url(https://unpkg.com/css-peeps@1/css-peeps.compat.css);

#peep {
--peep-hat-color: #fc03c2;
--peep-hair-color: #34d399;
--peep-skin-color: #8d5524;
--peep-accessory-color: #00ff00;
--peep-facial-hair-color: #ffd700;
--peep-object-color: #ffa500;
--peep-clothes-color: #00613d;

display: inline-block;
width: 130px;
height: 130px;
}
</style>
5 changes: 3 additions & 2 deletions src/components/css-peeps/peep.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ const {

--peep-clothes-color: var(--clothesColor);

width: 125px;
height: 125px;
width: 80px;
height: 80px;
border: 1px solid white;
}
</style>
</>
4 changes: 2 additions & 2 deletions src/components/featured-and-projects/indexPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function IndexPicker({
reference.value = i
}
return (
<div className='absolute flex bottom-3 left-1/2 transform -translate-x-1/2'>
<div className='absolute hidden xl:flex bottom-3 left-1/2 transform -translate-x-1/2'>
{Array.from(Array(n).keys()).map((i) => (
<button
key={i}
onClick={() => goToIndex(i)}
aria-label={`subpage ${i}`}
className={`w-4 h-3 rounded-full mx-1 ${
className={`w-4 h-2 rounded-full mx-1 ${
i === reference.value
? 'dark:bg-cyan-300 bg-cyan-900'
: 'dark:bg-cyan-950 bg-cyan-500'
Expand Down
9 changes: 3 additions & 6 deletions src/components/featured-and-projects/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ export const DoubleRightButton = ({ _f }: { _f: () => void }) => (
)

function SimpleIcon(key: string) {
if (key === 'javascript') {
console.log('key', key)
}
const Icon = simpleIcons[key as keyof toExportType]
if (typeof Icon === 'function') {
// return icon with title
Expand Down Expand Up @@ -73,7 +70,7 @@ function IndexPicker({ n, reference }: { n: number; reference: any }) {
key={i}
onClick={() => goToIndex(i)}
aria-label={`subpage ${i}`}
className={`w-3 h-3 rounded-full mx-1 ${
className={`w-3 h-2 rounded-full mx-1 ${
i === reference.value ? 'bg-cyan-300' : 'bg-cyan-950'
}`}
/>
Expand Down Expand Up @@ -138,7 +135,7 @@ function goLeft() {
cooldown.value = COOLDOWN_TIME
}

function ResourceCard({
function ProjectCard({
project,
lang,
i
Expand Down Expand Up @@ -280,7 +277,7 @@ export default function Resources({ n = 1, lang = 'en' }: ResourcesProps) {
<>
{Array.from(Array(n).keys()).map((i) => {
const project = concatedData.at((i + index.value) % data.length)
return <ResourceCard project={project} lang={lang} i={i} key={i} />
return <ProjectCard project={project} lang={lang} i={i} key={i} />
})}
</>
)
Expand Down
27 changes: 27 additions & 0 deletions src/components/head/richResults.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
/** https://developers.google.com/search/docs/appearance/structured-data/organization */
const organizationSchema = {
'@context': 'https://schema.org',
'@type': 'website',
url: 'https://jamerrq.dev',
image: 'https://jamerrq.dev/og-image2.png',
sameAs: [
'https://www.instagram.com/jamerrq',
'https://x.com/jamerrq',
'https://github.com/jamerrq',
'https://twitter.com/jamerrq',
'https://www.linkedin.com/in/jamerrq'
],
logo: 'https://jamerrq.dev/og-image2.png',
name: 'jamerrq.dev',
alternateName: 'Jamer José - jamerrq.dev',
description:
"I'm a backend developer with a focus on Node.js, Python, C# (.NET) and TypeScript. I am passionate about building scalable and maintainable systems."
}
---

<script
is:inline
type='application/ld+json'
set:html={JSON.stringify(organizationSchema)}
/>
22 changes: 13 additions & 9 deletions src/components/head/seo.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import { SEO } from 'astro-seo'
import RichResults from './richResults.astro'
---

<meta charset='UTF-8' />
Expand All @@ -9,18 +10,20 @@ import { SEO } from 'astro-seo'
content='width=device-width,initial-scale=1,viewport-fit=cover'
/>
<link rel='icon' type='image/png' href='/favicon.png' />
<!-- Cannonical -->
<link rel='canonical' href='https://jamerrq.dev' />
<meta name='generator' content={Astro.generator} />
<!-- Open Graph -->
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:site' content='@jamerrq' />
<meta name='twitter:title' content='jamerrq.dev' />
<meta name='twitter:description' content='Software Development' />
<meta name='twitter:image' content='https://jamerrq.deno.dev/og-image2.png' />
<meta name='twitter:description' content='Jamer José: Software Development' />
<meta name='twitter:image' content='https://jamerrq.dev/og-image2.png' />
<meta property='og:title' content='jamerrq.dev' />
<meta property='og:type' content='personal website' />
<meta property='og:url' content='https://jamerrq.deno.dev' />
<meta property='og:image' content='https://jamerrq.deno.dev/og-image2.png' />
<meta property='og:description' content='Software Development' />
<meta property='og:url' content='https://jamerrq.dev' />
<meta property='og:image' content='https://jamerrq.dev/og-image2.png' />
<meta property='og:description' content='Jamer José: Software Development' />
<meta property='og:site_name' content='jamerrq.dev' />
<meta name='theme-color' content='#10B981' />
<!-- Robots -->
Expand Down Expand Up @@ -112,21 +115,22 @@ import { SEO } from 'astro-seo'

<SEO
title='Jamer José - Backend Developer'
description='I am a backend developer with a focus on Node.js and TypeScript. I am passionate about building scalable and maintainable systems.'
description="I'm a backend developer with a focus on Node.js, Python, C# (.NET) and TypeScript. I am passionate about building scalable and maintainable systems."
openGraph={{
basic: {
title: 'jamerrq.dev',
type: 'website',
image: 'https://jamerrq.deno.dev/og-image2.png'
image: 'https://jamerrq.dev/og-image2.png'
}
}}
twitter={{
creator: '@jamerrq',
card: 'summary_large_image',
description:
'I am a backend developer with a focus on Node.js and TypeScript. I am passionate about building scalable and maintainable systems.',
image: 'https://jamerrq.deno.dev/og-image2.png',
"I'm a backend developer with a focus on Node.js, Python, C# (.NET) and TypeScript. I am passionate about building scalable and maintainable systems.",
image: 'https://jamerrq.dev/og-image2.png',
site: '@jamerrq',
title: 'jamerrq.dev'
}}
/>
<RichResults />
15 changes: 12 additions & 3 deletions src/components/icons/simple-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
siCss3,
siVisualstudiocode,
siDeno,
siNodedotjs
siNodedotjs,
siVitest
} from 'simple-icons'

export const ICONS_SAFE_LIST_TAILWIND = [
Expand All @@ -42,7 +43,10 @@ export const ICONS_SAFE_LIST_TAILWIND = [
siJavascript,
siPhp,
siCss3,
siNodedotjs
siNodedotjs,
siVisualstudiocode,
siDeno,
siVitest
].map((icon) => `fill-[#${icon.hex}]`)

export interface SimpleIconProps {
Expand Down Expand Up @@ -171,6 +175,10 @@ function NodeLogo() {
return SimpleIcon({ __html: siNodedotjs.svg, fill: `#${siNodedotjs.hex}` })
}

function VitestLogo() {
return SimpleIcon({ __html: siVitest.svg, fill: `#${siVitest.hex}` })
}

const toExport = {
Astro: AstroLogo,
Supabase: SupabaseLogo,
Expand All @@ -192,7 +200,8 @@ const toExport = {
Php: PhpLogo,
'Visual Studio Code': VisualStudioCodeLogo,
Deno: DenoLogo,
NodeJS: NodeLogo
NodeJS: NodeLogo,
Vitest: VitestLogo
}

export type toExportType = typeof toExport
Expand Down
Loading

0 comments on commit ac03a0d

Please sign in to comment.