Skip to content
Merged

B1 #6

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
* It is generally better to create a new file per style scope.
*
*= require_self
*/
*/
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
class ApplicationController < ActionController::Base
# layout "application"
end
Binary file added db/development.sqlite3
Binary file not shown.
Empty file added db/test.sqlite3
Empty file.
10 changes: 6 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@
<head>
<title>Rock-Paper-Scissors Rules</title>

<link rel="stylesheet" href="/styles.css">
<!-- Expand the number of characters we can use in the document beyond basic ASCII 🎉 -->
<meta charset="utf-8">
</head>

<body>
<div class="row">
<div>
<a href="/rock">
<a class="button" href="/rock">
Play Rock
</a>
</div>

<div>
<a href="/paper">
<a class="button" href="/paper">
Play Paper
</a>
</div>

<div>
<a href="/scissors">
<a class="button" href="/scissors">
Play Scissors
</a>
</div>

</div>
<h1>
Welcome to Rock-Paper-Scissors!
</h1>
Expand Down
27 changes: 27 additions & 0 deletions public/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
* {
font-family: Arial, Helvetica, sans-serif;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 12px;
}
/*****************************/
.container {
width: 100%;
}
.row {
display: flex;
justify-content: start;
}
.one-third {
width: 32%;
}