-
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.
Merge pull request #4 from armada-ths/fix-for-companies
Fix for companies
- Loading branch information
Showing
38 changed files
with
1,390 additions
and
197 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
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.
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.
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.
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.
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.
Loading
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 { cn } from "@/lib/utils" | ||
|
||
export function P(props: React.HTMLAttributes<HTMLParagraphElement>) { | ||
const { className, children, ...rest } = props | ||
return ( | ||
<p className={cn("mt-2 text-stone-400", className)} {...rest}> | ||
{children} | ||
</p> | ||
) | ||
} |
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,64 @@ | ||
import { fetchDates } from "@/components/shared/hooks/api/useDates" | ||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" | ||
import { Sparkles } from "lucide-react" | ||
import { DateTime } from "luxon" | ||
import Link from "next/link" | ||
|
||
//ASSUMPTION: the start date will be first for fair dates | ||
export async function CurrentStatus() { | ||
const dates = await fetchDates() | ||
const today = Date.now() //.toISOString(); | ||
console.log(today) | ||
|
||
function formatDate(date: string) { | ||
return DateTime.fromISO(date).toFormat( | ||
`d MMMM ${DateTime.fromISO(date).year !== DateTime.now().year ? " YYYY" : ""}` | ||
) | ||
} | ||
|
||
if (today < new Date(dates.ir.start).getTime()) { | ||
return ( | ||
<div> | ||
<Alert className="mt-0"> | ||
<Sparkles size={20} /> | ||
<AlertTitle>Registration is opening soon!</AlertTitle> | ||
<AlertDescription> | ||
We are preparing the registration for next year's Armada. In | ||
the meanwhile, you are very welcome to report interest in this{" "} | ||
<Link | ||
className="text-white underline hover:no-underline" | ||
href="https://docs.google.com/forms/d/e/1FAIpQLSdny1mhsj1Wutt_FaJtqgxKJP3OOBrWW09Ic3T5_NwEHWhV_w/viewform?usp=sf_link"> | ||
form | ||
</Link>{" "} | ||
and we will get back to you once registration is open! | ||
</AlertDescription> | ||
</Alert> | ||
</div> | ||
) | ||
} else if ( | ||
new Date(dates.ir.start).getTime() < today && | ||
today < new Date(dates.ir.end).getTime() | ||
) { | ||
return ( | ||
<div> | ||
<Alert className="mt-5"> | ||
<Sparkles size={20} /> | ||
<AlertTitle>Initial Registration open</AlertTitle> | ||
<AlertDescription> | ||
In initial registration you apply to be an exhibitor at Armada. When | ||
you do so you commit to exhibit, but you don't have to specify | ||
your package yet. Read more about each stage{" "} | ||
<Link | ||
className="text-white underline hover:no-underline" | ||
href="/exhibitor/timeline"> | ||
here | ||
</Link>{" "} | ||
</AlertDescription> | ||
</Alert> | ||
</div> | ||
) | ||
} | ||
|
||
//default | ||
return <div></div> | ||
} |
Oops, something went wrong.