|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 | | - <title>Example with Bootstrap</title> |
| 7 | + <title>Checkforce.js</title> |
8 | 8 |
|
9 | 9 | <!-- Bootstrap CSS --> |
10 | 10 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" |
11 | 11 | integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> |
12 | 12 |
|
13 | | - <style> |
14 | | - :root { |
15 | | - --bg-color: #f5f5f5; |
16 | | - --color-success: #5cb85c; |
17 | | - --color-warning: #f0ad4e; |
18 | | - --color-danger: #df2930; |
19 | | - } |
20 | | - |
21 | | - /* Tooltip */ |
22 | | - |
23 | | - #checkforce-tooltip { |
24 | | - background: #ffffff; |
25 | | - border-radius: 6px; |
26 | | - padding: 1.2rem; |
27 | | - /* display: none; */ |
28 | | - box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; |
29 | | - } |
30 | | - #checkforce-tooltip[data-show] { |
31 | | - display: block; |
32 | | - } |
33 | | - |
34 | | - #arrow, |
35 | | - #arrow::before { |
36 | | - position: absolute; |
37 | | - width: 8px; |
38 | | - height: 8px; |
39 | | - background: inherit; |
40 | | - } |
41 | | - #arrow { |
42 | | - visibility: hidden; |
43 | | - } |
44 | | - |
45 | | - #arrow::before { |
46 | | - visibility: visible; |
47 | | - content: ''; |
48 | | - transform: rotate(45deg); |
49 | | - } |
50 | | - #checkforce-tooltip[data-popper-placement^='top'] > #arrow { |
51 | | - bottom: -4px; |
52 | | - } |
53 | | - |
54 | | - #checkforce-tooltip[data-popper-placement^='bottom'] > #arrow { |
55 | | - top: -4px; |
56 | | - } |
57 | | - |
58 | | - #checkforce-tooltip[data-popper-placement^='left'] > #arrow { |
59 | | - right: -4px; |
60 | | - } |
61 | | - |
62 | | - #checkforce-tooltip[data-popper-placement^='right'] > #arrow { |
63 | | - left: -4px; |
64 | | - } |
65 | | - |
66 | | - /* Progress */ |
67 | | - |
68 | | - .checkforce-progress { |
69 | | - display: flex; |
70 | | - } |
71 | | - .checkforce-progress .checkforce-progress-title { |
72 | | - width: 70px; |
73 | | - } |
74 | | - .checkforce-progress .checkforce-progress-level { |
75 | | - width: 158px; |
76 | | - height: 9px; |
77 | | - margin: .6rem; |
78 | | - display: flex; |
79 | | - } |
80 | | - |
81 | | - .checkforce-progress.danger .progress-bar--danger { |
82 | | - background-color: var(--color-danger) !important; |
83 | | - } |
84 | | - |
85 | | - .checkforce-progress.warning .progress-bar--danger { |
86 | | - background-color: var(--color-warning) !important; |
87 | | - } |
88 | | - .checkforce-progress.warning .progress-bar--warning { |
89 | | - background-color: var(--color-warning) !important; |
90 | | - } |
91 | | - |
92 | | - .checkforce-progress.success .progress-bar--danger { |
93 | | - background-color: var(--color-success) !important; |
94 | | - } |
95 | | - .checkforce-progress.success .progress-bar--warning { |
96 | | - background-color: var(--color-success) !important; |
97 | | - } |
98 | | - .checkforce-progress.success .progress-bar--success { |
99 | | - background-color: var(--color-success) !important; |
100 | | - } |
101 | | - |
102 | | - .checkforce-progress-bar { |
103 | | - margin: 0.1rem; |
104 | | - background-color: #e1e3e5; |
105 | | - -webkit-border-radius: 4px; |
106 | | - -moz-border-radius: 4px; |
107 | | - border-radius: 4px; |
108 | | - -webkit-transition: width 0.6s ease; |
109 | | - -o-transition: width 0.6s ease; |
110 | | - transition: width 0.6s ease; |
111 | | - } |
112 | | - </style> |
| 13 | + <!-- Custom styles for this template --> |
| 14 | + <link href="_root.css" rel="stylesheet"> |
| 15 | + <link href="_popover.css" rel="stylesheet"> |
| 16 | + <link href="_style.css" rel="stylesheet"> |
113 | 17 |
|
114 | 18 | </head> |
115 | 19 | <body> |
116 | 20 | <div class="container"> |
117 | | - <h1 class="mt-5">CheckForce.js</h1> |
118 | | - <h3 class="mb-5">Checando a força da senha</h3> |
| 21 | + <main class="form-signin"> |
| 22 | + <form> |
| 23 | + <img class="mb-4 m-auto" style="width: 300px" src="../logo.svg" alt="" width="72" height="57"> |
| 24 | + <h1 class="h3 mb-3 fw-normal text-center">Registrar conta</h1> |
| 25 | + |
| 26 | + <div class="form-floating"> |
| 27 | + <input type="text" class="form-control" id="floatingInputName" placeholder="name@example.com"> |
| 28 | + <label for="floatingInput">Nome</label> |
| 29 | + </div> |
119 | 30 |
|
120 | | - <div class="row"> |
121 | | - <div class="col"> |
122 | | - <div class="card text-dark bg-light mb-3"> |
123 | | - <div class="card-body p-4"> |
124 | | - <h3 class="mb-4">Criar uma nova conta</h3> |
125 | | - <form> |
126 | | - <div class="mb-3"> |
127 | | - <label for="input-name" class="form-label">Nome</label> |
128 | | - <input type="text" class="form-control" id="input-name" aria-describedby="Nome"> |
129 | | - </div> |
130 | | - <div class="mb-3"> |
131 | | - <label for="input-email" class="form-label">E-mail</label> |
132 | | - <input type="text" class="form-control" id="input-email" aria-describedby="E-mail"> |
133 | | - </div> |
134 | | - <div class="mb-3"> |
135 | | - <label for="input-password" class="form-label">Senha</label> |
136 | | - <input type="password" class="form-control" id="input-password" aria-describedby="Criar senha"> |
137 | | - </div> |
138 | | - <button type="submit" class="btn btn-primary">Criar conta</button> |
139 | | - </form> |
140 | | - </div> |
| 31 | + <div class="form-floating"> |
| 32 | + <input type="text" class="form-control" id="floatingInputEmail" placeholder="name@example.com"> |
| 33 | + <label for="floatingInput">E-mail</label> |
141 | 34 | </div> |
142 | | - </div> |
143 | | - </div> |
| 35 | + |
| 36 | + |
| 37 | + <div class="form-floating"> |
| 38 | + <input type="password" class="form-control" id="floatingPassword" placeholder="Senha"> |
| 39 | + <label for="floatingPassword">Senha</label> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div class="checkbox mb-3 text-center"> |
| 43 | + <label> |
| 44 | + <input type="checkbox" value="remember-me"> Lembre-me |
| 45 | + </label> |
| 46 | + </div> |
| 47 | + <button class="w-100 btn btn-lg btn-primary" type="submit">Criar</button> |
| 48 | + <p class="mt-5 mb-3 text-center text-muted">© checkforce.js</p> |
| 49 | + </form> |
| 50 | + </main> |
144 | 51 | </div> |
145 | 52 |
|
146 | 53 | <!-- Include library --> |
147 | | - <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" |
148 | | - integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script> |
149 | | -
|
150 | | - <script src="../../node_modules/zxcvbn/dist/zxcvbn.js"></script> --> |
151 | | - |
152 | 54 | <script src="../../dist/checkforce.bundle.js"></script> |
153 | | - <!-- <script src="../../dist/checkforce.js"></script> --> |
154 | | - <!-- <script src="../../dist/checkforce.bundle.min.js"></script> --> |
155 | 55 | <script> |
156 | | - const checkForce = new CheckForce('#input-password', { |
157 | | - // placement: 'bottom' |
158 | | - // template: 'Novo template' |
159 | | - }); |
| 56 | + const checkForce = new CheckForce('#floatingPassword', { placement: 'right' }); |
160 | 57 | </script> |
161 | 58 |
|
162 | 59 | </body> |
|
0 commit comments