Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GML-1838: clean login page of ui #257

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions copilot-ui/src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { LANGUAGES } from "../constants";

const formSchema = z.object({
email: z.string().min(2, {
message: "Email must be at least 2 characters.",
message: "Username must be at least 2 characters.",
}),
password: z.string().min(2, {
message: "Password must be at least 2 characters.",
Expand Down Expand Up @@ -95,7 +95,7 @@ export function Login() {
<h1 className="text-center text-2xl font-bold mb-5">
{t("welcome")}
<br />
TigerGraph Bot
TigerGraph CoPilot
</h1>
<h4 className="text-center mb-10 text-black dark:text-[#D9D9D9]">
{t("login")}
Expand Down Expand Up @@ -142,23 +142,23 @@ export function Login() {
</>
)}
/>
<a href="#" className="text-xs text-right block">
{/* <a href="#" className="text-xs text-right block">
{t("forgotPassword")}
</a>
</a> */}
<Button type="submit" className="gradient w-full text-white mt-10">
{t("submit")}
</Button>

<div className="inline-flex items-center justify-center w-full">
{/* <div className="inline-flex items-center justify-center w-full">
<hr className="w-full h-px my-8 border-0 bg-gray-200 dark:bg-gray-700" />
<span className="absolute px-3 text-xs bg-background dark:border-[#3D3D3D] text-gray-900 -translate-x-1/2 left-1/2 dark:text-white">
{t("noAccount")}
</span>
</div>
</div> */}

<a href="#" className="text-xs text-center block !text-tigerOrange">
{/* <a href="#" className="text-xs text-center block !text-tigerOrange">
{t("signUp")}
</a>
</a> */}
</form>
</Form>

Expand Down
2 changes: 1 addition & 1 deletion copilot-ui/src/components/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ i18n
en: {
translation: {
welcome: "Welcome to",
login: "Please log in to your TigerGraph account to continue.",
login: "Please log in with your TigerGraph database account",
username: "Username",
password: "Password",
forgotPassword: "Forgot Password",
Expand Down
3 changes: 1 addition & 2 deletions copilot-ui/src/constants/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const LANGUAGES = [
{ label: "Spanish", code: "es" },
{ label: "English", code: "en" },
{ label: "Italian", code: "it" },
{ label: "English", code: "en" }
];
Loading