-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: projects select component, fix flickering colors issue, update …
…navbar
- Loading branch information
Showing
13 changed files
with
156 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1,48 +1,66 @@ | ||
"use client"; | ||
import React from "react"; | ||
import { projects } from "./projects"; | ||
import Link from "next/link"; | ||
import { serifText } from "@/assets/fonts"; | ||
import Image from "next/image"; | ||
import useEmblaCarousel from "embla-carousel-react"; | ||
|
||
export default function ProjectsSelect() { | ||
const options = projects; | ||
interface Props { | ||
excludeProjects?: string[]; | ||
} | ||
|
||
export default function ProjectsSelect({ excludeProjects }: Props) { | ||
const [emblaRef] = useEmblaCarousel(); | ||
|
||
const options = projects.filter( | ||
(project) => !excludeProjects?.includes(project.slug) | ||
); | ||
|
||
return ( | ||
<ul> | ||
{options.map((option) => ( | ||
<li key={option.slug}> | ||
<Link | ||
href={`/project/${option.slug}`} | ||
className={`p-24 block uppercase border border-gray-900 max-w-[600px]`} | ||
style={{ | ||
...(option.backgroundColor && { | ||
backgroundColor: option.backgroundColor, | ||
}), | ||
}} | ||
> | ||
<div className="flex justify-between gap-36 text-body5 md:text-body1 font-medium"> | ||
<div> | ||
<p>{option.tagline} </p> | ||
<p className={`${serifText.className}`}>{option.title}</p> | ||
</div> | ||
<div> | ||
{option.tags.map((tag) => ( | ||
<p key={tag} className="whitespace-nowrap"> | ||
/ {tag} | ||
<div className="" ref={emblaRef}> | ||
<ul className="flex gap-24"> | ||
{options.map((option, idx) => ( | ||
<li key={idx} className="shrink-0 grow-0 basis-[min(80%,600px)]"> | ||
<Link | ||
href={option.externalLink ?? `/project/${option.slug}`} | ||
{...(option.externalLink && { | ||
target: "_blank", | ||
rel: "noopener noreferrer", | ||
})} | ||
className={`p-24 flex flex-col uppercase border border-gray-900 max-w-[600px] h-full`} | ||
style={{ | ||
...(option.backgroundColor && { | ||
backgroundColor: option.backgroundColor, | ||
}), | ||
}} | ||
> | ||
<div className="flex flex-wrap justify-between gap-x-36 gap-y-16 font-medium"> | ||
<div> | ||
<p className="md:text-body1">{option.tagline} </p> | ||
<p className={`${serifText.className} text-body5`}> | ||
{option.title} | ||
</p> | ||
))} | ||
</div> | ||
<div> | ||
{option.tags.map((tag) => ( | ||
<p key={tag} className="whitespace-nowrap"> | ||
/ {tag} | ||
</p> | ||
))} | ||
</div> | ||
</div> | ||
<div className="mt-auto"> | ||
<Image | ||
src={option.image} | ||
alt="" | ||
className="max-w-[450px] w-full mx-auto my-42 shadow-2xl" | ||
/> | ||
</div> | ||
</div> | ||
<div> | ||
<Image | ||
src={option.image} | ||
alt="" | ||
className="w-full max-w-[450px] mx-auto my-42" | ||
/> | ||
</div> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</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
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
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
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,7 @@ | ||
body:has(#adopting-bitcoin-page) { | ||
--page-bg-color: #eedb5f; | ||
--text-color: #000; | ||
--frame-color: #000; | ||
--footer-bg-color: #eedb5f; | ||
--footer-text-color: #000; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.