-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style home page following style guidelines
- Loading branch information
1 parent
a1dad6f
commit af2c7f0
Showing
45 changed files
with
369 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,80 @@ | ||
/* | ||
* This is a manifest file that'll be compiled into application.css, which will include all the files | ||
* listed below. | ||
* | ||
* Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's | ||
* vendor/assets/stylesheets directory can be referenced here using a relative path. | ||
* | ||
* You're free to add application-wide styles to this file and they'll appear at the bottom of the | ||
* compiled file so the styles you add here take precedence over styles defined in any other CSS | ||
* files in this directory. Styles in this file should be added after the last require_* statement. | ||
* It is generally better to create a new file per style scope. | ||
* | ||
*= require_tree . | ||
*= require_self | ||
*/ | ||
@import url('https://fonts.cdnfonts.com/css/proxima-nova-2'); | ||
|
||
body { | ||
font-family: 'Proxima Nova', sans-serif; | ||
margin: 0; | ||
} | ||
|
||
.logo { | ||
width: 29px; | ||
height: 29px; | ||
} | ||
|
||
.home-container { | ||
margin: 10px; | ||
} | ||
|
||
.home-title { | ||
margin-top: 100px; | ||
text-align: center; | ||
font-size: 32px; | ||
} | ||
|
||
.home-title span { | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.home-texts p { | ||
text-align: center; | ||
} | ||
|
||
.home-buttons { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 180px; | ||
} | ||
|
||
.home-buttons a { | ||
text-decoration: none; | ||
padding: 15px 0; | ||
text-align: center; | ||
width: 90%; | ||
} | ||
|
||
.home-buttons a:first-child { | ||
background-color: #3778c2; | ||
color: white; | ||
border-radius: 3px; | ||
} | ||
|
||
.home-buttons a:last-child { | ||
background-color: white; | ||
color: gray; | ||
} | ||
|
||
.category-icon { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
|
||
.add-category-btn { | ||
display: block; | ||
position: fixed; | ||
bottom: 0; | ||
text-align: center; | ||
width: 100%; | ||
padding: 30px 0; | ||
text-decoration: none; | ||
color: #fff; | ||
background-color: #5fb523; | ||
outline: 1px white solid; | ||
outline-offset: -13px; | ||
} | ||
|
||
.height { | ||
height: 80px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div id="<%= dom_id entity %>"> | ||
<p> | ||
<strong>Name:</strong> | ||
<%= entity.name %> | ||
</p> | ||
|
||
<p> | ||
<strong>Amount:</strong> | ||
<%= entity.amount %> | ||
</p> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
json.extract! entity, :id, :name, :amount, :created_at, :updated_at | ||
json.url entity_url(entity, format: :json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<%= params[:category_id]%> | ||
|
||
<%= form_with(model: entity) do |form| %> | ||
<% if entity.errors.any? %> | ||
<div style="color: red"> | ||
<h2><%= pluralize(entity.errors.count, "error") %> prohibited this entity from being saved:</h2> | ||
|
||
<ul> | ||
<% entity.errors.each do |error| %> | ||
<li><%= error.full_message %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
|
||
<div> | ||
<%= form.label :name, style: "display: block" %> | ||
<%= form.text_field :name %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :amount, style: "display: block" %> | ||
<%= form.number_field :amount, step: "0.01" %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :category_ids, 'Categories' %> | ||
<%= form.select :category_ids, @categories.map { |category| [category.name, category.id, selected: @category_id == category.id] }, {include_blank: false}, { multiple: true} %> | ||
</div> | ||
<%= form.hidden_field :category_id, value: @category_id %> | ||
|
||
<div> | ||
<%= form.submit %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<h1>Editing entity</h1> | ||
|
||
<%= render "form", entity: @entity %> | ||
|
||
<br> | ||
|
||
<div> | ||
<%= link_to "Show this entity", @entity %> | | ||
<%= link_to "Back to entities", entities_path %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p style="color: green"><%= notice %></p> | ||
|
||
<h1>Entities</h1> | ||
|
||
<div id="entities"> | ||
<% @entities.each do |entity| %> | ||
<%= render entity %> | ||
<p> | ||
<%= link_to "Show this entity", entity %> | ||
</p> | ||
<% end %> | ||
</div> | ||
|
||
<%= link_to "New entity", new_entity_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
json.array! @entities, partial: 'entities/entity', as: :entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>New entity</h1> | ||
|
||
<%= render "form", entity: @entity %> | ||
|
||
<br> | ||
|
||
<div> | ||
<%= link_to "Back to entities", entities_path %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<p style="color: green"><%= notice %></p> | ||
|
||
<%= render @entity %> | ||
|
||
<div> | ||
<%= link_to "Edit this entity", edit_entity_path(@entity) %> | | ||
<%= link_to "Back to entities", entities_path %> | ||
|
||
<%= button_to "Destroy this entity", @entity, method: :delete %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
json.partial! 'entities/entity', entity: @entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<section class="home-container"> | ||
<div> | ||
<div class="home-texts"> | ||
<h1 class="home-title">BUDGET <br> <span>TRA <%= image_tag "logo.png", class: 'logo'%> KER<span></h1> | ||
<p>Budget Tracker provides track of daily transaction that helps make wise financial desicions</p> | ||
</div> | ||
<div class="home-buttons"> | ||
<%= link_to "LOG IN", new_user_session_path %> | ||
<%= link_to "SIGN UP", new_user_registration_path %> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.