Skip to content

Commit

Permalink
update styles v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anas599 committed May 27, 2023
1 parent b2a12dd commit 7a48661
Show file tree
Hide file tree
Showing 31 changed files with 25 additions and 14 deletions.
3 changes: 3 additions & 0 deletions app/views/devise/passwords/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<section class="text-white">

<h2>Forgot your password?</h2>

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
Expand All @@ -14,3 +16,4 @@
<% end %>

<%= render "devise/shared/links" %>
</section>
3 changes: 2 additions & 1 deletion app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section class="text-white">
<h2>Sign up</h2>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>

Expand Down Expand Up @@ -31,3 +31,4 @@
<% end %>

<%= render "devise/shared/links" %>
</section>
3 changes: 3 additions & 0 deletions app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<section class="text-white">

<h2>Log in</h2>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
Expand Down Expand Up @@ -25,3 +27,4 @@
<% end %>

<%= render "devise/shared/links" %>
</section>
4 changes: 2 additions & 2 deletions app/views/devise/shared/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<% end %>

<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<%= link_to "Sign up", new_registration_path(resource_name),class:"btn btn-outline-info my-3" %><br />
<% end %>

<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
<%= link_to "Forgot your password?", new_password_path(resource_name), class:"text-white" %><br />
<% end %>

<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
Expand Down
2 changes: 2 additions & 0 deletions app/views/foods/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
</div>
<div>
<%= form.hidden_field :user_id, value: current_user.id %>
<%= form.hidden_field :id %>

</div>
<div>
<%= form.submit class: "btn btn-primary my-3" %>
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
resources :users
resources :public_recipes, only: [:index]
root "foods#index"
patch '/foods', to: 'foods#update'

get '/general_shopping_list', to: 'recipes#general_shopping_list'

Expand Down

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
h1 {
background: #CFE7fA;
background: linear-gradient(to right, #CFE7fA 0%, #6393C1 100%);
background: #cfe7fa;
background: linear-gradient(to right, #cfe7fa 0%, #6393c1 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.icon-app {
width: 2rem;
margin-right: 0.5rem;
Expand All @@ -17,6 +18,7 @@ a {
color: black;
text-decoration: none;
}

body {
position: relative;
}
Expand All @@ -29,16 +31,15 @@ body::before {
width: 100%;
height: 100%;
background-image: url(/assets/black-kitchen-stone-.webp);

filter: blur(7px);
z-index: -1;
}
.glass-bg{
background: rgba(255, 255, 255, 0.37);

box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(7.7px);
-webkit-backdrop-filter: blur(7.7px);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #f1f1f1;
.glass-bg {
background: rgba(255, 255, 255, 0.37);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(7.7px);
-webkit-backdrop-filter: blur(7.7px);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #f1f1f1;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7a48661

Please sign in to comment.