Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod Deploy 20240520 #3

Merged
merged 2 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
Sheet,
} from '#app/components/ui/sheet'
import { EpicToaster } from '#app/components/ui/sonner.tsx'
import { ThemeSwitch, useTheme } from '#app/routes/resources+/theme'
import { ThemeSwitch, useTheme } from '#app/routes/resources+/theme-switch.js'
import { getUserId, logout } from '#app/utils/auth.server.ts'
import { ClientHintCheck, getHints } from '#app/utils/client-hints.tsx'
import { prisma } from '#app/utils/db.server.ts'
Expand Down
44 changes: 41 additions & 3 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { LinkedinIcon, GithubIcon } from "#app/components/icons.js"

const Home = () => {
const HeroOne = () => {
return (
<>
<section className="w-full py-12 md:py-24 lg:py-32 xl:py-48">
<section className="w-full py-12 md:py-24 lg:py-32 xl:py-48">
<div className="container px-4 md:px-6">
<div className="flex flex-col items-center space-y-4 text-center">
<div className="space-y-2">
Expand All @@ -21,6 +20,45 @@ const Home = () => {
</div>
</div>
</section>
)
};

export const HeroTwo = () => {
return (
<section className="w-full border-b py-12 md:py-24 lg:py-32">
<div className="container grid gap-6 px-4 md:px-6 lg:grid-cols-2 lg:gap-12 xl:gap-20">
<div className="flex flex-col items-start justify-center space-y-4">
<h1 className="text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl lg:text-7xl">
Lucas Byerley
</h1>
<h2 className="text-2xl font-medium text-gray-500 dark:text-gray-400 sm:text-3xl">
Senior Software Engineer | Sports & Web3 Enthusiast
</h2>
<p className="max-w-[600px] text-gray-500 dark:text-gray-400 md:text-xl">
I create clean, modern, and responsive web applications that
deliver exceptional user experiences.
</p>
</div>
<img
alt="Lucas Byerley"
className="mx-auto rounded-full object-cover"
height="400"
src="https://avatars.githubusercontent.com/u/3066258"
style={{
aspectRatio: '400/400',
objectFit: 'cover',
}}
width="400"
/>
</div>
</section>
)
};

const Home = () => {
return (
<>
<HeroOne />
<section
id="section-featuredprojects"
className="w-full bg-gray-100 py-12 dark:bg-gray-800 md:py-24 lg:py-32"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function ThemeSwitch({
}

return (
<fetcher.Form method="POST" {...getFormProps(form)} action='/resources/theme'>
<fetcher.Form method="POST" {...getFormProps(form)} action='/resources/theme-switch'>
<input type="hidden" name="theme" value={nextMode} />
<div className="flex gap-2">
<button
Expand All @@ -90,7 +90,7 @@ export function ThemeSwitch({
*/
export function useOptimisticThemeMode() {
const fetchers = useFetchers()
const themeFetcher = fetchers.find(f => f.formAction === '/')
const themeFetcher = fetchers.find(f => f.formAction === '/resources/theme-switch')

if (themeFetcher && themeFetcher.formData) {
const submission = parseWithZod(themeFetcher.formData, {
Expand Down
2 changes: 1 addition & 1 deletion app/utils/misc.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useFormAction, useNavigation } from '@remix-run/react'
import { useHydrated } from 'remix-utils/use-hydrated'
import { clsx, type ClassValue } from 'clsx'
import { useEffect, useMemo, useRef, useState } from 'react'
import { useHydrated } from 'remix-utils/use-hydrated'
import { useSpinDelay } from 'spin-delay'
import { extendTailwindMerge } from 'tailwind-merge'
import { extendedTheme } from './extended-theme.ts'
Expand Down
Loading