-
Notifications
You must be signed in to change notification settings - Fork 11
Projects site final step #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projects site final step #1402
Changes from all commits
6e82604
1093f0a
94a292c
20b7a6b
b769a60
baa845e
19efe9c
ce62eca
94591ca
9aa5846
cbdf2d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| @use "@raspberrypifoundation/design-system-core/scss/mixins/typography" as | ||
| typography; | ||
| @use "./rpf_design_system/spacing" as *; | ||
| .project-instructions { | ||
| .whats-next { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
| .c-badge-achievement-card { | ||
| p { | ||
| margin: 0; | ||
| } | ||
| align-items: center; | ||
| background-color: var(--cc-light-cyan); | ||
| background-image: url("../cc-wallpaper.svg"); | ||
| background-position: center; | ||
| background-size: cover; | ||
| border-radius: $space-1-5; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: $space-1-5; | ||
| overflow: hidden; | ||
| padding-block: $space-2-5; | ||
| padding-inline: $space-2; | ||
| position: relative; | ||
|
|
||
| &::before { | ||
| background: linear-gradient( | ||
| 90deg, | ||
| transparent 0%, | ||
| color-mix(in srgb, var(--cc-light-cyan) 90%, transparent) 20%, | ||
| color-mix(in srgb, var(--cc-light-cyan) 100%, transparent) 50%, | ||
| color-mix(in srgb, var(--cc-light-cyan) 90%, transparent) 80%, | ||
| transparent 100% | ||
| ); | ||
| border-radius: $space-1-5; | ||
| content: ""; | ||
| inset: 0; | ||
| pointer-events: none; | ||
| position: absolute; | ||
| z-index: 1; | ||
| } | ||
|
|
||
| > * { | ||
| position: relative; | ||
| z-index: 2; | ||
| } | ||
|
|
||
| img { | ||
| inline-size: 100px; | ||
| } | ||
|
|
||
| &__text-content { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 10px; | ||
| text-align: center; | ||
| } | ||
|
|
||
| &__title { | ||
| @include typography.style-2(bold); | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,12 +13,12 @@ if (!publicUrl.endsWith("/")) { | |||||
| const scratchStaticDir = path.resolve( | ||||||
| __dirname, | ||||||
| "node_modules/@scratch/scratch-gui/dist/static", | ||||||
| ) | ||||||
| ); | ||||||
|
|
||||||
| const scratchChunkDir = path.resolve( | ||||||
| __dirname, | ||||||
| "node_modules/@scratch/scratch-gui/dist/chunks", | ||||||
| ) | ||||||
| ); | ||||||
|
|
||||||
| module.exports = { | ||||||
| entry: { | ||||||
|
|
@@ -75,9 +75,20 @@ module.exports = { | |||||
| }, | ||||||
| ], | ||||||
| }, | ||||||
| { | ||||||
| test: /cc-wallpaper\.svg$/, | ||||||
| use: [ | ||||||
| { | ||||||
| loader: "url-loader", | ||||||
| options: { | ||||||
| limit: 100000, | ||||||
|
||||||
| limit: 100000, | |
| limit: 10000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about these suggestion @rammodhvadia ?
Inlining larger assets to the bundle adds to the weight make and give browsers more work to parse. Yes the limit is arbitrary, but increasing it makes it more likely we will add larger assets in the future too.
It would be valuable to be able to refer to SVGs using a URL rather than embedding them.
Uh oh!
There was an error while loading. Please reload this page.