Skip to content

Commit

Permalink
Remove alpha banner
Browse files Browse the repository at this point in the history
  • Loading branch information
PullJosh committed Jul 5, 2024
1 parent 235ebf0 commit 8635ee0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
4 changes: 0 additions & 4 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ AWS_SECRET_ACCESS_KEY=
# The names of the S3 buckets that store project assets and codesandbox assets.
NEXT_PUBLIC_PROJECT_ASSETS_BUCKET_NAME=
CODESANDBOX_ASSETS_BUCKET_NAME=

# Whether or not to display the alpha banner on the website.
# This is used on the staging environment to indicate that the website is in alpha.
NEXT_PUBLIC_IS_ALPHA=true
27 changes: 1 addition & 26 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,8 @@ export default function Index() {
<Nav title="Leopard" />
</div>

{process.env.NEXT_PUBLIC_IS_ALPHA === "true" && (
<div className="-mb-px border-b border-yellow-400 bg-yellow-200 py-2 text-yellow-900">
<div className="mx-auto max-w-4xl px-8">
You are currently exploring the Leopard alpha. It is broken,
insecure, and incomplete. Nothing you create here is private, and it
may be deleted at any time. Please test it out and{" "}
<Link
href="https://github.com/PullJosh/leopard-website/issues"
className="font-semibold underline"
target="_blank"
rel="noopener noreferrer"
>
report any issues you find
</Link>
.
</div>
</div>
)}

<Center>
<div
className={`relative flex ${
process.env.NEXT_PUBLIC_IS_ALPHA === "true"
? "min-h-[calc(100vh-8.5rem)]"
: "min-h-[calc(100vh-4.5rem)]"
} flex-col`}
>
<div className="relative flex min-h-[calc(100vh-4.5rem)] flex-col">
<div className="flex flex-grow flex-col justify-center py-12">
<img
className="mx-auto my-2 h-20 w-20"
Expand Down

0 comments on commit 8635ee0

Please sign in to comment.