8
8
< div class ="logged_in_nav ">
9
9
< div class ="flex ">
10
10
< div >
11
- < img src ="../static/images/workos_logo_new.png " alt ="workos logo ">
12
- </ div >
13
- < div class ="flex ">
14
- < p > WorkOS</ p >
11
+ < img src ="../static/images/workos-logo-with-text.png " alt ="workos logo ">
15
12
</ div >
16
13
</ div >
17
14
< div >
@@ -46,23 +43,55 @@ <h2 class="home-hero-gradient">Enterprise Ready</h2>
46
43
< div >
47
44
< form method ="POST " action ="{{ url_for('verify_factor') }} ">
48
45
< div class ='flex_column '>
49
- < div >
50
- < input type ="text " id ="code " name ="code " class ="text_input "
51
- placeholder ="Input Auth Code ">
46
+ < div class ="flex form-wrap ">
47
+ < input type ="text " id ="code-1 " name ="code-1 " maxlength ="1 "
48
+ class ="text_input code-input " placeholder ="- ">
49
+ < input type ="text " id ="code-2 " name ="code-2 " maxlength ="1 "
50
+ class ="text_input code-input " placeholder ="- ">
51
+ < input type ="text " id ="code-3 " name ="code-3 " maxlength ="1 "
52
+ class ="text_input code-input " placeholder ="- ">
53
+ < input type ="text " id ="code-4 " name ="code-4 " maxlength ="1 "
54
+ class ="text_input code-input " placeholder ="- ">
55
+ < input type ="text " id ="code-5 " name ="code-5 " maxlength ="1 "
56
+ class ="text_input code-input " placeholder ="- ">
57
+ < input type ="text " id ="code-6 " name ="code-6 " maxlength ="1 "
58
+ class ="text_input code-input " placeholder ="- ">
52
59
</ div >
53
- < div >
54
- < button type ="submit " class ="button "> Verify Factor</ button >
60
+ < div class ="flex space-evenly width_25vw ">
61
+ < div >
62
+ < button type ="submit " class ="button button-sm "> Verify Factor</ button >
63
+ </ div >
64
+ < div >
65
+ < a href ="/ "> < button type ="button " class ='button button-sm '> Go Back
66
+ Home</ button > </ a >
67
+ </ div >
55
68
</ div >
56
69
</ div >
57
70
</ form >
58
-
59
71
</ div >
60
72
</ div >
61
-
62
73
</ div >
63
-
64
74
</ div >
65
75
</ div >
66
76
</ body >
77
+ < script >
78
+ var container = document . getElementsByClassName ( "form-wrap" ) [ 0 ] ;
79
+ container . onkeyup = function ( e ) {
80
+ var target = e . srcElement ;
81
+ var maxLength = parseInt ( target . attributes [ "maxlength" ] . value , 10 ) ;
82
+ var myLength = target . value . length ;
83
+ if ( myLength >= maxLength ) {
84
+ var next = target ;
85
+ while ( next = next . nextElementSibling ) {
86
+ if ( next == null )
87
+ break ;
88
+ if ( next . tagName . toLowerCase ( ) == "input" ) {
89
+ next . focus ( ) ;
90
+ break ;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ </ script >
67
96
68
97
</ html >
0 commit comments