-
Notifications
You must be signed in to change notification settings - Fork 11
Reorganization with Learning Course page #70
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
Open
Adrianamm
wants to merge
16
commits into
frcsoftware:main
Choose a base branch
from
Adrianamm:Website-Feature-Guide-stage0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e24029a
Updated and moved website feature guide
Adrianamm 820e3df
lintmaxxing
Adrianamm a369e21
Updated and moved website feature guide
Adrianamm e82a407
lintmaxxing
Adrianamm 849b707
Merge branch 'Website-Feature-Guide-stage0' of https://github.com/Adr…
Adrianamm 9595d15
added learning course and reorg pages
Adrianamm 7fc60a1
Stage 1a and 1b placeholder added
Adrianamm 752069b
✨lint ✨
Adrianamm 4aaa03c
Apply suggestions
Adrianamm 150cfa8
added suggestions + removed two items from home page
Adrianamm a6f3c3d
removed image on stage 2
Adrianamm 7c9a01a
Merge branch 'main' into Website-Feature-Guide-stage0
Adrianamm 0215d5f
linit again
Adrianamm 0b834d4
Removed dead links
Adrianamm 525ad70
last ones removed
Adrianamm d7971d2
checks
Adrianamm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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.
This file contains hidden or 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,167 @@ | ||
| --- | ||
| import ContentFigure from './ContentFigure.astro'; | ||
|
|
||
| interface Props { | ||
| title: string; | ||
| href: string; | ||
| image?: string; | ||
| imageAlt?: string; | ||
| imageSide?: 'left' | 'right'; | ||
| underConstruction?: boolean; | ||
| } | ||
|
|
||
| const { | ||
| title, | ||
| href, | ||
| image, | ||
| imageAlt = title, | ||
| imageSide = 'right', | ||
| underConstruction = false, | ||
| } = Astro.props; | ||
|
|
||
| const hasImage = Boolean(image); | ||
| --- | ||
|
|
||
| <section | ||
| class:list={[ | ||
| 'course-section', | ||
| hasImage && `image-${imageSide}`, | ||
| !hasImage && 'no-image', | ||
| ]} | ||
| > | ||
| { | ||
| hasImage && imageSide === 'left' && ( | ||
| <div class="course-section-image"> | ||
| <ContentFigure src={image!} alt={imageAlt} /> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| <div class="course-section-content"> | ||
| <h3 class="course-section-title"> | ||
| <a href={href}>{title}</a> | ||
| { | ||
| underConstruction && ( | ||
| <span class="under-construction"> | ||
| {' '} | ||
| (Under Construction) | ||
| </span> | ||
| ) | ||
| } | ||
| </h3> | ||
| <ul class="course-section-list"> | ||
| <slot /> | ||
| </ul> | ||
| </div> | ||
|
|
||
| { | ||
| hasImage && imageSide === 'right' && ( | ||
| <div class="course-section-image"> | ||
| <ContentFigure src={image!} alt={imageAlt} /> | ||
| </div> | ||
| ) | ||
| } | ||
| </section> | ||
|
|
||
| <style> | ||
| .course-section { | ||
| display: grid; | ||
| grid-template-columns: minmax(0, 1fr) minmax(10rem, 17.5rem); | ||
| gap: 2rem; | ||
| align-items: center; | ||
| margin: 1.5rem 0; | ||
| padding-top: 1.5rem; | ||
| border-top: 1px solid var(--sl-color-gray-5); | ||
| } | ||
|
|
||
| .course-section.image-left { | ||
| grid-template-columns: minmax(10rem, 17.5rem) minmax(0, 1fr); | ||
| } | ||
|
|
||
| .course-section.no-image { | ||
| display: block; | ||
| } | ||
|
|
||
| .course-section-content { | ||
| max-width: 34rem; | ||
| } | ||
|
|
||
| .course-section.image-left .course-section-content { | ||
| justify-self: end; | ||
| text-align: right; | ||
| } | ||
|
|
||
| .course-section.no-image .course-section-content { | ||
| max-width: 42rem; | ||
| } | ||
|
|
||
| .course-section-image { | ||
| width: min(100%, 17.5rem); | ||
| } | ||
|
|
||
| .course-section.image-right .course-section-image { | ||
| justify-self: end; | ||
| } | ||
|
|
||
| .course-section-title { | ||
| margin-top: 0; | ||
| margin-bottom: 0.75rem; | ||
| color: var(--accent-color, #43a047); | ||
| } | ||
|
|
||
| .course-section-title a { | ||
| color: var(--accent-color, #43a047); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .course-section-title a:hover { | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| .under-construction { | ||
| color: var(--accent-color, #43a047); | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| .course-section-list { | ||
| margin: 0; | ||
| padding-left: 1.25rem; | ||
| } | ||
|
|
||
| .course-section.image-left .course-section-list { | ||
| direction: rtl; | ||
| list-style-position: outside; | ||
| padding-right: 1.25rem; | ||
| padding-left: 0; | ||
| } | ||
|
|
||
| .course-section-list :global(li) { | ||
| margin-bottom: 0.25rem; | ||
| } | ||
|
|
||
| @media (max-width: 768px) { | ||
| .course-section, | ||
| .course-section.image-left { | ||
| grid-template-columns: 1fr; | ||
| gap: 1rem; | ||
| } | ||
|
|
||
| .course-section.image-left .course-section-content { | ||
| justify-self: auto; | ||
| text-align: left; | ||
| } | ||
|
|
||
| .course-section.image-left .course-section-list { | ||
| direction: ltr; | ||
| padding-right: 0; | ||
| padding-left: 1.25rem; | ||
| } | ||
|
|
||
| .course-section-image, | ||
| .course-section.image-right .course-section-image { | ||
| justify-self: auto; | ||
| order: -1; | ||
| width: min(100%, 17.5rem); | ||
| } | ||
| } | ||
| </style> |
This file contains hidden or 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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.