-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from GovTechSG/layouts-page
Create layouts page
- Loading branch information
Showing
324 changed files
with
7,128 additions
and
2,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.8.0 |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SGDS Portal powered with Jekyll | ||
|
||
This is a static site build with jekyll | ||
|
||
## Image compression | ||
|
||
Image compression helps to reduce the bundle size of the images with lossless in quality. | ||
Imagemin library plugins are used to generate this. This process will take some time, so it is only recommended to run in production builds. | ||
|
||
When you are adding new images to the portal | ||
- Add new images to `assets/uncompressed-image` folder | ||
- Run `npm run build`. Webpack in production mode will run imagemin plugins to generate compressed images into `img` folder | ||
- `npm run dev` to start your development work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="sgds-example"> | ||
{{include.display}} | ||
</div> | ||
<div class="sgds accordion code-snippet no-toc-section" id="example-{{include.name}}"> | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="heading-{{include.name}}"> | ||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" | ||
data-bs-target="#collapse-{{include.name}}" aria-expanded="false" | ||
aria-controls="collapse-{{include.name}}"> | ||
See Code | ||
</button> | ||
</h2> | ||
<div id="collapse-{{include.name}}" class="accordion-collapse collapse" | ||
aria-labelledby="heading-{{include.name}}" data-bs-parent="#example-{{include.name}}"> | ||
<div class="accordion-body accordion-body-codesnippet"> | ||
{%- highlight html -%}{{include.code}}{%- endhighlight -%} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "sticky"; | ||
@import "sgds-example"; | ||
@import "highlight"; | ||
@import "highlight"; | ||
@import "code-font"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.sgds-code-font { | ||
font-family: 'Courier New', Courier, monospace; | ||
font-weight: 400; | ||
border: 1px solid var(--sgds-gray-300); | ||
background-color: var(--sgds-gray-100); | ||
border-radius: 8px; | ||
padding: 6px 8px 6px 8px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 1 addition & 12 deletions
13
portal/assets/img/component/accordion/anatomy-accordion-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 1 addition & 16 deletions
17
portal/assets/img/component/accordion/anatomy-accordion-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 1 addition & 36 deletions
37
portal/assets/img/component/accordion/spacing-accordion-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 1 addition & 32 deletions
33
portal/assets/img/component/accordion/spacing-accordion-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.