HTML
xxxxxxxxxx
1
<section class="h-100 gradient-form" style="background: rgba(24, 25, 26, 1);">
2
<div class="container py-5 h-100">
3
<div class="row d-flex justify-content-center align-items-center h-100">
4
<div class="col-xl-10">
5
<div class="card rounded-3 text-white">
6
<div class="row g-0">
7
<div class="col-lg-6">
8
<div class="card-body p-md-5 mx-md-4">
9
10
<div class="text-center">
11
<img src="https://fansinity.com/static/main/assets/images/logo.png"
12
style="width: 185px;" alt="logo">
13
<div class="register-title"> Register your interest</div>
14
</div>
15
16
<form class="form-wraper" action="" method="post" class="mt-50">
17
{% csrf_token %}
18
<input type="text" id="email" name="email" placeholder="Your Email" required>
19
<input type="password" id="password" name="password" placeholder="Your Password" required>
20
<input type="password" id="password_repeat" name="password_repeat" placeholder="Repeat Your Password" required>
21
<input type="checkbox" id="agreement" name="agreement" onchange="document.getElementById('register').disabled = !this.checked;">
22
<label for="agreement">I have read & accept
23
<a class="link" href="/term" target="_blank">the Terms of Service</a> and
24
<a class="link" href="/policy" target="_blank">Privacy Policy</a></label>
25
<div class="submit-wraper">
26
{% if messages %}
27
<ul class="messages">
28
{% for message in messages %}
29
<li class="{{ message.tags }}">{{ message }}</li>
30
{% endfor %}
31
</ul>
32
{% endif %}
33
34
<input id="register" type="submit" value="Register" disabled>
35
</div>
36
37
<div class="already-registered">
38
Already Registered? <a class="link" href="/login">Sign In</a>
39
</div>
40
</form>
41
42
</div>
43
</div>
44
<div class="col-lg-6 d-flex align-items-center gradient-custom-2">
45
<div class="text-white px-3 py-4 p-md-5 mx-md-4">
46
<h4 class="mb-4">Register your interest</h4>
47
<p class="small mb-0"> Enter your email address to register your interest.</p>
48
</div>
49
</div>
50
</div>
51
</div>
52
</div>
53
</div>
54
</div>
55
</section>
CSS
xxxxxxxxxx
1
.gradient-custom-2 {
2
/* fallback for old browsers */
3
/* background: #fccb90; */
4
5
/* Chrome 10-25, Safari 5.1-6 */
6
background: -webkit-linear-gradient(to right, #ee7724, #d8363a,);
7
8
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
9
background: linear-gradient(to right, #ee7724, #d8363a);
10
}
11
@card-bg {
12
background: rgba(24, 25, 26, 1);
13
}
14
@media (min-width: 768px) {
15
.gradient-form {
16
height: 100vh !important;
17
}
18
}
19
@media (min-width: 769px) {
20
.gradient-custom-2 {
21
border-top-right-radius: .3rem;
22
border-bottom-right-radius: .3rem;
23
}
24
}
JS
xxxxxxxxxx
1
// Chart
2
const dataDoughnut = {
3
type: 'doughnut',
4
data: {
5
labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday '],
6
datasets: [{
7
label: 'Traffic',
8
data: [21, 30, 45, 13, 9, 20, 7],
9
backgroundColor: [
10
'rgba(63, 81, 181, 0.5)',
11
'rgba(77, 182, 172, 0.5)',
12
'rgba(66, 133, 244, 0.5)',
13
'rgba(156, 39, 176, 0.5)',
14
'rgba(233, 30, 99, 0.5)',
15
'rgba(66, 73, 244, 0.4)',
16
'rgba(66, 133, 244, 0.2)',
17
],
18
}, ],
19
},
20
};
21
22
new mdb.Chart(document.getElementById('doughnut-chart'), dataDoughnut);
Console errors: 0