Skip to content

Commit

Permalink
feat: re-add zebrastik
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Nov 30, 2023
1 parent f2a1bed commit 3522882
Show file tree
Hide file tree
Showing 35 changed files with 126 additions and 84 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.10.0
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

21 changes: 0 additions & 21 deletions SECURITY.md

This file was deleted.

17 changes: 13 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,23 @@ const nextConfig = {
},

redirects: async () => [
// deleted pages
// `zebrastik.com` to `zebrastik`
{
source: '/now',
destination: '/',
source: '/',
destination: '/zebrastik',
permanent: true,
has: [{ type: 'host', value: 'zebrastik.com' }],
},
{
source: '/zebrastik',
source: '/',
destination: '/zebrastik',
permanent: true,
has: [{ type: 'host', value: 'zbrstk.com' }],
},

// deleted pages
{
source: '/now',
destination: '/',
permanent: true,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"update:book-images": "ts-node --project tsconfig.scripts.json -r tsconfig-paths/register src/scripts/books/update-images.ts"
},
"dependencies": {
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^0.1.1",
"@vercel/og": "^0.0.20",
"axios": "^1.6.0",
Expand All @@ -29,6 +28,7 @@
"query-string": "^7.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"react-markdown": "^8.0.3",
"react-star-rating-component": "^1.4.1",
"react-syntax-highlighter": "^15.5.0",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 18 additions & 19 deletions src/app/(home)/page.tsx → src/app/(altay)/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { homeCopy, booksCopy, postsCopy } from 'config'
import { readMarkdownFile } from 'lib/utils/md'
import Markdown from 'ui/Markdown'
import Image from 'next/image'
import { VscTwitter } from '@react-icons/all-files/vsc/VscTwitter'
import { VscGithub } from '@react-icons/all-files/vsc/VscGithub'
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin'
import { CgArrowTopRight } from '@react-icons/all-files/cg/CgArrowTopRight'
import { CgArrowRight } from '@react-icons/all-files/cg/CgArrowRight'
import { VscGithub } from 'react-icons/vsc'
import { FaLinkedin } from 'react-icons/fa'
import { FaXTwitter } from 'react-icons/fa6'
import { CgArrowTopRight } from 'react-icons/cg'
import Link from 'next/link'

type Project = {
Expand All @@ -24,8 +23,8 @@ const EXTERNAL_LINKS = [
},
{
label: 'X.com',
url: 'https://twitter.com/altaywtf',
icon: <VscTwitter />,
url: 'https://x.com/altaywtf',
icon: <FaXTwitter />,
},
{
label: 'LinkedIn',
Expand Down Expand Up @@ -111,15 +110,18 @@ const HomePage = async () => (
</div>

<div className="flex flex-1 flex-col">
<div className="flex flex-row items-center gap-0.5 font-medium text-amber-400 hover:text-amber-200">
<a href={item.url} target="_blank" rel="noopener noreferrer">
{item.title}
</a>
<a
href={item.url}
target="_blank"
rel="noopener noreferrer"
className="flex flex-row items-center gap-0.5 self-start font-medium text-amber-400 hover:text-amber-200"
>
<span>{item.title}</span>

<span className="text-sm">
<CgArrowTopRight />
</span>
</div>
</a>

<p>{item.description}</p>
</div>
Expand All @@ -135,7 +137,10 @@ const HomePage = async () => (
<div key={item.title}>
<div className="flex flex-row items-center gap-3">
<div className="flex flex-1 flex-col">
<Link href={item.url} className="font-medium text-amber-400 hover:text-amber-200">
<Link
href={item.url}
className="self-start font-medium text-amber-400 hover:text-amber-200"
>
{item.title}
</Link>

Expand All @@ -152,12 +157,6 @@ const HomePage = async () => (
<a className="hover:text-neutral-300" href="mailto:[email protected]">
[email protected]
</a>

<div className="mt-4">
<p>zebrastik, LLC</p>
<p>30 N Gould St, STE 4000</p>
<p>Sheridan, WY 82801</p>
</div>
</div>
</>
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { ParsedQuery, Post, Book, Page } from 'lib/og/types'
export const runtime = 'edge'

const loadFont = async () => {
const url = new URL('../../../ui/theme/fonts/GT-America-Standard-Bold.ttf', import.meta.url)
const url = new URL('../../../../ui/theme/fonts/GT-America-Standard-Bold.ttf', import.meta.url)
const res = await fetch(url)
const fontData = await res.arrayBuffer()
return fontData
Expand Down
File renamed without changes.
File renamed without changes.
Binary file added src/app/(altay)/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added src/app/(altay)/favicon.ico
Binary file not shown.
File renamed without changes
32 changes: 32 additions & 0 deletions src/app/(altay)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import 'ui/theme/style.css'
import { Metadata } from 'next'
import { SITE_TITLE, SITE_DESCRIPTION, SITE_URL } from 'config'
import { getOpenGraphImage } from 'lib/utils/openGraph'
import { PropsWithChildren } from 'react'
import { PathHistoryListener } from 'ui/PathHistoryListener'

export const metadata: Metadata = {
title: {
default: SITE_TITLE,
template: `%s | ${SITE_TITLE}`,
},
description: SITE_DESCRIPTION,
openGraph: {
title: SITE_TITLE,
description: SITE_DESCRIPTION,
url: SITE_URL,
images: getOpenGraphImage({
type: 'page',
title: SITE_DESCRIPTION,
}),
},
} as const

export default function Layout({ children }: PropsWithChildren) {
return (
<>
{children}
<PathHistoryListener />
</>
)
}
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions src/app/(zebrastik)/zebrastik/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import Image from 'next/image'
import { zebrastikCopy } from 'config'
import { Metadata } from 'next'

export const metadata: Metadata = {
title: 'zebrastik',
description: zebrastikCopy.description,
openGraph: {
title: 'zebrastik',
description: zebrastikCopy.description,
},
}

export default function Page() {
return (
<section className="app-width px-4 py-8 sm:px-0">
<div className="relative h-28 w-28 overflow-hidden rounded border border-solid border-neutral-900">
<Image src="/images/zebra.jpg" alt="zebrastik logo" fill />
</div>

<div className="mt-8 flex flex-col gap-2">
<h1>{zebrastikCopy.title}</h1>
<p className="text-neutral-400">{zebrastikCopy.description}</p>
</div>

<hr className="my-8" />

<a href="mailto:[email protected]">[email protected]</a>

<div className="mt-4 text-neutral-400">
<p>zebrastik, LLC</p>
<p>30 N Gould St, STE 4000</p>
<p>Sheridan, WY 82801</p>
</div>
</section>
)
}
Binary file modified src/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/favicon.ico
Binary file not shown.
Binary file added src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 5 additions & 25 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
import { PropsWithChildren } from 'react'
import AnalyticsWrapper from 'ui/AnalyticsWrapper'
import 'ui/theme/style.css'
import { gtAmerica, gtAmericaMono } from 'ui/theme/fonts'
import { Metadata } from 'next'
import { SITE_TITLE, SITE_DESCRIPTION, SITE_URL } from 'config'
import { getOpenGraphImage } from 'lib/utils/openGraph'
import { PathHistoryListener } from 'ui/PathHistoryListener'

export const metadata: Metadata = {
title: {
default: SITE_TITLE,
template: `%s | ${SITE_TITLE}`,
},
description: SITE_DESCRIPTION,
openGraph: {
title: SITE_TITLE,
description: SITE_DESCRIPTION,
url: SITE_URL,
images: getOpenGraphImage({
type: 'page',
title: SITE_DESCRIPTION,
}),
},
} as const
import 'ui/theme/style.css'

const RootLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => (
const Layout: React.FC<PropsWithChildren> = ({ children }) => (
<html lang="en" className={`${gtAmerica.variable} ${gtAmericaMono.variable} dark`}>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
Expand All @@ -35,10 +15,10 @@ const RootLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => (
<main className="p-safe">
<section className="app-width px-4 py-8 sm:px-0">{children}</section>
</main>
<PathHistoryListener />

<AnalyticsWrapper />
</body>
</html>
)

export default RootLayout
export default Layout
6 changes: 6 additions & 0 deletions src/config/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ export const booksCopy = {
title: 'Book notes',
description: 'Somewhat detailed notes from the books that I read.',
} as const

export const zebrastikCopy = {
title: 'hi, we are zebrastik',
description:
'we provide software development services for digital product companies at any scale. our expertise covers many platforms such as web, mobile, and streaming devices.',
}
2 changes: 1 addition & 1 deletion src/ui/ArtificialBackButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import Link from 'next/link'
import { CgArrowLeft } from '@react-icons/all-files/cg/CgArrowLeft'
import { CgArrowLeft } from 'react-icons/cg'
import { useRouter } from 'next/navigation'
import { usePathHistory } from 'ui/usePathHistory'

Expand Down

0 comments on commit 3522882

Please sign in to comment.