-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from midday-ai/feature/website-branding
Branding
- Loading branch information
Showing
18 changed files
with
247 additions
and
11 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
import { BrandCanvas } from "@/components/brand-canvas"; | ||
import type { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Branding", | ||
}; | ||
|
||
export default function Page() { | ||
return <BrandCanvas />; | ||
} |
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,158 @@ | ||
"use client"; | ||
|
||
import { Button } from "@midday/ui/button"; | ||
import { | ||
Select, | ||
SelectContent, | ||
SelectGroup, | ||
SelectItem, | ||
SelectLabel, | ||
SelectTrigger, | ||
SelectValue, | ||
} from "@midday/ui/select"; | ||
import Image from "next/image"; | ||
import { useRef, useState } from "react"; | ||
import { useDraggable } from "react-use-draggable-scroll"; | ||
|
||
const assets = [ | ||
<Image | ||
key="1" | ||
src={require("public/branding/1.png")} | ||
width={600} | ||
alt="keyboard" | ||
/>, | ||
<Image | ||
key="2" | ||
src={require("public/branding/2.png")} | ||
width={600} | ||
alt="founders" | ||
/>, | ||
<Image | ||
key="3" | ||
src={require("public/branding/3.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="1" | ||
src={require("public/branding/11.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="4" | ||
src={require("public/branding/4.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="5" | ||
src={require("public/branding/5.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="7" | ||
src={require("public/branding/7.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="8" | ||
src={require("public/branding/8.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="9" | ||
src={require("public/branding/9.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="10" | ||
src={require("public/branding/10.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
<Image | ||
key="1" | ||
src={require("public/branding/1.png")} | ||
width={600} | ||
alt="keyboard" | ||
/>, | ||
<Image | ||
key="2" | ||
src={require("public/branding/2.png")} | ||
width={600} | ||
alt="founders" | ||
/>, | ||
<Image | ||
key="3" | ||
src={require("public/branding/3.png")} | ||
width={600} | ||
alt="screens" | ||
/>, | ||
]; | ||
|
||
const repeated = [...assets, ...assets, ...assets, ...assets, ...assets]; | ||
|
||
export function BrandCanvas() { | ||
const [value, setValue] = useState( | ||
"https://pub-842eaa8107354d468d572ebfca43b6e3.r2.dev/all.zip" | ||
); | ||
const ref = useRef(); | ||
const { events } = useDraggable(ref); | ||
|
||
return ( | ||
<div className="sm:h-screen sm:w-screen overflow-hidden"> | ||
<div | ||
className="fixed bg-background z-10 top-0 left-0 right-0 overflow-scroll scrollbar-hide cursor-grabbing" | ||
{...events} | ||
ref={ref} | ||
> | ||
<div className="w-[4900px] flex h-screen"> | ||
<div className="grid grid-cols-8 gap-4 items-center"> | ||
{repeated.map((asset, index) => ( | ||
<div className="h-auto max-w-full" key={index.toString()}> | ||
{asset} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="fixed bottom-10 z-20 w-full flex justify-center items-center"> | ||
<div className="h-[48px] w-[200px] rounded-full border border-border backdrop-filter backdrop-blur-xl bg-[#121212] bg-opacity-70 text-center flex items-center p-1 pl-2 justify-between space-x-4"> | ||
<Select onValueChange={setValue} value={value}> | ||
<SelectTrigger className="w-[180px] border-0 space-x-2"> | ||
<SelectValue placeholder="All" className="border-0" /> | ||
</SelectTrigger> | ||
<SelectContent> | ||
<SelectGroup> | ||
<SelectItem value="https://pub-842eaa8107354d468d572ebfca43b6e3.r2.dev/all.zip"> | ||
All | ||
</SelectItem> | ||
<SelectItem value="https://pub-842eaa8107354d468d572ebfca43b6e3.r2.dev/videos.zip"> | ||
Videos | ||
</SelectItem> | ||
<SelectItem value="https://pub-842eaa8107354d468d572ebfca43b6e3.r2.dev/founders.png"> | ||
Founders | ||
</SelectItem> | ||
<SelectItem value="https://pub-842eaa8107354d468d572ebfca43b6e3.r2.dev/screens.zip"> | ||
Screens | ||
</SelectItem> | ||
</SelectGroup> | ||
</SelectContent> | ||
</Select> | ||
|
||
<Button className="rounded-full"> | ||
<a href={value} download title="Download"> | ||
Download | ||
</a> | ||
</Button> | ||
</div> | ||
</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
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