Skip to content

Commit 04be326

Browse files
committed
Finish layout and routes
1 parent 305a299 commit 04be326

27 files changed

+962
-36
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@
3434
/config/master.key
3535

3636
# Ignore db test files.
37-
db/test.*
37+
db/test.*
38+
/app/assets/builds/*
39+
!/app/assets/builds/.keep
40+
41+
/node_modules

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
ruby "3.4.3"
55

66
gem "rails", "8.0.2"
7+
gem "cssbundling-rails", "1.4.3"
78
gem "propshaft", "1.2.1"
89
gem "importmap-rails", "2.1.0"
910
gem "turbo-rails", "2.0.14"

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ GEM
9696
concurrent-ruby (1.3.5)
9797
connection_pool (2.5.4)
9898
crass (1.0.6)
99+
cssbundling-rails (1.4.3)
100+
railties (>= 6.0.0)
99101
date (3.4.1)
100102
debug (1.11.0)
101103
irb (~> 1.10)
@@ -347,6 +349,7 @@ PLATFORMS
347349
DEPENDENCIES
348350
bootsnap (= 1.18.6)
349351
capybara (= 3.40.0)
352+
cssbundling-rails (= 1.4.3)
350353
debug (= 1.11.0)
351354
guard (= 2.19.1)
352355
guard-minitest (= 2.4.6)

Procfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web: env RUBY_DEBUG_OPEN=true bin/rails server
2+
css: yarn watch:css

app/assets/builds/.keep

Whitespace-only changes.

app/assets/images/rails.svg

Lines changed: 35 additions & 0 deletions
Loading
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
@import "bootstrap/scss/bootstrap";
2+
@import "bootstrap-icons/font/bootstrap-icons";
3+
4+
/* mixins, variables, etc. */
5+
$gray: gray;
6+
$gray-light: #777;
7+
$gray-medium-light: #eaeaea;
8+
$gray-darker: #555;
9+
/* universal */
10+
11+
body > div {
12+
padding-top: 30px;
13+
}
14+
15+
section {
16+
overflow: auto;
17+
}
18+
textarea {
19+
resize: vertical;
20+
}
21+
.center {
22+
text-align: center;
23+
h1 {
24+
margin-bottom: 10px;
25+
}
26+
}
27+
/* typography */
28+
h1,
29+
h2,
30+
h3,
31+
h4,
32+
h5,
33+
h6 {
34+
line-height: 1;
35+
}
36+
h1 {
37+
font-size: 3em;
38+
letter-spacing: -2px;
39+
margin-bottom: 30px;
40+
text-align: center;
41+
}
42+
h2 {
43+
font-size: 1.2em;
44+
letter-spacing: -1px;
45+
margin-bottom: 30px;
46+
text-align: center;
47+
font-weight: normal;
48+
color: $gray-light;
49+
}
50+
p {
51+
font-size: 1.1em;
52+
line-height: 1.7em;
53+
}
54+
/* header */
55+
#logo {
56+
float: left;
57+
margin-right: 10px;
58+
font-size: 1.7em;
59+
color: white;
60+
text-transform: uppercase;
61+
letter-spacing: -1px;
62+
padding-top: 9px;
63+
font-weight: bold;
64+
&:hover {
65+
color: white;
66+
text-decoration: none;
67+
}
68+
}
69+
/* footer */
70+
footer {
71+
margin-top: 45px;
72+
padding-top: 5px;
73+
border-top: 1px solid $gray-medium-light;
74+
color: $gray-light;
75+
a {
76+
color: $gray;
77+
&:hover {
78+
color: $gray-darker;
79+
}
80+
}
81+
small {
82+
float: left;
83+
}
84+
ul {
85+
float: right;
86+
list-style: none;
87+
li {
88+
float: left;
89+
margin-left: 15px;
90+
}
91+
}
92+
}

app/assets/stylesheets/application.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/controllers/static_pages_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ def help
77

88
def about
99
end
10+
11+
def contact
12+
13+
end
1014
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class UsersController < ApplicationController
2+
def new
3+
end
4+
end

0 commit comments

Comments
 (0)