-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46d237f
commit 152d15f
Showing
68 changed files
with
12,888 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "app/global.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"use client"; | ||
|
||
import { cn } from "@/lib/utils"; | ||
import { RefreshCw } from "lucide-react"; | ||
import { useState } from "react"; | ||
|
||
interface PreviewContainerProps { | ||
children: React.ReactNode; | ||
className?: string; | ||
} | ||
|
||
export const PreviewContainer = ({ | ||
children, | ||
className, | ||
}: PreviewContainerProps) => { | ||
const [key, setKey] = useState(0); | ||
|
||
const handleRefresh = () => { | ||
setKey((prev) => prev + 1); | ||
}; | ||
|
||
return ( | ||
<div className="relative"> | ||
<button | ||
onClick={handleRefresh} | ||
className="absolute top-4 right-4 z-10 p-2 rounded-full hover:bg-primary/10 transition-colors" | ||
aria-label="Refresh preview" | ||
> | ||
<RefreshCw className="w-4 h-4 text-primary/70" /> | ||
</button> | ||
<div | ||
key={key} | ||
className={cn( | ||
"dark:bg-[#131315] border border-primary/10 min-h-[15rem] rounded-xl p-4 flex items-center justify-center not-prose overflow-hidden relative", | ||
className | ||
)} | ||
> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
"use client" | ||
import { NextPage } from "next"; | ||
|
||
interface Props {} | ||
|
||
const Footer: NextPage<Props> = ({}) => { | ||
return ( | ||
<footer> | ||
<div className="mt-20 border-t py-8 h-full flex items-center text-center justify-center bg-homecards"> | ||
<div> | ||
<div className="footer"> | ||
<span className={`footer-text animate__animated`}> | ||
Made by <a id="linkanimation" href="https://github.com/Northstrix" target="_blank" rel="noopener noreferrer">Maxim Bortnikov</a> using <a id="linkanimation" href="https://nextjs.org/" target="_blank" rel="noopener noreferrer">Next.js</a> and <a id="linkanimation" href="https://www.perplexity.ai/" target="_blank" rel="noopener noreferrer">Perplexity</a> | ||
</span> | ||
</div> | ||
|
||
<style jsx>{` | ||
.text { | ||
font-weight: bold; | ||
} | ||
.split-parent { | ||
overflow: hidden; | ||
position: relative; | ||
z-index: 10; | ||
} | ||
.split-child { | ||
display: inline-block; | ||
transform: translateY(100%); | ||
opacity: 0; | ||
transition: transform 0.9s ease, opacity 0.9s ease; | ||
} | ||
.text-emerged .split-child { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
.footer { | ||
z-index: 400; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--foreground); | ||
transition: background-color 3s ease; | ||
} | ||
.footer-text { | ||
font-size: 16px; | ||
letter-spacing: -.0035em; | ||
text-align: center; /* Center text within its container */ | ||
flex-grow: 1; /* Allow text to grow and take available space */ | ||
} | ||
#linkanimation { | ||
text-decoration: none; | ||
color: var(--foreground); | ||
position: relative; | ||
} | ||
#linkanimation::before { | ||
position: absolute; | ||
content: ""; | ||
width: 100%; | ||
height: 1px; | ||
background-color: var(--footer-underscore-color); | ||
transform: scale(1,1); | ||
transition: background-color .5s ease-in-out; | ||
bottom: 0px; | ||
} | ||
#linkanimation:hover::before { | ||
animation: link ease 1s 1 300ms; | ||
transform-origin: right; | ||
} | ||
@keyframes link { | ||
50% { transform: scaleX(0); } | ||
50.1% { transform: translateX(-100%) scaleX(-0.01); } | ||
100% { transform: translateX(-100%) scaleX(-1); } | ||
} | ||
`}</style> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
Oops, something went wrong.