-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbootcamp.rb
166 lines (145 loc) · 4.61 KB
/
bootcamp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
require 'erector'
require 'views'
require 'util'
require 'track'
require 'tracks_table'
require 'site'
require 'nav_bar'
class Bootcamp < Site
# base site has all tracks
def hostname
["bootcamp.burlingtoncodeacademy.com", "bootcamp"]
end
def google_calendar_id
'YnVybGluZ3RvbmNvZGVhY2FkZW15LmNvbV9hazFxMDRvNzBwYXBqODJkb2ZsYXVnMGM1c0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t'
end
def tracks
[
::Track::Javascript,
::Track::Www,
::Track::ResponsiveLayout,
::Track::ClientSideCoding,
::Track::Bootstrap,
::Track::ServerSideJavascript,
::Track::Oo,
::Track::Db,
::Track::React,
::Track::Separator,
::Track::Prerequisites,
::Track::Agile,
::Track::Git,
::Track::Cs,
::Track::Ux,
::Track::TricksOfTheTrade, # or "trade secrets" ?
::Track::Career,
::Track::Qa,
]
end
def view
View.new(site: self)
end
class View < Erector::Widget
def content
div.row {
div(class: 'col-sm') {
div.card {
div(class: 'card-body') {
p(class: 'card-text') {
b "Burlington Code Academy"
text " offers in-person coding classes in Burlington, Vermont."
}
p(class: 'card-text') {
text "This site contains the curriculum for our "
a "2018 Web Development Bootcamp", href: "http://www.burlingtoncodeacademy.com/bootcamp/"
text "."
}
}
}
br
div.card {
div(class: 'card-body') {
p(class: 'card-text') {
h2 "What next?"
ul {
li {
text "Peruse the "
i(class: 'fas fa-angle-double-left')
b "Tracks"
i(class: 'fas fa-angle-double-left')
text " in the sidebar to see what we are teaching."
}
li {
text "Look at the "
a "class schedule", href: "/schedule"
text " or a "
a "list of possible projects", href: "/projects"
text " the students will work on during the course."
}
li {
text "Browse the "
a "GitHub repository", href: "http://github.com/alexch/codelikethis"
text "."
}
li {
text "Visit the central "
a "Code Like This", href: "http://codelikethis.com/"
text " site, with even more lessons."
}
}
}
}
}
div.card do
div(class: "help", style: 'border: 10px solid #ddddee') {
img(src: "/images/tracks-lessons-slides.png")
}
end
}
}
end
# def notice
# p.notice {
# text "This site contains the curriculum for our "
# a "Summer 2018 bootcamp", href: "http://burlingtoncodeacademy.com/bootcamp"
# text " in Burlington, Vermont. "
# }
# end
end
class NavBar < ::NavBar
def logo klass: nil, style: nil
a(href: 'http://www.burlingtoncodeacademy.com',
class: 'navbar-brand') {
img.logo(src: '/images/burlingtoncodeacademy-logo.png',
width: 265, height: 36,
alt: "Burlington Code Academy",
class: ['logo', klass].compact,
style: [style].compact)
}
end
def nav_items
nav_item name: "Bootcamp", href: "http://www.burlingtoncodeacademy.com/bootcamp/"
nav_item name: "Hire Our Grads", href: "http://www.burlingtoncodeacademy.com/hiring-partners/"
# nav_item name: "Events", href: "http://www.burlingtoncodeacademy.com/events/"
# nav_item name: "Blog", href: "http://www.burlingtoncodeacademy.com/blog/"
nav_item name: "Schedule", href: "/schedule"
nav_item name: "Curriculum", dropdown: true do
a(@site.display_name, class: 'dropdown-item', href: @site.href)
@site.tracks.each do |track|
if (track == ::Track::Separator)
hr
else
a(class: ['dropdown-item', 'track-name'],
href: track.href
) {
i(class: "fas fa-paw")
text nbsp
text nbsp
text track.display_name
}
end
end
end
nav_item name: "Apply Now", href: "http://www.burlingtoncodeacademy.com/apply/", button: true
end
end
end