Skip to content

Commit da44c72

Browse files
committed
Completed Base Modules for Week 1
* Completed git modules * Made slight modifications to css * Temporarily removed the licensing module * Added an intro-to-unix module
1 parent bfcba16 commit da44c72

File tree

11 files changed

+505
-147
lines changed

11 files changed

+505
-147
lines changed

app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_unlocked():
3737

3838
@app.route("/")
3939
def hello_world():
40+
print(config)
4041
response = render_template("index.html", config=config, unlocked=get_unlocked())
4142
return response
4243

@@ -51,7 +52,10 @@ def module_view(module_url):
5152
return f"Module \"{module_name}\" not unlocked"
5253

5354
try:
54-
response = make_response(render_template(f"{module_url}.html", complete=module_id in get_unlocked()))
55+
response = make_response(
56+
render_template(f"{module_url}.html",
57+
complete=module_id in get_unlocked())
58+
)
5559

5660
except TemplateNotFound:
5761
response = make_response(f"Module \"{module_name}\" not yet implemented")

config.toml

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,83 @@
1-
columns=3
1+
# List of rows, each row contains any number of modules
2+
# Add a new row when you want to create a new overarching topic!
23

3-
[[module]]
4+
[[row]]
45
id=0
56
name="Getting Started"
6-
url="getting-started"
7+
8+
[[row]]
9+
id=1
10+
name="Software"
11+
12+
[[row]]
13+
id=2
14+
name="Version Control"
15+
16+
[[row]]
17+
id=3
18+
name="Licensing"
19+
20+
21+
# List of modules
22+
23+
[[module]]
24+
id=0
25+
name="Intro to Open Source"
26+
url="intro-to-open-source"
727
icon="flag-fill"
8-
column=0
28+
row=0
929
next=[7]
1030

1131
[[module]]
1232
id=7
1333
name="Installing Software"
1434
url="installing-software"
1535
icon="cloud-download-fill"
16-
column=0
17-
next=[1]
36+
row=0
37+
next=[8]
1838

1939
[[module]]
2040
id=1
2141
name="Version Control"
2242
url="version-control"
2343
icon="file-diff-fill"
24-
column=1
44+
row=1
2545
next=[2, 4]
2646

2747
[[module]]
2848
id=2
2949
name="Git"
3050
url="git"
3151
icon="git"
32-
column=1
52+
row=1
3353
next=[3]
3454

3555
[[module]]
3656
id=3
3757
name="GitHub"
3858
url="github"
3959
icon="github"
40-
column=1
60+
row=1
4161

4262
[[module]]
4363
id=4
44-
name="Tools"
45-
url="tools"
46-
icon="hammer"
47-
column=2
48-
next=[5, 6]
49-
50-
[[module]]
51-
id=5
5264
name="Editors"
5365
url="editors"
5466
icon="text-left"
55-
column=2
67+
row=2
68+
next=[6]
69+
70+
# [[module]]
71+
# id=6
72+
# name="Licensing"
73+
# url="licensing"
74+
# icon="person-fill-lock"
75+
# row=3
5676

5777
[[module]]
58-
id=6
59-
name="Licensing"
60-
url="licensing"
61-
icon="person-fill-lock"
62-
column=3
78+
id=8
79+
name="Intro to UNIX"
80+
url="intro-to-unix"
81+
icon="terminal-fill"
82+
row=0
83+
next=[1]

static/css/module.css

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1+
body {
2+
overflow-y: scroll;
3+
}
4+
15
p, ul {
2-
font-size: 18px;
6+
font-size: 16px;
37
line-height: 1.6rem;
48
}
59

10+
ol {
11+
list-style-type: decimal;
12+
margin-block-start: 1em;
13+
margin-block-end: 1em;
14+
margin-inline-start: 0px;
15+
margin-inline-end: 0px;
16+
padding-inline-start: 40px;
17+
}
18+
619
img {
720
display: block;
821
max-width: 600px;
@@ -11,7 +24,7 @@ img {
1124
}
1225

1326
ul {
14-
list-style: inside;
27+
list-style: disc;
1528
margin-left: 20px;
1629
margin-bottom: 0.67em;
1730
}
@@ -20,7 +33,7 @@ ul {
2033
margin: 30px 0;
2134
}
2235

23-
.citation {
36+
.caption {
2437
text-align: center;
2538
color: grey;
2639
}
@@ -76,15 +89,3 @@ ul {
7689
cursor: pointer;
7790
background-color: lightgrey;
7891
}
79-
80-
.module-completion {
81-
82-
}
83-
84-
.module-complete {
85-
position: sticky;
86-
text-align: center;
87-
padding: 10px;
88-
top: 0;
89-
background-color: #32d373;
90-
}

static/css/skill-tree.css

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
1+
body {
2+
overflow-y: scroll;
3+
}
4+
15
:root {
26
--green: #27db8a;
37
}
48

59
.modules {
610
margin: auto;
711
display: flex;
12+
flex-direction: column;
13+
}
14+
15+
.module-row {
16+
display: flex;
17+
}
18+
19+
/*
20+
.module-row + .module-row {
21+
border-top: 1px solid black;
22+
}
23+
*/
24+
25+
.module {
26+
margin: 10px;
27+
}
28+
29+
.module-header {
30+
display: flex;
31+
align-items: center;
832
}
933

1034
.module-icon-frame {
11-
border: 2px solid black;
35+
border: 2px solid var(--green);
1236
border-radius: 100px;
1337
display: flex;
1438
justify-content: center;
@@ -48,7 +72,7 @@
4872
}
4973

5074
.module-icon-link:visited .module-icon-frame {
51-
border-color: var(--green);
75+
border-color: black;
5276
}
5377

5478
.module-icon-link {
@@ -61,38 +85,3 @@
6185
align-items: center;
6286
}
6387

64-
.vl {
65-
border-left: 2px solid black;
66-
width: 20px;
67-
height: 20px;
68-
position: relative;
69-
left: 26px;
70-
margin-right: auto;
71-
}
72-
73-
.vl-locked {
74-
border-left: 2px solid lightgrey;
75-
width: 20px;
76-
height: 20px;
77-
position: relative;
78-
left: 26px;
79-
margin-right: auto;
80-
}
81-
82-
.hl {
83-
border-top: 2px solid black;
84-
width: 20px;
85-
height: 0;
86-
position: relative;
87-
top: 50%;
88-
float: right;
89-
}
90-
91-
.hl-locked {
92-
border-top: 2px solid lightgrey;
93-
width: 20px;
94-
height: 0;
95-
position: relative;
96-
top: 50%;
97-
float: right;
98-
}

templates/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ <h1>Menu</h1>
2929
<hr/>
3030
<div class="license">
3131
Licensed under <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a><br/>
32-
<a href="https://github.com/makeopensource/Modules">Source Code</a>
32+
<a href="https://github.com/makeopensource/Modules">Source Code</a><br/>
33+
Emil Kovacev
34+
3335
</div>
3436

3537
<script src="https://cdn.jsdelivr.net/gh/makeopensource/WebStyles/dist/js/webstyles.js"></script>

templates/editors.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{% extends "base-module.html" %}
2+
{% block module %}
3+
4+
# Editors
5+
6+
A programmer's editor can greatly aid in their ability to program. Many modern
7+
editors come with fancy features, like automatic text completion, linting,
8+
built-in version control, and fancy debuggers. Simple editors can be equally as
9+
effective, and often times much more lightweight and versitile.
10+
11+
Your editor can sometimes vary depending on the details of the project you work on.
12+
Some tools can be built as add-ons for some editors but not others.
13+
14+
For example,
15+
[VSCode](https://code.visualstudio.com) offers quite a few tools for developers,
16+
including an [extension](https://code.visualstudio.com/docs/languages/rust)
17+
for the programming language Rust,
18+
that adds many of the modern features I detailed earlier.
19+
20+
21+
## VSCode
22+
23+
Developed by Microsoft, VSCode is a relatively lightweight editor with a plethora of
24+
features. Aside from simple text input, you can install any number of extensions to help
25+
you program! It also happens to be open source, check out the repository
26+
[here](https://github.com/Microsoft/vscode/).
27+
28+
It is available on most platforms, you can install it
29+
[here](https://code.visualstudio.com/Download).
30+
31+
32+
## Vim
33+
34+
Vim is a program that has lasted the test of time. While it has a steeper learning
35+
curve than most other editors, it is incredibly powerful. *It also happens to be
36+
my editor of choice*.
37+
38+
Most Unix machines (Linux/Mac) will have base vim pre-installed. To start it, open
39+
your terminal application, type `vim`, and hit `Enter`. To exit, type `:` (Shift + ;),
40+
release, type `q`, release, then hit `Enter`. This is typically written
41+
as `:q`. For more instructions on how to use vim, open vim and run `:help tutor`.
42+
43+
I personally use a newer fork of vim called neovim, if you are curious about it,
44+
here is a link to the [repository](https://github.com/neovim/neovim),
45+
which includes guides and installation instructions.
46+
47+
48+
## Emacs
49+
50+
Emacs is the favorite of a number of professors. Similar to vim, it is an
51+
incredibly powerful tool with a long history and tons of customization.
52+
It also has a fairly steep learning curve, but is equally rewarding. You
53+
can install Emacs [here](https://www.gnu.org/software/emacs/download.html).
54+
55+
{% endblock %}

0 commit comments

Comments
 (0)