|
1 | | -<header class="page-header" role="banner" style="margin: 0 auto;"> |
2 | | - <h1><%= t('.title') %></h1> |
| 1 | +<header class="text-center mb-8"> |
| 2 | + <h1 class="font-bold text-3xl text-white"><%= t('.title') %></h1> |
3 | 3 | </header> |
4 | | -<p class="h4"> |
5 | | - <%= raw t('.prompt', client_name: content_tag(:strong, class: 'text-info') { @pre_auth.client.name }) %> |
6 | | -</p> |
7 | 4 |
|
8 | | -<% if @pre_auth.scopes.count > 0 %> |
9 | | - <div id="oauth-permissions"> |
10 | | - <p><%= t('.able_to') %>:</p> |
| 5 | +<div class="bg-dark rounded-lg p-6 mb-8 border border-darkless"> |
| 6 | + <p class="text-lg text-white mb-4"> |
| 7 | + <%= raw t('.prompt', client_name: content_tag(:strong, class: 'text-primary') { @pre_auth.client.name }) %> |
| 8 | + </p> |
11 | 9 |
|
12 | | - <ul class="text-info"> |
13 | | - <% @pre_auth.scopes.each do |scope| %> |
14 | | - <li><%= t scope, scope: [:doorkeeper, :scopes] %></li> |
15 | | - <% end %> |
16 | | - </ul> |
17 | | - </div> |
18 | | -<% end %> |
| 10 | + <% if @pre_auth.scopes.count > 0 %> |
| 11 | + <div id="oauth-permissions"> |
| 12 | + <p class="text-sm text-white mb-3"><%= t('.able_to') %>:</p> |
19 | 13 |
|
20 | | -<div class="actions"> |
21 | | - <%= form_tag oauth_authorization_path, method: :post do %> |
| 14 | + <ul class="space-y-2"> |
| 15 | + <% @pre_auth.scopes.each do |scope| %> |
| 16 | + <li class="flex items-center text-white"> |
| 17 | + <span class="inline-block w-2 h-2 bg-primary rounded-full mr-3"></span> |
| 18 | + <%= t scope, scope: [:doorkeeper, :scopes] %> |
| 19 | + </li> |
| 20 | + <% end %> |
| 21 | + </ul> |
| 22 | + </div> |
| 23 | + <% end %> |
| 24 | +</div> |
| 25 | + |
| 26 | +<div class="space-y-3"> |
| 27 | + <%= form_tag oauth_authorization_path, method: :post, class: "w-full" do %> |
22 | 28 | <%= hidden_field_tag :client_id, @pre_auth.client.uid, id: nil %> |
23 | 29 | <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri, id: nil %> |
24 | 30 | <%= hidden_field_tag :state, @pre_auth.state, id: nil %> |
|
27 | 33 | <%= hidden_field_tag :scope, @pre_auth.scope, id: nil %> |
28 | 34 | <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge, id: nil %> |
29 | 35 | <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method, id: nil %> |
30 | | - <%= submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "btn btn-success btn-lg btn-block", style: "background-color: oklch(70.03% 0.194 144.71); border: none" %> |
| 36 | + <%= submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "w-full px-4 py-3 bg-primary hover:bg-red-600 text-white font-bold rounded transition-colors cursor-pointer" %> |
31 | 37 | <% end %> |
32 | | - <%= form_tag oauth_authorization_path, method: :delete do %> |
| 38 | + <%= form_tag oauth_authorization_path, method: :delete, class: "w-full" do %> |
33 | 39 | <%= hidden_field_tag :client_id, @pre_auth.client.uid, id: nil %> |
34 | 40 | <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri, id: nil %> |
35 | 41 | <%= hidden_field_tag :state, @pre_auth.state, id: nil %> |
|
38 | 44 | <%= hidden_field_tag :scope, @pre_auth.scope, id: nil %> |
39 | 45 | <%= hidden_field_tag :code_challenge, @pre_auth.code_challenge, id: nil %> |
40 | 46 | <%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method, id: nil %> |
41 | | - <%= submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "btn btn-danger btn-lg btn-block" %> |
| 47 | + <%= submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "w-full px-4 py-3 border-darkless bg-dark hover:bg-gray-600 border border-gray-600 text-gray-300 rounded transition-colors cursor-pointer" %> |
42 | 48 | <% end %> |
43 | 49 | </div> |
0 commit comments