Skip to content

Commit

Permalink
fix: remove link
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Aug 8, 2024
1 parent 35fb681 commit b1a3f11
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 90 deletions.
123 changes: 60 additions & 63 deletions app/open-source/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,85 +13,82 @@ export const metadata = genPageMetadata({

const projects = [
{
name: "nestjs-otel",
name: 'nestjs-otel',
description:
"OpenTelemetry (Tracing + Metrics) module for Nest framework (node.js)",
image: "/images/project-logo.png",
github: "https://github.com/pragmaticivan/nestjs-otel",
'OpenTelemetry (Tracing + Metrics) module for Nest framework (node.js)',
image: '/images/project-logo.png',
github: 'https://github.com/pragmaticivan/nestjs-otel',
},
{
name: "nest-resend",
description: "Injectable Resend client for your nestjs projects",
image: "/images/project-logo.png",
github: "https://github.com/pragmaticivan/nest-resend",
name: 'nest-resend',
description: 'Injectable Resend client for your nestjs projects',
image: '/images/project-logo.png',
github: 'https://github.com/pragmaticivan/nest-resend',
},
{
name: "dotfiles",
name: 'dotfiles',
description:
"Your dotfiles are how you personalize your system. These are mine",
image: "/images/project-logo.png",
github: "https://github.com/pragmaticivan/dotfiles",
'Your dotfiles are how you personalize your system. These are mine',
image: '/images/project-logo.png',
github: 'https://github.com/pragmaticivan/dotfiles',
},
{
name: "nestjs-otel-prom-grafana-tempo",
name: 'nestjs-otel-prom-grafana-tempo',
description:
"Prometheus + Grafana + Tempo + Loki Observability Stack example",
image: "/images/project-logo.png",
github: "https://github.com/pragmaticivan/nestjs-otel-prom-grafana-tempo",
'Prometheus + Grafana + Tempo + Loki Observability Stack example',
image: '/images/project-logo.png',
github: 'https://github.com/pragmaticivan/nestjs-otel-prom-grafana-tempo',
},
]
];

const OpenSourcePage = () => (
<>
<NavigationBar />
<>
<NavigationBar />

<section id="projects" className='mx-auto max-w-3xl px-4 sm:px-6 md:max-w-5xl'>
<h1 className="my-20 text-center text-4xl font-bold tracking-tight text-zinc-800 sm:text-5xl dark:text-zinc-100">
Open Source
<hr className="w-6 h-1 mx-auto my-4 bg-cyan-700 border-0 rounded"></hr>
</h1>
<section
id="projects"
className="mx-auto max-w-3xl px-4 sm:px-6 md:max-w-5xl"
>
<h1 className="my-20 text-center text-4xl font-bold tracking-tight text-zinc-800 sm:text-5xl dark:text-zinc-100">
Open Source
<hr className="mx-auto my-4 h-1 w-6 rounded border-0 bg-cyan-700"></hr>
</h1>

<div className="flex flex-col space-y-28 mb-32">
{projects.map((project, idx) => {
return (
<div key={idx}>
<div className="flex flex-col animate-slideUpCubiBezier animation-delay-2 md:flex-row md:space-x-12">
<div className=" md:w-1/3">
<Image
src={project.image}
alt=""
width={500}
height={500}
className="rounded-xl shadow-xl hover:opacity-70"
/>
</div>
<div className="mt-1 md:w-1/2">
<h1 className="text-4xl font-bold mb-6">{project.name}</h1>
<p className="text-xl leading-7 mb-4 text-neutral-600 dark:text-neutral-400">
{project.description}
</p>
<div className="flex flex-row align-bottom space-x-4">
<Link href={project.github} target="_blank">
<BsGithub
size={30}
className="hover:-translate-y-1 transition-transform cursor-pointer"
/>
</Link>
{project.link && <Link href={project.link} target="_blank">
<BsArrowUpRightSquare
size={30}
className="hover:-translate-y-1 transition-transform cursor-pointer"
/>
</Link>}
</div>
</div>
<div className="mb-32 flex flex-col space-y-28">
{projects.map((project, idx) => {
return (
<div key={idx}>
<div className="animate-slideUpCubiBezier animation-delay-2 flex flex-col md:flex-row md:space-x-12">
<div className="md:w-1/3">
<Image
src={project.image}
alt=""
width={500}
height={500}
className="rounded-xl shadow-xl hover:opacity-70"
/>
</div>
<div className="mt-1 md:w-1/2">
<h1 className="mb-6 text-4xl font-bold">{project.name}</h1>
<p className="mb-4 text-xl leading-7 text-neutral-600 dark:text-neutral-400">
{project.description}
</p>
<div className="flex flex-row space-x-4 align-bottom">
<Link href={project.github} target="_blank">
<BsGithub
size={30}
className="cursor-pointer transition-transform hover:-translate-y-1"
/>
</Link>
</div>
</div>
</div>
)
})}
</div>
</section>
</>
</div>
);
})}
</div>
</section>
</>
);

export default OpenSourcePage;
25 changes: 12 additions & 13 deletions app/uses/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const IndexPage = () => (
Uses
</h1>

<div className="my-6 space-y-7 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<div className="my-6 space-y-7 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<p>
There&apos;s something magical about tools. Whether we&apos;re
talking equipment for a hobby you practice or devices for your
Expand All @@ -43,25 +43,24 @@ const IndexPage = () => (
</p>

<p>
Occasionally I&apos;ll get asked about the hardware or software
I own and use. I decided to create a list of things that help me
get stuff done—I&apos;ll keep this page updated as my setup
changes.
Occasionally I&apos;ll get asked about the hardware or
software I own and use. I decided to create a list of things
that help me get stuff done—I&apos;ll keep this page updated
as my setup changes.
</p>

<p>
Most of these links are amazon affiliate links, so I&apos;ll
support my passion for coffee and adventures if you buy through
them.
support my passion for coffee and adventures if you buy
through them.
</p>
</div>


<h2 className="text-4xl font-bold tracking-tight text-zinc-800 sm:text-5xl dark:text-zinc-100">
Desk Setup
</h2>

<ul className="my-6 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<ul className="my-6 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<li>
I use 2{' '}
<a href="https://amzn.to/44mm1Ov">
Expand Down Expand Up @@ -117,7 +116,7 @@ const IndexPage = () => (
Sound & Video
</h2>

<ul className="my-6 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<ul className="my-6 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<li>
🎧 <a href="https://amzn.to/3pGbUVD">Sony WH-1000XM5</a>
</li>
Expand All @@ -141,7 +140,7 @@ const IndexPage = () => (
<h2 className="text-4xl font-bold tracking-tight text-zinc-800 sm:text-5xl dark:text-zinc-100">
Editor & Terminal
</h2>
<ul className="my-6 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<ul className="my-6 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<li>
<a href="https://code.visualstudio.com">Visual Studio</a> Code
is my current editor. I&apos;ve been using it for a few years
Expand All @@ -165,7 +164,7 @@ const IndexPage = () => (
<h2 className="text-4xl font-bold tracking-tight text-zinc-800 sm:text-5xl dark:text-zinc-100">
App
</h2>
<ul className="my-6 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<ul className="my-6 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<li>
I use <a href="#">Magnet</a> for window management. Sweet!
</li>
Expand Down Expand Up @@ -217,7 +216,7 @@ const IndexPage = () => (
Changelog
</h2>

<ul className="my-6 text-base text-zinc-600 dark:text-zinc-400 leading-7">
<ul className="my-6 text-base leading-7 text-zinc-600 dark:text-zinc-400">
<li>2023-07-09 - Initial draft</li>
</ul>

Expand Down
28 changes: 14 additions & 14 deletions components/SlideUp/index.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
"use client"
'use client';

import React, { useEffect, useRef, ReactNode } from "react"
import React, { useEffect, useRef, ReactNode } from 'react';
interface Props {
offset?: string
children?: ReactNode
offset?: string;
children?: ReactNode;
}

export default function SlideUp({ children, offset = "0px" }: Props) {
const ref = useRef(null)
export default function SlideUp({ children, offset = '0px' }: Props) {
const ref = useRef(null);

useEffect(() => {
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.remove("opacity-0")
entry.target.classList.add("animate-slideUpCubiBezier")
entry.target.classList.remove('opacity-0');
entry.target.classList.add('animate-slideUpCubiBezier');
}
})
});
},
{ rootMargin: offset }
)
);

if (ref.current) {
observer.observe(ref.current)
observer.observe(ref.current);
}
}, [ref])
}, [ref]);

return (
<div ref={ref} className="relative opacity-0">
{children}
</div>
)
}
);
}

0 comments on commit b1a3f11

Please sign in to comment.