Skip to content

Commit 2aab50e

Browse files
Kevin KroneKevin Krone
Kevin Krone
authored and
Kevin Krone
committed
Rework responsive design, refactor pages
1 parent f417113 commit 2aab50e

31 files changed

+352
-86
lines changed

.DS_Store

2 KB
Binary file not shown.

config.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
baseURL = 'https://wentelteefje.github.io/paritytech-prototype/'
22
languageCode = 'en-us'
3-
title = 'Parity Tech Rework'
3+
title = 'Parity Tech'
44
theme = 'hugo-book-master'
55
enableGitInfo = true
66
[params]
77
BookLogo = 'parity-logo-square.png'
8+
BookSearch = false
89
[markup]
910
[markup.tableOfContents]
1011
endLevel = 3
1112
startLevel = 1
1213
[markup.goldmark.renderer]
13-
unsafe= true
14+
unsafe= true

content/docs/.DS_Store

0 Bytes
Binary file not shown.

content/docs/index.md content/docs/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ math: true
1414
{{< tab "Polkadot" >}}
1515
{{< insert-desc "polkadot-logo-pixelated.png" "Polkadot is a layer-0 protocol and multichain network laying the foundation for the future of Web3. Substrate is the primary blockchain SDK used by developers to create the parachains that make up the Polkadot network." >}}
1616

17-
{{< git-repo-info "polkadot" >}}
17+
{{< git-repo-info-text "polkadot" >}}
1818

1919
## Contributors
2020
{{< git-collaborators "polkadot" >}}
@@ -45,7 +45,7 @@ math: true
4545
{{< /tab >}}
4646
{{< /tabs >}}
4747

48-
# {{< insert-icon "" "heart" >}} Contribute!
48+
# {{< insert-icon "" "heart" >}} Join in!
4949
The following list consists of open issues from our projects, for which mentoring support is provided. It's an ideal starting point for new contributors. Prior to contributing, please ensure you have read Substrate's [ contribution](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) and [documentation](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md) guidelines.
5050

5151
{{< git-issues-new >}}

content/docs/cumulus.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Cumulus"
3+
weight: 3
4+
# bookFlatSection: false
5+
bookToc: false
6+
# bookHidden: false
7+
# bookCollapseSection: false
8+
# bookComments: false
9+
# bookSearchExclude: false
10+
math: true
11+
---
12+
<!-- # Cumulus -->
13+
{{< insert-desc "substrate-logo-pixelated.png" "Cumulus is a set of tools for writing Substrate-based Polkadot parachains. It's easy to write blockchains using Substrate, and the overhead of writing parachains' distribution, p2p, database, and synchronization layers should be just as low. This project aims to make it easy to write parachains for Polkadot by leveraging the power of Substrate." >}}
14+
15+
{{< show-links "cumulus" >}}
16+
17+
{{< git-repo-info-text "cumulus" >}}
18+
19+
## Contributors
20+
{{< git-collaborators "cumulus" >}}
21+
22+
# {{< insert-icon "" "heart" >}} Join in!
23+
The following list consists of open issues from our projects, for which mentoring support is provided. It's an ideal starting point for new contributors. Prior to contributing, please ensure you have read Substrate's [ contribution](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) and [documentation](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md) guidelines.
24+
25+
{{< git-issues-new "cumulus" >}}
26+
27+
# {{< insert-icon "" "trophy" >}} Trophy section
28+
This section highlights recently resolved mentored issues. Congratulations on your achievements!
29+
30+
{{< git-trophies-list-vanilla "cumulus" >}}

content/docs/ink.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "ink!"
3+
weight: 4
4+
# bookFlatSection: false
5+
bookToc: false
6+
# bookHidden: false
7+
# bookCollapseSection: false
8+
# bookComments: false
9+
# bookSearchExclude: false
10+
math: true
11+
---
12+
<!-- # ink! -->
13+
{{< insert-desc "ink-logo-pixelated.png" "ink! is an Embedded Domain Specific Language (EDSL) that you can use to write WebAssembly based smart contracts in the Rust programming language." >}}
14+
15+
{{< show-links "ink" >}}
16+
17+
{{< git-repo-info-text "ink" >}}
18+
19+
## Contributors
20+
{{< git-collaborators "ink" >}}
21+
22+
# {{< insert-icon "" "heart" >}} Join in!
23+
The following list consists of open issues from our projects, for which mentoring support is provided. It's an ideal starting point for new contributors. Prior to contributing, please ensure you have read Substrate's [ contribution](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) and [documentation](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md) guidelines.
24+
25+
{{< git-issues-new "ink" >}}
26+
27+
# {{< insert-icon "" "trophy" >}} Trophy section
28+
This section highlights recently resolved mentored issues. Congratulations on your achievements!
29+
30+
{{< git-trophies-list-vanilla "ink" >}}
File renamed without changes.

content/docs/logo.png

-265 KB
Binary file not shown.

content/docs/polkadot.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Polkadot"
3+
weight: 1
4+
# bookFlatSection: false
5+
bookToc: false
6+
# bookHidden: false
7+
# bookCollapseSection: false
8+
# bookComments: false
9+
# bookSearchExclude: false
10+
math: true
11+
---
12+
<!-- # Polkadot -->
13+
{{< insert-desc "polkadot-logo-pixelated.png" "Polkadot is a layer-0 protocol and multichain network laying the foundation for the future of Web3. Substrate is the primary blockchain SDK used by developers to create the parachains that make up the Polkadot network." >}}
14+
15+
{{< show-links "polkadot" >}}
16+
17+
18+
{{< git-repo-info-text "polkadot" >}}
19+
20+
## Contributors
21+
{{< git-collaborators "polkadot" >}}
22+
23+
# {{< insert-icon "" "heart" >}} Join in!
24+
The following list consists of open issues from our projects, for which mentoring support is provided. It's an ideal starting point for new contributors. Prior to contributing, please ensure you have read Substrate's [ contribution](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) and [documentation](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md) guidelines.
25+
26+
{{< git-issues-new "polkadot" >}}
27+
28+
# {{< insert-icon "" "trophy" >}} Trophy section
29+
This section highlights recently resolved mentored issues. Congratulations on your achievements!
30+
31+
{{< git-trophies-list-vanilla "polkadot" >}}
Loading

content/docs/substrate.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Substrate"
3+
weight: 2
4+
# bookFlatSection: false
5+
bookToc: false
6+
# bookHidden: false
7+
# bookCollapseSection: false
8+
# bookComments: false
9+
# bookSearchExclude: false
10+
math: true
11+
---
12+
<!-- # Substrate -->
13+
{{< insert-desc "substrate-logo-pixelated.png" "Substrate allows you to create specialized blockchains for any use case, and was used by Parity Technologies to create Polkadot itself, which attests to its high level of performance, flexibility, and robustness." >}}
14+
15+
{{< show-links "substrate" >}}
16+
17+
{{< git-repo-info-text "substrate" >}}
18+
19+
## Contributors
20+
{{< git-collaborators "substrate" >}}
21+
22+
# {{< insert-icon "" "heart" >}} Join in!
23+
The following list consists of open issues from our projects, for which mentoring support is provided. It's an ideal starting point for new contributors. Prior to contributing, please ensure you have read Substrate's [ contribution](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) and [documentation](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md) guidelines.
24+
25+
{{< git-issues-new "substrate" >}}
26+
27+
# {{< insert-icon "" "trophy" >}} Trophy section
28+
This section highlights recently resolved mentored issues. Congratulations on your achievements!
29+
30+
{{< git-trophies-list-vanilla "substrate" >}}
Loading

resources/_gen/assets/scss/book.scss_e129fe35b8d0a70789c8a08429469073.content

+1-1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Target":"book.min.84438efff5e11db09a2acd3ce0c8e93ece9c554e25e266f444c532c4e02a1d07.css","MediaType":"text/css","Data":{"Integrity":"sha256-hEOO//XhHbCaKs084MjpPs6cVU4l4mb0RMUyxOAqHQc="}}
1+
{"Target":"book.min.438991ad69ff102f3199f3edaa0d857f13652b6bfa2d566e049d490b3591aaaf.css","MediaType":"text/css","Data":{"Integrity":"sha256-Q4mRrWn/EC8xmfPtqg2FfxNlK2v6LVZuBJ1JCzWRqq8="}}
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
$icon-close-colors: ($base-color);
2+
// prettier-ignore
3+
$icon-close: (
4+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
5+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
6+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
7+
(1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1),
8+
(0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0),
9+
(0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0),
10+
(0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0),
11+
(0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0),
12+
(0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0),
13+
(0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0),
14+
(0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0),
15+
(0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0),
16+
(1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1),
17+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
18+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
19+
(1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1),
20+
);

themes/hugo-book-master/assets/_custom.scss

+19
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@import "icons";
1212
@import "balloons";
1313
@import "bcrikko";
14+
@import "octocat.scss";
1415

1516
// Issue table SCSS
1617
.table {
@@ -274,4 +275,22 @@
274275
}
275276
}
276277
}
278+
}
279+
// Social icons
280+
.icon-container {
281+
display: flex;
282+
justify-content: space-between; // or 'space-around', depending on your preference
283+
align-items: center;
284+
width: 80px; // adjust this to suit your needs
285+
}
286+
.spacer {
287+
flex-grow: 1;
288+
}
289+
// Git repo info
290+
.git-repo-info {
291+
margin-top: 15px;
292+
}
293+
// Info text
294+
.image-text{
295+
margin-bottom: 15px;
277296
}

themes/hugo-book-master/assets/_icons.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// @import "instagram.scss";
1919

2020
// // others
21-
// @import "close.scss";
21+
@import "close.scss";
2222
@import "trophy.scss";
2323
@import "coin.scss";
2424

@@ -123,9 +123,9 @@
123123
// @include pixelize($default-size, $icon-youtube, $icon-youtube-colors);
124124
// }
125125

126-
// &.close::before {
127-
// @include pixelize($default-size, $icon-close, $icon-close-colors);
128-
// }
126+
&.close::before {
127+
@include pixelize($default-size, $icon-close, $icon-close-colors);
128+
}
129129

130130
// &.google::before {
131131
// @include pixelize($default-size, $icon-google, $icon-google-colors);

themes/hugo-book-master/assets/_main.scss

+32-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ ul.pagination {
8585
filter: var(--icon-filter);
8686
}
8787

88+
.social-icon {
89+
filter: var(--icon-filter);
90+
}
91+
8892
.book-brand {
8993
margin-top: 0;
9094
margin-bottom: $padding-16;
@@ -164,7 +168,9 @@ body[dir="rtl"] .book-menu {
164168
.book-page {
165169
min-width: $body-min-width;
166170
flex-grow: 1;
167-
padding: $padding-16;
171+
// padding: $padding-16;
172+
// padding: $padding-4;
173+
padding: 0.5rem;
168174
}
169175

170176
.book-post {
@@ -183,6 +189,20 @@ body[dir="rtl"] .book-menu {
183189
height: 1.5em;
184190
width: 1.5em;
185191
}
192+
img.discord-icon {
193+
height: 1.3em;
194+
// width: 1.5em;
195+
}
196+
img.element-icon {
197+
height: 1.3em;
198+
// width: 1.5em;
199+
}
200+
img.stackex-icon {
201+
height: 1.3em;
202+
position: relative;
203+
top: 2px;
204+
// width: 1.5em;
205+
}
186206
}
187207

188208
.book-search {
@@ -306,8 +326,19 @@ body[dir="rtl"] .book-menu {
306326

307327
.book-header {
308328
display: block;
329+
position: sticky;
330+
top: 0;
331+
background: #17181C;
332+
z-index: 999;
309333
}
310334

335+
// /* The sticky class is added to the header with JS when it reaches its scroll position */
336+
// .sticky {
337+
// position: fixed;
338+
// top: 0;
339+
// width: 100%;
340+
// }
341+
311342
#menu-control:focus ~ main label[for="menu-control"] {
312343
@include outline;
313344
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.nes-octocat {
2+
$octocat-colors: (#333, #ffdec4, #cb7066);
3+
// prettier-ignore
4+
$octocat-1: (
5+
(0,0,0,1,0,0,0,0,0,0,0,0,1,0),
6+
(0,0,0,1,1,0,0,0,0,0,0,1,1,0),
7+
(0,0,0,1,1,1,1,1,1,1,1,1,1,0),
8+
(0,0,1,1,1,1,1,1,1,1,1,1,1,1),
9+
(0,0,1,1,1,1,1,1,1,1,1,1,1,1),
10+
(0,0,1,1,1,2,2,2,2,2,2,1,1,1),
11+
(0,0,1,1,2,3,2,2,2,2,3,2,1,1),
12+
(0,0,1,1,2,3,2,2,2,2,3,2,1,1),
13+
(0,0,0,1,1,2,2,3,3,2,2,1,1,0),
14+
(1,1,0,0,0,0,1,1,1,1,0,0,0,0),
15+
(0,0,1,1,0,1,1,1,1,1,1,0,0,0),
16+
(0,0,0,1,1,1,1,1,1,1,1,0,0,0),
17+
(0,0,0,0,0,1,0,1,1,0,1,0,0,0),
18+
(0,0,0,0,0,1,0,1,1,0,1,0,0,0),
19+
(0,0,0,0,1,0,1,0,0,1,0,1,0,0)
20+
);
21+
// prettier-ignore
22+
$octocat-2: (
23+
(0,0,0,1,0,0,0,0,0,0,0,0,1,0),
24+
(0,0,0,1,1,0,0,0,0,0,0,1,1,0),
25+
(0,0,0,1,1,1,1,1,1,1,1,1,1,0),
26+
(0,0,1,1,1,1,1,1,1,1,1,1,1,1),
27+
(0,0,1,1,1,1,1,1,1,1,1,1,1,1),
28+
(0,0,1,1,1,2,2,2,2,2,2,1,1,1),
29+
(0,0,1,1,2,2,2,2,2,2,2,2,1,1),
30+
(0,1,1,1,2,3,2,2,2,2,3,2,1,1),
31+
(0,1,0,1,1,2,2,3,3,2,2,1,1,0),
32+
(0,0,1,0,0,0,1,1,1,1,0,0,0,0),
33+
(0,0,0,1,0,1,1,1,1,1,1,0,0,0),
34+
(0,0,0,1,1,1,1,1,1,1,1,0,0,0),
35+
(0,0,0,0,0,1,0,1,1,0,1,0,0,0),
36+
(0,0,0,0,0,1,0,1,1,0,1,0,0,0),
37+
(0,0,0,0,1,0,1,0,0,1,0,1,0,0)
38+
);
39+
$size: 6px;
40+
41+
position: relative;
42+
display: inline-block;
43+
width: $size * length(nth($octocat-1, 1));
44+
height: $size * length($octocat-1);
45+
46+
&::before {
47+
position: absolute;
48+
top: -$size;
49+
left: -$size;
50+
content: "";
51+
background: transparent;
52+
53+
@include pixelize($size, $octocat-1, $octocat-colors);
54+
@include fill-gaps();
55+
}
56+
57+
&.animate::before {
58+
animation: wave 0.5s infinite steps(1);
59+
}
60+
61+
@keyframes wave {
62+
50% {
63+
@include pixelize($size, $octocat-2, $octocat-colors);
64+
}
65+
}
66+
}

themes/hugo-book-master/layouts/_default/baseof.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<input type="checkbox" class="hidden toggle" id="menu-control" />
99
<input type="checkbox" class="hidden toggle" id="toc-control" />
1010
<main class="container flex">
11-
<!-- <aside class="book-menu">
11+
<aside class="book-menu">
1212
<div class="book-menu-content">
13-
{{ template "menu" . }} Left menu Content -->
14-
<!-- </div> -->
15-
<!-- </aside> -->
13+
{{ template "menu" . }} <!-- Left menu Content -->
14+
</div>
15+
</aside>
1616

1717
<div class="book-page">
1818
<header class="book-header">

0 commit comments

Comments
 (0)