-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): add platform logos to landing page (#2148)
* add new section under Organizations * update text; update layout * typo * remove platforms section from challenge-host-list * add new platform component * update padding * update platform count * add svg of platform logos * add responsiveness * add bold emphasis on section titles * add CodaLab as platform * text update * remove OpenML and PapersWithCode as challenge platforms * remove subtexts * move list of platform logos to s3 * fix test * add sub-texts back in * update spacing * update description * fix layout * use png image instead of svg * update description pt 2
- Loading branch information
Showing
9 changed files
with
81 additions
and
3 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
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
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
12 changes: 12 additions & 0 deletions
12
libs/openchallenges/home/src/lib/platforms/platforms.component.html
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,12 @@ | ||
<section id="platforms"> | ||
<div class="container text-center"> | ||
<h3 class="section-title">Platforms</h3> | ||
<p> | ||
OC provides a catalog of various platforms used by the biomedical and research community. | ||
These platforms enable participants to benchmark their computational tools and algorithms. | ||
</p> | ||
<div class="row"> | ||
<img [src]="(platforms$ | async)?.url" alt="Platforms on OpenChallenges" /> | ||
</div> | ||
</div> | ||
</section> |
12 changes: 12 additions & 0 deletions
12
libs/openchallenges/home/src/lib/platforms/platforms.component.scss
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,12 @@ | ||
@use 'libs/openchallenges/styles/src/lib/_constants' as constants; | ||
|
||
#platforms { | ||
max-width: 1210px; | ||
margin: 0 auto; | ||
padding: 68px 0 88px; | ||
|
||
img { | ||
width: 100%; | ||
padding: 15px 8px 0; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
libs/openchallenges/home/src/lib/platforms/platforms.component.spec.ts
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,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { PlatformsComponent } from './platforms.component'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
|
||
describe('PlatformsComponent', () => { | ||
let component: PlatformsComponent; | ||
let fixture: ComponentFixture<PlatformsComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [HttpClientModule, PlatformsComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(PlatformsComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
26 changes: 26 additions & 0 deletions
26
libs/openchallenges/home/src/lib/platforms/platforms.component.ts
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,26 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { | ||
Image, | ||
ImageService, | ||
} from '@sagebionetworks/openchallenges/api-client-angular'; | ||
import { Observable } from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'openchallenges-platforms', | ||
standalone: true, | ||
imports: [CommonModule], | ||
templateUrl: './platforms.component.html', | ||
styleUrls: ['./platforms.component.scss'], | ||
}) | ||
export class PlatformsComponent implements OnInit { | ||
public platforms$: Observable<Image> | undefined; | ||
|
||
constructor(private imageService: ImageService) {} | ||
|
||
ngOnInit() { | ||
this.platforms$ = this.imageService.getImage({ | ||
objectKey: 'logo/platforms.png', | ||
}); | ||
} | ||
} |