Skip to content

Commit 8a65d08

Browse files
authored
First version of Tutorials page (#413)
1 parent e2f6e65 commit 8a65d08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+808
-307
lines changed

assets/js/react/components/App.jsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ export const App = ({component, fetchData}) => {
2929
}
3030
}
3131

32-
fetchAsync()
32+
33+
if (fetchData) {
34+
fetchAsync()
35+
} else {
36+
setFetchingData({
37+
loading: false,
38+
data: {},
39+
error: null
40+
})
41+
}
3342
}, [])
3443

3544
if (fetchingData.loading) {

assets/scss/common/_custom.scss

+90-1
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,93 @@ iframe {
307307

308308
[data-dark-mode] .landing-colo {
309309
color: white;
310-
}
310+
}
311+
312+
.tutorials-container {
313+
width: 100%;
314+
}
315+
316+
.tutorials-container a {
317+
text-decoration: none;
318+
color: black;
319+
width: 100%;
320+
}
321+
322+
[data-dark-mode] .tutorials-container a {
323+
color: white;
324+
}
325+
326+
.tutorials-card {
327+
margin-right: 20px;
328+
border-radius: 4px 4px 4px 4px;
329+
border: 1px solid #d5d5d5;
330+
margin-bottom: 20px;
331+
}
332+
333+
[data-dark-mode] .tutorials-card {
334+
color: white;
335+
border-color: #8a8a8a;
336+
}
337+
338+
.tutorials-card .info {
339+
width: auto;
340+
background-color: #f5f5f5;
341+
opacity: 0.95; display: flex;
342+
justify-content: space-between;
343+
border-radius: 3px 3px 0px 0px;
344+
border-bottom: 1px solid #d5d5d5;
345+
}
346+
347+
[data-dark-mode] .tutorials-card .info {
348+
background-color: #3d3d3d;
349+
border-color: #8a8a8a;
350+
}
351+
352+
.tutorials-card .mainback {
353+
display: inline-flex;
354+
flex-wrap: wrap;
355+
justify-content: space-between;
356+
width: 100%;
357+
height: 200px;
358+
background-size: cover;
359+
border-radius: 0px 0px 4px 4px;
360+
}
361+
362+
.tutorials-card .mainback .title {
363+
background-color: #f5f5f5;
364+
border-top: 4px solid #a4a4a4;
365+
border-radius: 0px 0px 4px 4px;
366+
align-self: flex-end;
367+
width: 100%;
368+
font-size: 26px;
369+
font-weight: bold;
370+
opacity: 0.9;
371+
}
372+
373+
[data-dark-mode] .tutorials-card .mainback .title {
374+
background-color: #3d3d3d;
375+
border-color: #8a8a8a;
376+
}
377+
378+
@media (min-width: 1088px) {
379+
.tutorials-card {
380+
width: calc(33.3% - 20px);
381+
max-width:400px;
382+
}
383+
}
384+
385+
@media (min-width: 650px) and (max-width: 1087px) {
386+
.tutorials-card {
387+
min-width: calc(50% - 20px);
388+
width: calc(50% - 20px);
389+
max-width: calc(50% - 20px);
390+
}
391+
}
392+
393+
@media (min-width: 0px) and (max-width: 649px) {
394+
.tutorials-card {
395+
min-width: 100%;
396+
width: 100%;
397+
max-width: 100%;
398+
}
399+
}

config/_default/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
baseurl = "/"
22
canonifyURLs = false
3-
disableAliases = true
3+
disableAliases = false
44
disableHugoGeneratorInject = true
55
enableEmoji = true
66
enableGitInfo = false

config/_default/menus/menus.en.toml

+55-22
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
11
[[main]]
22
name = "Curriculum"
3-
url = "/"
3+
url = "/curriculum"
44
weight = 1000
55
[main.params]
66
identifier = "curriculum"
7+
image = "https://cdn-icons-png.flaticon.com/128/9041/9041299.png"
8+
width = 21
9+
height = 21
710

811
[[main]]
9-
name = "Prerequisites"
10-
url = "/prerequisites/objectives/"
12+
name = "Tutorials"
13+
url = "/tutorials"
1114
weight = 2000
1215
[main.params]
13-
identifier = "prerequisites"
16+
identifier = "tutorials"
17+
image = "https://cdn-icons-png.flaticon.com/128/6988/6988166.png"
18+
width = 26
19+
height = 26
1420

1521
[[main]]
1622
name = "Resources"
17-
url = "/resources/additional-learning/"
18-
weight = 3000
19-
[main.params]
20-
identifier = "resources"
21-
22-
[[main]]
23-
name = "About"
24-
url = "/about/"
23+
url = "/resources/about/"
2524
weight = 3500
2625
[main.params]
27-
identifier = "about"
26+
identifier = "resources"
27+
image = "https://cdn-icons-png.flaticon.com/128/2563/2563002.png"
28+
width = 24
29+
height = 24
2830

2931
[[main]]
3032
name = "Website"
3133
url = "https://pl-launchpad.io"
3234
weight = 4000
3335
[main.params]
3436
identifier = "website"
37+
image = "https://cdn-icons-png.flaticon.com/512/4302/4302080.png"
38+
width = 24
39+
height = 24
3540

3641
# [[main]]
3742
# name = "Get Started"
@@ -135,19 +140,47 @@
135140
section = "dev-tools"
136141
description = "Learn about some of the most popular tools and projects built using Protocol Labs' technology"
137142

138-
[[prereq]]
139-
name = "Pre-Requisites"
140-
weight = 10
141-
identifier = "prereq"
142-
143143
[[resources]]
144144
name = "Resources"
145145
weight = 20
146146
identifier = "resources-other"
147147

148+
[[resources]]
149+
name = "Prerequisites"
150+
weight = 20
151+
identifier = "resources-prerequisites"
152+
153+
[[resources]]
154+
name = "About"
155+
weight = 20
156+
identifier = "resources-about"
157+
158+
159+
[[tutorials]]
160+
name = "Introduction to IPFS"
161+
weight = 10
162+
identifier = "tutorials-ipfs"
163+
[tutorials.params]
164+
category = "ipfs"
165+
image = "/tutorials/intro-ipfs.png"
166+
167+
168+
[[tutorials]]
169+
name = "Building libp2p applications"
170+
weight = 20
171+
identifier = "tutorials-libp2p"
172+
[tutorials.params]
173+
category = "libp2p"
174+
image = "/tutorials/libp2p.png"
148175

176+
# [[tutorials]]
177+
# name = "Working with IPLD structures"
178+
# weight = 30
179+
# identifier = "tutorials-ipld"
180+
# [tutorials.params]
181+
# image = "/tutorials/ipld.svg"
149182

150-
# [[footer]]
151-
# name = "Privacy"
152-
# url = "/privacy-policy/"
153-
# weight = 10
183+
[[footer]]
184+
name = "About Launchpad"
185+
url = "/resources/about/"
186+
weight = 10

content/en/about/_index.md

-3
This file was deleted.

content/en/resources/about/index.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "About Launchpad"
3+
description: "The What and Why of Web3"
4+
draft: false
5+
menu:
6+
resources:
7+
parent: "resources-about"
8+
weight: 20
9+
aliases:
10+
- /about/
11+
---
12+
13+
{{< aboutpage >}}

content/en/resources/additional-learning.md renamed to content/en/resources/other/additional-learning.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ menu:
66
resources:
77
parent: "resources-other"
88
weight: 60
9+
aliases:
10+
- /resources/additional-learning/
911
---
1012

1113
#### The Lifecycle of Data in DWeb | IPFS Camp 2019

content/en/resources/built-on-ipfs.md renamed to content/en/resources/other/built-on-ipfs.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ menu:
66
resources:
77
parent: "resources-other"
88
weight: 70
9+
aliases:
10+
- /resources/built-on-ipfs/
911
---
1012

1113
IPFS and Filecoin have made it possible for a number of Dapps and tooling to be built for Web3.

content/en/resources/github-guide/index.md renamed to content/en/resources/other/github-guide/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ menu:
66
resources:
77
parent: "resources-other"
88
weight: 80
9+
aliases:
10+
- /resources/github-guide/
911
---
1012

1113
{{< embed src="https://docs.google.com/presentation/d/11V_BA5A64lCY_wFsvuLO4je02zvzJwD5vf2kzONDWyc/embed" width="100%" height="600px">}}
@@ -36,7 +38,7 @@ Issues are super easy ways for you to make a suggestion to an OSS team, without
3638

3739
Now the team who maintains that repo can see any problems you want to report, assign, and track who can see it. You will also get e-mail notifications for any responses people have to you. Using `@username` in a comment, Issue, or PR will notify that particular person.
3840

39-
![Issues Tab](issue-5.png)
41+
![Issues Tab](issue-5.png)
4042

4143
### Part 2: Make a PR in the GUI
4244
If you want to take your changes to the next step, you can fork the repo and make a Pull Request (PR). This will make it as easy as the click of a button for repo maintainers to add in your suggestions.

content/en/prerequisites/building-web3.md renamed to content/en/resources/prerequisites/building-web3.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Building Web3"
33
description: "The What and Why of Web3"
44
draft: false
55
menu:
6-
prereq:
7-
parent: "prereq"
6+
resources:
7+
parent: "resources-prerequisites"
88
weight: 20
99
---
1010

@@ -40,4 +40,4 @@ Web3 enhances the internet as we know it today with a few other added characteri
4040

4141
[**Smart Contracts – Simply Explained**](https://youtu.be/ZE2HxTmxfrI)
4242

43-
{{< youtube ZE2HxTmxfrI >}}
43+
{{< youtube ZE2HxTmxfrI >}}

content/en/prerequisites/objectives.md renamed to content/en/resources/prerequisites/objectives.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ title: "Learning Objectives & Quiz"
33
description: "Test your knowledge by taking a quiz"
44
draft: false
55
menu:
6-
prereq:
7-
parent: "prereq"
6+
resources:
7+
parent: "resources-prerequisites"
88
weight: 10
9+
aliases:
10+
- /prerequisites/objectives/
911
---
1012

1113
# Pre-Requisites

content/en/prerequisites/web3-and-pl/index.md renamed to content/en/resources/prerequisites/web3-and-pl/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Web3 & Protocol Labs"
33
description: "What is Web3, and How the Protocol Labs Network is Contributing"
44
draft: false
55
menu:
6-
prereq:
7-
parent: "prereq"
6+
resources:
7+
parent: "resources-prerequisites"
88
weight: 10
99
---
1010

content/en/prerequisites/web3-tools.md renamed to content/en/resources/prerequisites/web3-tools.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Web3 Tools"
33
description: "The Basic Tools and Mechanisms"
44
draft: false
55
menu:
6-
prereq:
7-
parent: "prereq"
6+
resources:
7+
parent: "resources-prerequisites"
88
weight: 30
99
---
1010

@@ -44,4 +44,4 @@ Essentially, [wallets](https://www.coinbase.com/learn/crypto-basics/what-is-a-cr
4444
### Smart Contracts & Security
4545

4646
* [Best Practices Blog](https://consensys.github.io/smart-contract-best-practices/)
47-
* [Webinar on Smart Contracts Security Best Practices](https://courses.consensys.net/courses/take/smart-contract-security/lessons/9798331-smart-contracts-security-best-practices)
47+
* [Webinar on Smart Contracts Security Best Practices](https://courses.consensys.net/courses/take/smart-contract-security/lessons/9798331-smart-contracts-security-best-practices)

0 commit comments

Comments
 (0)