Skip to content

Commit

Permalink
Merge pull request #32 from kawanofer/refactor/web/github-corner
Browse files Browse the repository at this point in the history
refactor: change the github icon to the corner of the page
  • Loading branch information
brunocroh authored Jun 7, 2024
2 parents 41ac852 + e9ff261 commit a5e8eda
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
File renamed without changes.
10 changes: 10 additions & 0 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { Metadata } from 'next'
import Image from 'next/image'
import Link from 'next/link'
import { GeistSans } from 'geist/font/sans'
import { Header } from '@/components/header'
import { GoogleAnalytics } from '@next/third-parties/google'
import GithubCorner from './components/github-corner'
import './globals.css'

export const metadata: Metadata = {
Expand All @@ -20,6 +22,14 @@ export default function RootLayout({
<html lang="en" className={GeistSans.className}>
<body className="dark relative flex h-auto flex-col ">
<Header />

<Link
href="https://github.com/brunocroh/bolhadev.chat"
target="_blank"
className="absolute right-0 top-0"
>
<GithubCorner />
</Link>
<Image
src="/light-ray.svg"
alt="Purple light ray"
Expand Down
4 changes: 0 additions & 4 deletions apps/web/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import Image from 'next/image'
import Link from 'next/link'
import GithubCorner from './github-corner'

export const Header = () => {
return (
Expand All @@ -14,9 +13,6 @@ export const Header = () => {
alt="BolhaDEV.chat logo featuring a stylized globe and a speech bubble with a language symbol on a dark background."
></Image>
</Link>
<Link href="https://github.com/brunocroh/bolhadev.chat">
<GithubCorner />
</Link>
</nav>
)
}
4 changes: 2 additions & 2 deletions apps/web/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
Expand Down
36 changes: 18 additions & 18 deletions packages/env-config/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { z } from 'zod'
import { createEnv } from '@t3-oss/env-nextjs'

export const env = createEnv({
server: {
NEXT_SUPABASE_URL: z.string(),
NEXT_SUPABASE_KEY: z.string(),
},
client: {
NEXT_PUBLIC_SOCKET_URL: z.string().default('ws://localhost:4000'),
},
runtimeEnv: {
NEXT_PUBLIC_SOCKET_URL: process.env.NEXT_PUBLIC_SOCKET_URL,
NEXT_SUPABASE_URL: process.env.NEXT_SUPABASE_URL,
NEXT_SUPABASE_KEY: process.env.NEXT_SUPABASE_KEY,
},
emptyStringAsUndefined: true,
})
import { z } from 'zod'
import { createEnv } from '@t3-oss/env-nextjs'

export const env = createEnv({
server: {
NEXT_SUPABASE_URL: z.string(),
NEXT_SUPABASE_KEY: z.string(),
},
client: {
NEXT_PUBLIC_SOCKET_URL: z.string().default('ws://localhost:4000'),
},
runtimeEnv: {
NEXT_PUBLIC_SOCKET_URL: process.env.NEXT_PUBLIC_SOCKET_URL,
NEXT_SUPABASE_URL: process.env.NEXT_SUPABASE_URL,
NEXT_SUPABASE_KEY: process.env.NEXT_SUPABASE_KEY,
},
emptyStringAsUndefined: true,
})

0 comments on commit a5e8eda

Please sign in to comment.