Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔗 Add link to app on auth pages if auth isn’t required

Luke Vellab9ca609236bf
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 610f79351..ce9d058a3 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -2,7 +2,7 @@
"12h": "12-hour",
"24h": "24-hour",
"addTimeOption": "Add time option",
- "alreadyRegistered": "Already registered? <a>Login →</a>",
+ "alreadyRegistered": "Already registered? <a>Login</a>",
"applyToAllDates": "Apply to all dates",
"areYouSure": "Are you sure?",
"cancel": "Cancel",
@@ -222,5 +222,6 @@
"upgrade": "Upgrade",
"notToday": "Not Today",
"supportProject": "Support this project",
- "features": "Get access to all current and future Pro features!"
+ "features": "Get access to all current and future Pro features!",
+ "continueAsGuest": "Continue as Guest"
}
diff --git a/apps/web/src/components/auth/auth-layout.tsx b/apps/web/src/components/auth/auth-layout.tsx
index 24ecfbc1c..cbe48483c 100644
--- a/apps/web/src/components/auth/auth-layout.tsx
+++ b/apps/web/src/components/auth/auth-layout.tsx
@@ -1,10 +1,12 @@
import Image from "next/image";
+import Link from "next/link";
+import { Trans } from "next-i18next";
import React from "react";
export const AuthLayout = ({ children }: { children?: React.ReactNode }) => {
return (
<div className="h-full p-3 sm:p-8">
- <div className="flex h-full items-start justify-center">
+ <div className="mx-auto w-fit">
<div className="w-[480px] max-w-full overflow-hidden rounded-lg border bg-white shadow-sm">
<div className="bg-pattern border-t-primary-600 border-b border-t-4 bg-gray-500/5 p-4 text-center sm:p-8">
<Image
@@ -17,6 +19,16 @@ export const AuthLayout = ({ children }: { children?: React.ReactNode }) => {
</div>
<div className="p-4 sm:p-6">{children}</div>
</div>
+ {process.env.AUTH_REQUIRED === "true" ? null : (
+ <p className="mt-8 text-center">
+ <Link
+ href="/polls"
+ className="text-muted-foreground hover:underline"
+ >
+ <Trans i18nKey="continueAsGuest" defaults="Continue as Guest" />
+ </Link>
+ </p>
+ )}
</div>
</div>
);