Skip to content
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
4 changes: 4 additions & 0 deletions frontend/packages/cozeloop/auth-pages/src/assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: Apache-2.0
.container {
position: relative;

width: 482px;
height: 642px;
padding: 40px 64px;
Expand All @@ -17,3 +19,12 @@
height: auto;
font-size: 0;
}

.copyright {
position: absolute;
right: 12px;
bottom: 12px;
left: 12px;

text-align: center;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import { useState } from 'react';

import { Input, Checkbox, Button } from '@coze-arch/coze-design';
import { Input, Button, Typography } from '@coze-arch/coze-design';
import { ReactComponent as IconGithub } from '@/assets/github.svg';

import loopBanner from '@/assets/loop-banner.png';

Expand All @@ -14,11 +15,13 @@ interface Props {
onRegister?: (email: string, password: string) => void;
}

const { Text } = Typography;

export function LoginPanel({ loading, onLogin, onRegister }: Props) {
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [consent, setConsent] = useState(false);
const canSubmit = Boolean(email && password && consent);
// const [consent, setConsent] = useState(false);
const canSubmit = Boolean(email && password);

const onClickRegister = () => {
onRegister?.(email, password);
Expand Down Expand Up @@ -69,15 +72,15 @@ export function LoginPanel({ loading, onLogin, onRegister }: Props) {
{'登录'}
</Button>
</div>
<div className="mt-[20px] flex">
{/* <div className="mt-[20px] flex">
<Checkbox
checked={consent}
onChange={e => setConsent(Boolean(e.target.checked))}
disabled={loading}
>
{'请先同意'}
<a
href="https://www.coze.cn/open/docs/guides/terms-of-service" // 协议链接
href="" // 协议链接
target="_blank"
className="no-underline coz-fg-hglt"
onClick={e => {
Expand All @@ -87,7 +90,36 @@ export function LoginPanel({ loading, onLogin, onRegister }: Props) {
用户协议
</a>
</Checkbox>
</div>
</div> */}
</div>
<div className={s.copyright}>
<Text component="div" type="secondary">
©2025 Coze Loop
</Text>
<Text type="secondary">
基于开源代码部署
<span> · </span>
<Text
link={{
href: 'https://github.com/coze-dev/cozeloop?tab=Apache-2.0-1-ov-file',
target: '_blank',
}}
>
Apache 2.0 License
</Text>
<span> | </span>
<Text
link={{
href: 'https://github.com/coze-dev/cozeloop',
target: '_blank',
}}
icon={
<IconGithub className="w-[14px] h-[14px] translate-y-[1px]" />
}
>
coze-dev/cozeloop
</Text>
</Text>
</div>
</div>
);
Expand Down
Loading