-
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.
adds simple styling using materialize
- Loading branch information
1 parent
f69ea07
commit 6fd066f
Showing
21 changed files
with
33 additions
and
29 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
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,6 @@ | ||
@import "materialize"; | ||
@import "https://fonts.googleapis.com/icon?family=Material+Icons"; | ||
|
||
h1,h5 { | ||
text-align: center; | ||
} |
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 +1,3 @@ | ||
<h1>WebShop</h1> | ||
|
||
<h1><%= link_to "See all Items", items_path, class: "waves-effect waves-light btn" %></h1> |
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,17 +1,22 @@ | ||
<div class="container"> | ||
<h2>Items</h2> | ||
<h1>Items</h1> | ||
|
||
<% if @items.any? %> | ||
<% @items.each do |i| %> | ||
<p> <%= i.name %></p> | ||
<p> <%= i.description %></p> | ||
<%= image_tag i.avatar.url(:medium) %> | ||
<% end %> | ||
<% else %> | ||
<h2>No items yet!</h2> | ||
<% end %> | ||
|
||
<%= link_to "Add a new Item", new_item_path %> | ||
|
||
<% if @items.any? %> | ||
<% @items.each do |i| %> | ||
<div class="row"> | ||
<div class="col s3 offset-s1"> | ||
<p><b> <%= i.name %> </b></p> | ||
<p> <%= i.description %></p> | ||
<p> £<%= i.price %></p> | ||
<p> <%= image_tag i.avatar.url(:medium), class: "responsive-img" %> </p> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
<h5>No items yet!</h5> | ||
<% end %> | ||
|
||
</div> | ||
|
||
<h1><%= link_to "Add a new Item", new_item_path, class: "waves-effect waves-light btn" %></h1> |
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,10 +1,11 @@ | ||
<h1>Adding Items</h1> | ||
|
||
<div class="container"> | ||
<%= form_for(@item, html: {multipart: true}) do |f| %> | ||
Name: <%= f.text_field :name %> | ||
Description: <%= f.text_field :description %> | ||
Price: <%= f.number_field :price %> | ||
<%= f.label :avatar %> | ||
<%= f.file_field :avatar %> | ||
<p><%= f.submit %></p> | ||
<p><%= f.submit(class: "waves-effect waves-light btn") %> | ||
<% end %> | ||
</div> |
Binary file added
BIN
+8.35 KB
public/system/items/avatars/000/000/004/medium/smartphones-2182838_1280.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.7 KB
public/system/items/avatars/000/000/004/original/smartphones-2182838_1280.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
public/system/items/avatars/000/000/005/medium/startup-593335_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+311 KB
public/system/items/avatars/000/000/005/original/startup-593335_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.8 KB
public/system/items/avatars/000/000/006/medium/whiteboard-849803_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+479 KB
public/system/items/avatars/000/000/006/original/whiteboard-849803_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.5 KB
public/system/items/avatars/000/000/007/medium/IMG_20170521_130541_1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+575 KB
public/system/items/avatars/000/000/007/original/IMG_20170521_130541_1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
public/system/items/avatars/000/000/008/medium/startup-593335_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+311 KB
public/system/items/avatars/000/000/008/original/startup-593335_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.8 KB
public/system/items/avatars/000/000/009/medium/startup-593341_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+345 KB
public/system/items/avatars/000/000/009/original/startup-593341_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.8 KB
public/system/items/avatars/000/000/010/medium/whiteboard-849803_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+479 KB
public/system/items/avatars/000/000/010/original/whiteboard-849803_1920.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.