File tree Expand file tree Collapse file tree 5 files changed +52
-44
lines changed
Expand file tree Collapse file tree 5 files changed +52
-44
lines changed Original file line number Diff line number Diff line change @@ -42,57 +42,43 @@ <h3 class="font-weight-bolder text-info text-gradient">
4242
4343 < label > Username</ label >
4444 < div class ="mb-3 ">
45- < input type ="text " name ="username " id ="username " placeholder ="username " class ="form-control ">
45+ < input
46+ id ="username "
47+ class ="form-control "
48+ name ="username "
49+ placeholder ="Username "
50+ type ="text "
51+ required
52+ >
4653 </ div >
4754
4855 < label > Password</ label >
4956 < div class ="mb-3 ">
50- < input type ="type " name ="password " id ="password " class ="form-control ">
57+ < input
58+ id ="password "
59+ class ="form-control "
60+ name ="password "
61+ type ="password "
62+ placeholder ="Password "
63+ required
64+ >
5165 </ div >
5266
5367 < div class ="text-center ">
54- < button type ="submit " name ="login " class ="btn bg-gradient-info w-100 mt-4 mb-0 "> Sign IN</ button >
68+ < button
69+ type ="submit "
70+ name ="login "
71+ class ="btn bg-gradient-info w-100 mt-4 mb-0 "
72+ >
73+ Sign IN
74+ </ button >
5575 </ div >
5676
5777 < div class ="text-center ">
5878 < a href ="{{ url_for('register')}} " class ="btn bg-gradient-secondary w-100 mt-4 mb-0 "> Sign UP</ a >
5979 </ div >
60-
6180 </ form >
62- <!-- <script>
63- let login_form = document.querySelector('#login_form')
64-
65- login_form.addEventListener('submit', async function(event){
66- event.preventDefault()
67-
68- let email = login_form.querySelector('#username').value
69- let password = login_form.querySelector('#password').value
70-
71- let bodyFormData = new FormData()
72-
73- bodyFormData.append(
74- 'username', email
75- )
76-
77- bodyFormData.append(
78- 'password', password
79- )
80-
81- let res = await fetch(login_form.action, {
82- method: "POST",
83- body: bodyFormData
84- })
85-
86- if (res.status == 200){
87- // login_form.reset()
88- let data = await res.json()
89- let access_token = data.access_token
90- window.localStorage.setItem('current_user', access_token)
91- window.location.href = login_form.dataset.successful_redirect
92- }
93- })
9481
95- </script> -->
9682 </ div >
9783 < div class ="card-footer text-center pt-0 px-lg-2 px-1 ">
9884 < p class ="mb-4 text-sm mx-auto ">
Original file line number Diff line number Diff line change 2020 < main class ="main-content mt-0 ">
2121
2222 < section class ="min-vh-100 mb-8 ">
23- < div class ="page-header align-items-start min-vh-50 pt-5 pb-11 m-3 border-radius-lg " style ="background-image: url( " {{ url_for( 'static', path='img/curved-images/curved14.jpg ') }} ">
23+ < div class ="page-header align-items-start min-vh-50 pt-5 pb-11 m-3 border-radius-lg " style ="background-image: url({{ url_for('static', path='/ img/curved-images/curved14.jpg')}}) ">
2424 < span class ="mask bg-gradient-dark opacity-6 "> </ span >
2525 < div class ="container ">
2626 < div class ="row justify-content-center ">
@@ -68,15 +68,37 @@ <h5>Sign UP</h5>
6868 < form method ="POST " action ="{{ url_for('register') }} " role ="form text-left ">
6969 < label > Username</ label >
7070 < div class ="mb-3 ">
71- < input type ="text " name ="username " id ="username " placeholder ="username " class ="form-control ">
71+ < input
72+ id ="username "
73+ class ="form-control "
74+ type ="text "
75+ name ="username "
76+ placeholder ="Username "
77+ type ="text "
78+ required
79+ >
7280 </ div >
7381 < label > Email</ label >
7482 < div class ="mb-3 ">
75- < input type ="email " name ="email " id ="email " placeholder ="Email " class ="form-control ">
83+ < input
84+ id ="email "
85+ class ="form-control "
86+ type ="email "
87+ name ="email "
88+ placeholder ="Email "
89+ required
90+ >
7691 </ div >
7792 < label > Password</ label >
7893 < div class ="mb-3 ">
79- < input type ="type " name ="password " id ="password " class ="form-control ">
94+ < input
95+ id ="password "
96+ class ="form-control "
97+ type ="password "
98+ name ="password "
99+ placeholder ="Password "
100+ required
101+ >
80102 </ div >
81103
82104 < div class ="text-center ">
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ <h5 class="font-weight-bolder">Soft UI Dashboard</h5>
118118 </ div >
119119 < div class ="col-lg-5 ms-auto text-center mt-5 mt-lg-0 ">
120120 < div class ="bg-gradient-primary border-radius-lg h-100 ">
121- < img src ="{{ url_for('static', path='img/shapes/waves-white.svg " ') }} class="position-absolute h-100 w-50 top-0 d-lg-block d-none" alt="waves">
121+ < img src ="{{ url_for('static', path='img/shapes/waves-white.svg') }} " class ="position-absolute h-100 w-50 top-0 d-lg-block d-none " alt ="waves ">
122122 < div class ="position-relative d-flex align-items-center justify-content-center h-100 ">
123123 < img class ="w-100 position-relative z-index-2 pt-4 " src ="{{ url_for('static', path='img/illustrations/rocket-white.png') }} " alt ="rocket ">
124124 </ div >
@@ -130,7 +130,7 @@ <h5 class="font-weight-bolder">Soft UI Dashboard</h5>
130130 </ div >
131131 < div class ="col-lg-5 ">
132132 < div class ="card h-100 p-3 ">
133- < div class ="overflow-hidden position-relative border-radius-lg bg-cover h-100 " style ="background-image: url( " {{ url_for( 'static', path='img/ivancik.jpg ') }} "); ">
133+ < div class ="overflow-hidden position-relative border-radius-lg bg-cover h-100 " style ="background-image: url({{ url_for('static', path='/ img/ivancik.jpg')}}) ">
134134 < span class ="mask bg-gradient-dark "> </ span >
135135 < div class ="card-body position-relative z-index-1 d-flex flex-column h-100 p-3 ">
136136 < h5 class ="text-white font-weight-bolder mb-4 pt-2 "> Work with the rockets</ h5 >
Original file line number Diff line number Diff line change 1616 < div class ="row gx-4 ">
1717 < div class ="col-auto ">
1818 < div class ="avatar avatar-xl position-relative ">
19- < img src ="{{ url_for('static', path='') }}/ img/bruce-mars.jpg " alt ="profile_image " class ="w-100 border-radius-lg shadow-sm ">
19+ < img src ="{{ url_for('static', path='img/bruce-mars.jpg') }} " alt ="profile_image " class ="w-100 border-radius-lg shadow-sm ">
2020 </ div >
2121 </ div >
2222 < div class ="col-auto my-auto ">
You can’t perform that action at this time.
0 commit comments