-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(ktl-3977): added new case studies #5369
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
70dba1b
chore(ktl-3977): update icons
berezinant 53e56d0
feat(ktl-3977): introduce frameworks field to case studies
berezinant 1938dd4
feat(ktl-3977): render frameworks icons with platform icons
berezinant d39b0c3
chore(ktl-3977): added new cases logos
berezinant ea6d29a
feat(ktl-3977): added new cases
berezinant 96d49cc
feat(ktl-3977): use resc links in md2html
berezinant c4b2462
refactor(ktl-3977): separate platform and framework icons
berezinant 97620c9
content(ktl-3977): hide frameworks data for case studies for now
berezinant 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
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
This file was deleted.
Oops, something went wrong.
12 changes: 3 additions & 9 deletions
12
...es/platform-icon/platform-icon.module.css → ...echnology-icon/technology-icon.module.css
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 |
|---|---|---|
| @@ -1,21 +1,15 @@ | ||
| .platform { | ||
| .icon { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 28px; | ||
| height: 28px; | ||
| } | ||
|
|
||
| /* visual compensation */ | ||
| .platform_android { | ||
| width: 30px; | ||
| height: 30px; | ||
| } | ||
|
|
||
| .platform svg { | ||
| .icon svg { | ||
| width: 100%; | ||
| height: 100%; | ||
| object-fit: contain; | ||
| aspect-ratio: unset; | ||
| container: unset; | ||
| } | ||
| } | ||
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,69 @@ | ||
| import cn from 'classnames'; | ||
| import { | ||
| AndroidIcon, | ||
| AppleIcon, | ||
| ServerIcon, | ||
| ComputerIcon, | ||
| GlobusIcon, | ||
| SpringIcon, | ||
| KtorIcon, | ||
| ExposedIcon, | ||
| } from '@rescui/icons'; | ||
| import { CasePlatform, CaseFramework } from '../case-studies'; | ||
| import styles from './technology-icon.module.css'; | ||
|
|
||
| type PlatformIconProps = { | ||
| value: CasePlatform; | ||
| }; | ||
|
|
||
| type FrameworkIconProps = { | ||
| value: CaseFramework; | ||
| }; | ||
|
|
||
| export const PlatformIcon = ({ value }: PlatformIconProps) => { | ||
| return ( | ||
| <span className={cn(styles.icon)} title={value}> | ||
| {getPlatformIcon(value)} | ||
| </span> | ||
| ); | ||
| }; | ||
|
|
||
| export const FrameworkIcon = ({ value }: FrameworkIconProps) => { | ||
| return ( | ||
| <span className={cn(styles.icon)} title={value}> | ||
| {getFrameworkIcon(value)} | ||
| </span> | ||
| ); | ||
| }; | ||
|
|
||
| const getPlatformIcon = (p: CasePlatform) => { | ||
| switch (p) { | ||
| case 'android': | ||
| return <AndroidIcon size="l" />; | ||
| case 'ios': | ||
| return <AppleIcon size="l" />; | ||
| case 'desktop': | ||
| return <ComputerIcon size="l" />; | ||
| case 'frontend': | ||
| return <GlobusIcon size="l" />; | ||
| case 'backend': | ||
| return <ServerIcon size="l" />; | ||
| case 'compose-multiplatform': | ||
| return <img src="/images/case-studies/compose-multiplatform.svg" alt="" />; | ||
| default: | ||
| return null; | ||
| } | ||
| }; | ||
|
|
||
| const getFrameworkIcon = (f: CaseFramework) => { | ||
| switch (f) { | ||
| case 'spring': | ||
| return <SpringIcon size="l" />; | ||
| case 'ktor': | ||
| return <KtorIcon size="l" />; | ||
| case 'exposed': | ||
| return <ExposedIcon size="l" />; | ||
| default: | ||
| return null; | ||
| } | ||
| }; |
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
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
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.
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.
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.
not needed anymore as we updated the icon in the set