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

[Aider] Aider2: rename all user visible instances of 'threads' to 'smiths' #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Threads clone](https://threads.codebustar.com)
# [Smiths clone](https://smiths.codebustar.com)

This is an open source **threads-clone** build with ***`create-t3-app`*** and everything new in Next.js 13 and 14.
This is an open source **smiths-clone** build with ***`create-t3-app`*** and everything new in Next.js 13 and 14.

|1. Feed Page |2. Search Page |
|:---:|:---:|
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const metadata: Metadata = {
"prisma",
"tRPC",
"sujjeee",
"threads",
"threads-clone",
"smiths",
"smiths-clone",
"t3-stack",
"uploadthing",
"shadcn ui"
Expand Down
4 changes: 2 additions & 2 deletions src/components/layouts/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function SiteFooter() {
</li>
<li>
<a href="#" className="text-gray-500 transition hover:opacity-75">
Threads Terms
Smiths Terms
</a>
</li>

Expand All @@ -37,4 +37,4 @@ export default function SiteFooter() {
</footer>

)
}
}
31 changes: 31 additions & 0 deletions src/components/smiths-banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"use client"

import useWindow from '@/hooks/use-window'
import React from 'react'
import { Icons } from '@/components/icons'
import Image from 'next/image'

export default function SmithsBanner() {
const { isMobile } = useWindow()
return (
<header className="max-w-screen-md md:max-w-screen-2xl lg:max-w-[1800px] mx-auto">
{isMobile ?
<div className='flex justify-center items-center '>
<Icons.logo className='h-10 w-10 mb-6 sm:h-16 sm:w-16 mt-16' />
</div>
:
<nav className='flex w-full justify-between items-center z-50 pointer-events-none select-none'>
<Image
width={1000}
height={1000}
src="/bg.webp"
alt="Background"
className="w-full h-[500px] object-cover"
unoptimized
priority
/>
</nav>
}
</header>
)
}
2 changes: 1 addition & 1 deletion src/components/star-on-github.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Icons } from '@/components/icons'

export default function StarOnGithub() {
return (
<a href='https://github.com/sujjeee/threads-clone' target='_blank'>
<a href='https://github.com/sujjeee/smiths-clone' target='_blank'>
<div className='hidden xl:flex min-w-[8rem] border border-border bg-transparent p-1 rounded-full text-[14px] py-4 px-6 text-muted-foreground shadow-lg font-medium tracking-wide hover:scale-105 active:scale-95 cursor-pointer select-none transform transition-all duration-150 ease-out'>
<span className='flex justify-center items-center'>
<Icons.gitHub className='mr-2 w-4 h-4' />
Expand Down
10 changes: 5 additions & 5 deletions src/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export type SiteConfig = typeof siteConfig

export const siteConfig = {
name: "Threads",
description: "Open source threads clone with t3 stack.",
url: "https://threads.codebustar.com.vercel.app",
ogImage: "https://threads.codebustar.com/opengraph-image.png",
name: "Smiths",
description: "Open source smiths clone with t3 stack.",
url: "https://smiths.codebustar.com.vercel.app",
ogImage: "https://smiths.codebustar.com/opengraph-image.png",
links: {
twitter: "https://twitter.com/sujjeeee",
github: "https://github.com/sujjeee",
discord: "https://discord.com/users/sujjeee",
},
}
}