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
209 changes: 209 additions & 0 deletions pkg/app/pagewriter/login/cann.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
{{define "sign_in.html"}}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
href="https://www.hiascend.com/favicon.ico"
type="image/x-icon"
/>
<title>CANN Summary 2025</title>
<style>
* {
padding: 0;
margin: 0;
}

body {
background: #aa001e;
}
.wrap .label .info p {
cursor: pointer;
}

.wrap {
height: 100vh;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
background: url(https://cann-website.obs.cn-north-4.myhuaweicloud.com/cann_pc.jpg)
no-repeat center/cover;
padding: 0 80px;
}

.wrap .box {
margin-top: 30vh;
display: flex;
align-items: center;
flex-direction: column;
}

.wrap .button {
padding: 12px 32px;
font-size: 16px;
line-height: 24px;
border: 0 none;
background: #aa001e;
border-radius: 26px;
text-align: center;
color: #fff;
font-weight: bold;
cursor: pointer;
}

.wrap .label {
font-size: 14px;
color: #fff;
margin-top: 30px;
display: flex;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.checkbox {
width: 14px;
height: 14px;
-webkit-appearance: none;
appearance: none;
border: 1px solid #999;
border-radius: 2px;
display: inline-block;
cursor: pointer;
outline: none;
background-color: #fff;
position: relative;
transition: background-color 0.3s, border-color 0.3s;
cursor: pointer;
margin-top: 3px;
}

.checkbox:checked {
background-color: #aa001e;
border: none;
}

.checkbox:checked::before {
content: "";
position: absolute;
left: 50%;
top: 42%;
width: 4px;
height: 8px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: translate(-50%, -50%) rotate(45deg);
}

.wrap .label a {
color: #fff;
display: inline-block;
cursor: pointer;
}

.wrap .label .info {
padding-left: 10px;
}

.wrap .not-allowed {
cursor: not-allowed;
color: white;
background: #d1d6db;
}

@media (hover: hover) {
.checkbox:checked:hover {
background: #e60012;
}
.checkbox:hover {
border: 1px solid #e60012;
}
.wrap .label a:hover {
color: #e60012;
}
}
@media (max-width: 600px) {
.wrap {
padding: 0 12px;
box-sizing: border-box;
background: url(https://cann-website.obs.cn-north-4.myhuaweicloud.com/cann_h5.jpg)
no-repeat left bottom / cover;
}
.wrap .box {
margin-top: 6vh;
}

.wrap .label {
font-size: 14px;
color: #fff;
margin-top: 12px;
}
}
</style>
</head>

<body>
<div class="wrap">
<div class="box">
<form method="GET" action="{{.ProxyPrefix}}/start">
<input type="hidden" name="rd" value="{{.Redirect}}" />
<button type="submit" class="button not-allowed block is-primary">
Sign in with {{.ProviderName}}
</button>
</form>
<div class="label">
<input class="checkbox" type="checkbox" />
<div class="info">
<p>
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.hiascend.com/zh/legal/privacy/"
target="_blank"
>《隐私政策》</a
>
</p>
</div>
</div>
</div>
</div>
<script>
let labelDom = document.querySelector(".info");
let checkbox = document.querySelector(".checkbox");
let btn = document.querySelector(".button");
checkbox.addEventListener("click", function () {
checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
});
labelDom.addEventListener("click", function () {
checkbox.checked = !checkbox.checked;

checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
});

btn.addEventListener("click", function () {
checkbox.checked ? "" : event.preventDefault();
});
if (window.location.hash) {
(function () {
var inputs = document.getElementsByName("rd");
for (var i = 0; i < inputs.length; i++) {
// Add hash, but make sure it is only added once
var idx = inputs[i].value.indexOf("#");
if (idx >= 0) {
// Remove existing hash from URL
inputs[i].value = inputs[i].value.substr(0, idx);
}
inputs[i].value += window.location.hash;
}
})();
}
</script>
</body>
</html>
{{end}}
6 changes: 3 additions & 3 deletions pkg/app/pagewriter/login/euler-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://www.openeuler.org/favicon.ico" type="image/x-icon">
<title>openEuler Summary 2024</title>
<title>openEuler Summary 2025</title>
<style>
* {
padding: 0;
Expand Down Expand Up @@ -161,7 +161,7 @@
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.openeuler.org/zh/other/privacy/"
href="https://www.openeuler.openatom.cn/zh/other/privacy//"
target="_blank"
>《隐私政策》</a
>
Expand All @@ -171,7 +171,7 @@
<a href="/agreement_en.html" target="_blank">User Agreement</a>
and the
<a
href="https://www.openeuler.org/en/other/privacy/"
href="https://www.openeuler.openatom.cn/en/other/privacy/"
target="_blank"
>Privacy Policy</a
>
Expand Down
6 changes: 3 additions & 3 deletions pkg/app/pagewriter/login/euler.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://www.openeuler.org/favicon.ico" type="image/x-icon">
<title>openEuler Summary 2024</title>
<title>openEuler Summary 2025</title>
<style>
* {
padding: 0;
Expand Down Expand Up @@ -159,7 +159,7 @@
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.openeuler.org/zh/other/privacy/"
href="https://www.openeuler.openatom.cn/zh/other/privacy/"
target="_blank"
>《隐私政策》</a
>
Expand All @@ -169,7 +169,7 @@
<a href="/agreement_en.html" target="_blank">User Agreement</a>
and the
<a
href="https://www.openeuler.org/en/other/privacy/"
href="https://www.openeuler.openatom.cn/en/other/privacy/"
target="_blank"
>Privacy Policy</a
>
Expand Down
4 changes: 2 additions & 2 deletions pkg/app/pagewriter/login/gauss-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>openGauss</title>
<title>openGauss Summary 2025</title>
<style>
* {
padding: 0;
Expand Down Expand Up @@ -159,7 +159,7 @@
I have read and agree to the
<a href="/agreement_en.html" target="_blank">User Agreement</a>
and the
<a href="https://opengauss.org/en/privacyPolicy/" target="_blank"
<a href="https://opengauss.org/en/privacy/" target="_blank"
>Privacy Policy</a
>
</p>
Expand Down
4 changes: 2 additions & 2 deletions pkg/app/pagewriter/login/gauss.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://opengauss.org/favicon.ico" type="image/x-icon">
<title>openGauss Summary 2024</title>
<title>openGauss Summary 2025</title>
<style>
* {
padding: 0;
Expand Down Expand Up @@ -164,7 +164,7 @@
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://opengauss.org/zh/privacyPolicy/"
href="https://opengauss.org/zh/privacy/"
target="_blank"
>《隐私政策》</a
>
Expand Down
Binary file added pkg/app/pagewriter/login/img/cann_h5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/app/pagewriter/login/img/cann_pc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/app/pagewriter/login/img/ubmc_h5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/app/pagewriter/login/img/ubmc_pc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pkg/app/pagewriter/login/mindspore.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MindSpore Summary 2024</title>
<title>MindSpore Summary 2025</title>
<link rel="shortcut icon" href="https://www.mindspore.cn/favicon.ico" type="image/x-icon">
<style>
* {
Expand Down
Loading
Loading