Skip to content

Commit

Permalink
chore:update
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyzak committed Feb 9, 2024
1 parent 7316a2f commit 7d6000d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resource/template/base/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta content="telephone=no" name="format-detection">
<title>{{.Title}}</title>
<link rel="shortcut icon" type="image/png" href="{{ .Conf.Site.BaseURL }}/static/asset/image/logo.png" />
<link rel="shortcut icon" type="image/png" href="{{ .Conf.Site.BaseURL }}/static/asset/img/logo.png" />
<link rel="mask-icon" href="{{ .Conf.Site.BaseURL }}/static/asset/logo.svg" color="#0389c8">
<link rel="stylesheet" href="{{ .Conf.Site.BaseURL }}/static/asset/style/base.css">
</head>
Expand Down
51 changes: 49 additions & 2 deletions resource/template/register.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
{{ define "login" }}
{{ define "register" }}
{{template "base/header" .}}
注册
<style>
form {
width: 300px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #fff;
}
h1 {
text-align: center;
}
label {
font-weight: bold;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
margin: 5px 0 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="submit"], input[type="button"] {
width: 100%;
padding: 10px;
margin-top: 10px;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"] {
background-color: #4caf50;
}
input[type="button"] {
margin-top: 20px;
background-color: #f44336;
}
</style>
<form>
<h1>Go-Gin Register</h1>
<label for="username">Username</label>
<input type="text" id="username" name="username">
<label for="password">Password</label>
<input type="password" id="password" name="password">
<input type="submit" value="Register">
<input type="button" value="Login" onclick="location.href='login.html'">
<input type="button" value="BackHome" onclick="location.href='home.html'">
</form>
{{template "base/footer" .}}
{{ end }}

0 comments on commit 7d6000d

Please sign in to comment.