Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
williamscch committed Nov 18, 2022
1 parent 5300b0b commit 57312de
Show file tree
Hide file tree
Showing 15 changed files with 352 additions and 162 deletions.
235 changes: 227 additions & 8 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
text-decoration: none;
}

html {
height: 100%;
}

body {
height: 100%;
height: 100vh;
}

/* Splash screen */
Expand All @@ -48,9 +44,9 @@ body {
}

.splash-logo {
width: 22rem;
margin-top: auto;
margin-bottom: auto;
width: 22rem;
margin-top: auto;
margin-bottom: auto;
}

.splash-btn {
Expand Down Expand Up @@ -82,3 +78,226 @@ body {

/* Sign-up page */

form {
width: 100%;
height: 100%;
}

.sign-up-header,
nav {
height: 3.5rem;
background-color: var(--blue);
color: white;
display: flex;
justify-content: space-between;
padding: 0.2rem 0.8rem;
align-items: center;
}

.go-back {
color: white;
font-size: 1rem;
}

.submit input {
background-color: transparent;
border: none;
color: white;
font-size: 1rem;
}

.shared-links {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}

.form-inputs {
margin-top: 1rem;
width: 90%;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem;
}

.div-input {
margin: 0.15rem 0;
width: 100%;
display: flex;
justify-content: center;
flex-direction: column;
}

.div-input input {
height: 2rem;
}

.check-box {
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
justify-content: flex-start;
}

/* NAVBAR */

.navbar {
display: flex;
justify-content: space-around;
width: 100%;
}

.navbar li a {
color: white;
}

/* Groups index page */

.groups-index {
display: flex;
margin-top: 1rem;
flex-direction: column;
align-items: center;
justify-content: center;
}

.groups-index h1 {
font-weight: 700;
font-size: 2rem;
color: var(--gray);
}

.groups-index a {
margin-top: 0.5rem;
font-weight: 700;
font-size: 1rem;
color: white;
padding: 5px;
border-radius: 3px;
background-color: var(--green);
text-align: center;
}

#groups {
width: 100%;
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
margin-top: 2rem;
}

/* single Group */

.single-group {
height: 3rem;
padding: 5px;
width: 90%;
display: grid;
align-items: center;
grid-template-columns: 20% 50% 30%;
background-color: rgb(225, 225, 225);
}

.single-group p {
font-size: 1.8rem;
margin: 0;
}

.single-group p a {
background-color: transparent;
font-size: 1.8rem;
color: var(--gray);
}

.group-price {
margin-left: auto;
font-size: 1.3rem;
color: var(--green);
font-weight: 700;
}

#group_icon {
height: 2.7rem;
font-size: 2rem;
width: 30%;
border-radius: 5px;
}

.submit-btn input {
border: none;
margin-top: 0.5rem;
font-weight: 700;
font-size: 1rem;
color: white;
padding: 5px;
border-radius: 3px;
background-color: var(--green);
}

/* group show */

.group-options-btns {
display: flex;
margin-top: 1rem;
width: 90%;
justify-content: space-between;
gap: 5px;
}

.button_to {
width: auto;
}

.button_to button {
background-color: red;
border: none;
margin-top: 0.5rem;
font-weight: 700;
font-size: 1rem;
color: white;
padding: 5px;
border-radius: 3px;
}

.expenses {
width: 100%;
margin-top: 2rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}

.expense {
height: 4rem;
padding: 5px;
width: 90%;
display: flex;
flex-direction: column;
align-items: center;
background-color: rgb(225, 225, 225);
}

.expense-main,
.expense-info {
display: flex;
width: 80%;
align-items: center;
}

.expense-title {
font-size: 1.6rem;
color: var(--gray);
}

.expense-info {
justify-content: space-between;
}

.expense-info a {
margin: 0;
}
57 changes: 27 additions & 30 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
<%# <%= render "layouts/signup" %>
<div class="container d-flex flex-column justify-content-center align-items-center">

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

<div class="field mt-2 mb-2">
<%= f.text_field :name, autofocus: true, autocomplete: "name", placeholder: "Full Name" %>
</div>

<div class="field mb-2">
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email" %>
</div>

<div class="field mb-2">
<%= f.label :password %>
<% if @minimum_password_length %>
<em>(<%= @minimum_password_length %> characters minimum)</em>
<% end %><br />
<%= f.password_field :password, autocomplete: "new-password", placeholder: "******" %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<div class="sign-up-header">
<%= link_to 'Back', root_path, class: 'go-back' %>
<h2>REGISTER</h2>
<div class="submit">
<%= f.submit "Sign up" %>
</div>
</div>

<div class="field mb-2">
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "******" %>
</div>

<div class="actions mb-5">
<%= f.submit "Sign up" %>
<%= render "devise/shared/error_messages", resource: resource %>
<div class='form-inputs'>
<div class='div-input'>
<%= f.text_field :name, autofocus: true, autocomplete: "name", placeholder: "Full Name" %>
</div>
<div class='div-input'>
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email" %>
</div>
<div class='div-input'>
<%= f.label :password %>
<% if @minimum_password_length %>
<em>(<%= @minimum_password_length %> characters minimum)</em>
<% end %><br />
<%= f.password_field :password, autocomplete: "new-password", placeholder: "******" %>
</div>
<div class='div-input'>
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "******" %>
</div>
</div>
<% end %>

<%= render "devise/shared/links" %>
</div>
</div>
40 changes: 20 additions & 20 deletions app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<h2>Log in</h2>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
</div>

<div class="field">
<%= f.label :password %><br />
<%= f.password_field :password, autocomplete: "current-password" %>
<div class="sign-up-header">
<%= link_to 'Back', root_path, class: 'go-back' %>
<h2>LOG IN</h2>
<div class="submit">
<%= f.submit "Log in" %>
</div>
</div>

<% if devise_mapping.rememberable? %>
<div class="field">
<%= f.check_box :remember_me %>
<%= f.label :remember_me %>
<div class='form-inputs'>
<div class="div-input">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
</div>
<div class="div-input">
<%= f.label :password %><br />
<%= f.password_field :password, autocomplete: "current-password" %>
</div>
<% end %>

<div class="actions">
<%= f.submit "Log in" %>
<% if devise_mapping.rememberable? %>
<div class="div-input check-box">
<%= f.check_box :remember_me %>
<%= f.label :remember_me %>
</div>
<% end %>
</div>
<% end %>

<%= render "devise/shared/links" %>
Loading

0 comments on commit 57312de

Please sign in to comment.