| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 66a0793 commit 56e6146
26 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + { | ||
| 2 | + "title": "Linux", | ||
| 3 | + "userAgent": "X11", | ||
| 4 | + "sort": 2 | ||
| 5 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + { | ||
| 2 | + "title": "macOS", | ||
| 3 | + "userAgent": "Mac", | ||
| 4 | + "sort": 1 | ||
| 5 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + { | ||
| 2 | + "title": "Raspberry Pi", | ||
| 3 | + "sort": 3, | ||
| 4 | + "assets": "linux" | ||
| 5 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + { | ||
| 2 | + "title": "Windows", | ||
| 3 | + "userAgent": "Windows", | ||
| 4 | + "sort": 0 | ||
| 5 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -374,6 +374,19 @@ async function createDownloadAndReleases(actions, graphql) { | |||
| 374 | 374 | selectedPreReleases | |
| 375 | 375 | } | |
| 376 | 376 | } | |
| 377 | + platforms: allFile( | ||
| 378 | + filter: { | ||
| 379 | + sourceInstanceName: { eq: "download" } | ||
| 380 | + relativeDirectory: { eq: "platforms" } | ||
| 381 | + } | ||
| 382 | + ) { | ||
| 383 | + nodes { | ||
| 384 | + name | ||
| 385 | + childJson { | ||
| 386 | + title | ||
| 387 | + } | ||
| 388 | + } | ||
| 389 | + } | ||
| 377 | 390 | } | |
| 378 | 391 | ` | |
| 379 | 392 | ); | |
@@ -392,6 +405,17 @@ async function createDownloadAndReleases(actions, graphql) { | |||
| 392 | 405 | selectedPreReleases | |
| 393 | 406 | } | |
| 394 | 407 | }); | |
| 408 | + for (const platform of result.data.platforms.nodes) { | ||
| 409 | + createPage({ | ||
| 410 | + path: `/download/${platform.name}`, | ||
| 411 | + component: downloadTemplate, | ||
| 412 | + context: { | ||
| 413 | + selectedReleases, | ||
| 414 | + selectedPreReleases, | ||
| 415 | + os: platform.childJson.title | ||
| 416 | + } | ||
| 417 | + }); | ||
| 418 | + } | ||
| 395 | 419 | createPage({ | |
| 396 | 420 | path: '/releases', | |
| 397 | 421 | component: releasesTemplate, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,6 +157,10 @@ | |||
| 157 | 157 | "donateCryptoInfo": "To donate using crypto, DAF, or stocks, visit our <strong><a href='https://www.every.org/processing-foundation?method=crypto,stocks,daf&success_url=https%3A%2F%2Fprocessing.org%2Fdonate&exit_url=https%3A%2F%2Fprocessing.org%2Fdonate&partner_metadata=eyJzb3VyY2UiOiAicHJvY2Vzc2luZy5vcmcifQ==#donate'>Every.org donation page</a></strong> instead.", | |
| 158 | 158 | "donateButton": "Donate", | |
| 159 | 159 | "donateHelp": "Help us continue with your generosity!", | |
| 160 | + "windows": "Windows", | ||
| 161 | + "macos": "macOS", | ||
| 162 | + "linux": "Linux", | ||
| 163 | + "raspberry-pi": "Raspberry Pi", | ||
| 160 | 164 | "moreExamples": "More Examples", | |
| 161 | 165 | "referenceTitle": "Reference", | |
| 162 | 166 | "Topic Examples": "Topic Examples", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,15 @@ | |||
| 9 | 9 | outline: none; | |
| 10 | 10 | border: none; | |
| 11 | 11 | cursor: pointer; | |
| 12 | + display: inline-flex; | ||
| 13 | + justify-content: center; | ||
| 14 | + gap: var(--gutter-half); | ||
| 15 | + align-items: center; | ||
| 16 | + svg{ | ||
| 17 | + width: 1.5em; | ||
| 18 | + height: 1.5em; | ||
| 19 | + align-self: center; | ||
| 20 | + } | ||
| 12 | 21 | } | |
| 13 | 22 | ||
| 14 | 23 | .root:focus { | |
@@ -21,42 +30,65 @@ | |||
| 21 | 30 | } | |
| 22 | 31 | ||
| 23 | 32 | /* Variant: Animate1 & Animate2 */ | |
| 33 | + .dark { | ||
| 34 | + background-color: var(--white); | ||
| 35 | + color: var(--processing-blue-dark); | ||
| 36 | + } | ||
| 37 | + .outline{ | ||
| 38 | + background-color: transparent; | ||
| 39 | + color: var(--white); | ||
| 40 | + border: 2px solid var(--white); | ||
| 41 | + } | ||
| 24 | 42 | ||
| 25 | 43 | .animate1, | |
| 26 | - .animate2 { | ||
| 44 | + .animate2, | ||
| 45 | + .dark, | ||
| 46 | + .outline { | ||
| 27 | 47 | position: relative; | |
| 48 | + &:before{ | ||
| 49 | + content: ""; | ||
| 50 | + position: absolute; | ||
| 51 | + top: 0; | ||
| 52 | + left: 0; | ||
| 53 | + width: 100%; | ||
| 54 | + height: 100%; | ||
| 55 | + transition: all 0.3s; | ||
| 56 | + z-index: -1; | ||
| 57 | + background-color: var(--processing-blue-light); | ||
| 58 | + transform: translate(-3px, 3px); | ||
| 59 | + } | ||
| 60 | + &:hover::before { | ||
| 61 | + transform: translate(3px, -3px); | ||
| 62 | + } | ||
| 63 | + &.large::before { | ||
| 64 | + transform: translate(-5px, 5px); | ||
| 65 | + } | ||
| 66 | + &.large:hover::before { | ||
| 67 | + transform: translate(5px, -5px); | ||
| 68 | + } | ||
| 28 | 69 | } | |
| 29 | - | ||
| 30 | - .animate1::before, | ||
| 31 | - .animate2::before, | ||
| 32 | - .animate2::after { | ||
| 33 | - content: ""; | ||
| 34 | - position: absolute; | ||
| 35 | - top: 0; | ||
| 36 | - left: 0; | ||
| 37 | - width: 100%; | ||
| 38 | - height: 100%; | ||
| 39 | - transition: transform 0.3s; | ||
| 40 | - z-index: -1; | ||
| 41 | - background-color: var(--processing-blue-light); | ||
| 42 | - transform: translate(-3px, 3px); | ||
| 70 | + .dark::before{ | ||
| 71 | + background-color: var(--white); | ||
| 72 | + opacity: 0.25; | ||
| 43 | 73 | } | |
| 44 | - | ||
| 45 | - .animate1:hover::before, | ||
| 46 | - .animate2:hover::before { | ||
| 47 | - transform: translate(3px, -3px); | ||
| 48 | - color: white; | ||
| 74 | + .dark:hover{ | ||
| 75 | + color: var(--processing-blue-dark); | ||
| 49 | 76 | } | |
| 50 | - | ||
| 51 | - .animate1.large::before, | ||
| 52 | - .animate2.large::before { | ||
| 53 | - transform: translate(-5px, 5px); | ||
| 77 | + .dark:focus{ | ||
| 78 | + background-color: var(--white); | ||
| 79 | + color: var(--processing-blue-dark); | ||
| 54 | 80 | } | |
| 55 | - | ||
| 56 | - .animate1.large:hover::before, | ||
| 57 | - .animate2.large:hover::before { | ||
| 58 | - transform: translate(5px, -5px); | ||
| 81 | + .outline::before{ | ||
| 82 | + background: none; | ||
| 83 | + border: 2px solid var(--white); | ||
| 84 | + clip-path: inset(4px 4px 0px 0px); | ||
| 59 | 85 | } | |
| 86 | + .outline:hover::before{ | ||
| 87 | + background: none; | ||
| 88 | + border: 2px solid var(--white); | ||
| 89 | + clip-path: inset(0px 0px 4px 4px); | ||
| 90 | + } | ||
| 91 | + | ||
| 60 | 92 | ||
| 61 | 93 | /* Variant: Animate2 */ | |
| 62 | 94 | ||
@@ -70,14 +102,6 @@ | |||
| 70 | 102 | color: white; | |
| 71 | 103 | } | |
| 72 | 104 | ||
| 73 | - .animate2.large::after { | ||
| 74 | - transform: translate(5px, -5px); | ||
| 75 | - } | ||
| 76 | - | ||
| 77 | - .animate2.large:hover::after { | ||
| 78 | - transform: translate(-5px, 5px); | ||
| 79 | - } | ||
| 80 | - | ||
| 81 | 105 | /* Variant: Gray */ | |
| 82 | 106 | ||
| 83 | 107 | .gray { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,13 +8,4 @@ | |||
| 8 | 8 | ||
| 9 | 9 | .root h1 { | |
| 10 | 10 | margin: 0; | |
| 11 | - } | ||
| 12 | - | ||
| 13 | - .root a { | ||
| 14 | - color: inherit; | ||
| 15 | - text-decoration: none; | ||
| 16 | - | ||
| 17 | - &:focus { | ||
| 18 | - color: var(--processing-blue-dark); | ||
| 19 | - } | ||
| 20 | 11 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments