forked from fi-ksi/web-frontend-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(schedule): add new component schedule calendar
- Loading branch information
1 parent
9ac7278
commit 10fb8d1
Showing
11 changed files
with
123 additions
and
2 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
17 changes: 17 additions & 0 deletions
17
src/app/components/root/page-schedule/page-schedule.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,17 @@ | ||
<div class="schedule"> | ||
<h1 class="name"> | ||
<span> | ||
{{'schedule.title' | translate}} | ||
</span> | ||
</h1> | ||
<p> | ||
Od 23. září do 26. září 2024 se na Fakultě informatiky Masarykovy univerzity uskuteční <strong>série workshopů a aktivit, které mají za úkol pomoct novým studentům FI lépe se začlenit</strong>. Některé aktivity se budou konat vícekrát v různých místnostech a v různých časech, aby se jich mohlo zúčastnit co nejvíce studentů. | ||
</p> | ||
<p> | ||
Níže uvedený kalendář aktivit je k dispozici také jako <strong>veřejný Google kalendář </strong>. Můžete si jej tedy přidat do svých vlastních kalendářů a zařízení, abyste tak nic nezmeškali. | ||
<a href="https://calendar.google.com/calendar/u/2?cid=Y18xYzcwMzg0ODM3MmFlZTFiMjU4ZTQxNWRiOGExMDEwNjFjNzNlZTQ5NzM0NmVhMzVhZGZiODM2YzYzZWQ5MWE0QGdyb3VwLmNhbGVuZGFyLmdvb2dsZS5jb20"> Kliknutím na tento odkaz získáte přístup ke kalendáři.</a> | ||
</p> | ||
|
||
<iframe src="https://calendar.google.com/calendar/embed?src=c_1c703848372aee1b258e415db8a101061c73ee497346ea35adfb836c63ed91a4%40group.calendar.google.com&ctz=Europe%2FPrague&color=%238E24AA&dates=20240923/20240926&height=600&wkst=2&bgcolor=%23f2d45c&showCalendars=0&mode=WEEK&showTabs=0&showPrint=0&title=Harmonogram%20aktivit&showDate=0&showTitle=0&showNav=0&showTz=0&" style="border-width:0" width="60%" height="600" frameborder="0" scrolling="no"></iframe> | ||
|
||
</div> |
38 changes: 38 additions & 0 deletions
38
src/app/components/root/page-schedule/page-schedule.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,38 @@ | ||
@import "src/app/styles/vars"; | ||
@import "src/app/styles/mixins"; | ||
|
||
:host { | ||
.schedule { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
overflow: hidden; | ||
height: auto; | ||
padding-top: $ksi-padding; | ||
padding-bottom: $ksi-padding; | ||
|
||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-size: cover; | ||
|
||
justify-content: center; | ||
|
||
@media screen and (max-width: $ksi-max-mobile-width) { | ||
background-image: none; | ||
height: auto; | ||
padding-bottom: $ksi-margin; | ||
} | ||
} | ||
.schedule h1 { | ||
width: 60%; | ||
} | ||
.schedule p { | ||
width: 60%; | ||
} | ||
.schedule ifram { | ||
width: 60%; | ||
} | ||
} | ||
|
25 changes: 25 additions & 0 deletions
25
src/app/components/root/page-schedule/page-schedule.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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { PageWelcomeComponent } from './page-schedule.component'; | ||
|
||
describe('PageScheduleComponent', () => { | ||
let component: PageScheduleComponent; | ||
let fixture: ComponentFixture<PageScheduleComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ PageScheduleComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(PageScheduleComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
28 changes: 28 additions & 0 deletions
28
src/app/components/root/page-schedule/page-schedule.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,28 @@ | ||
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef } from '@angular/core'; | ||
import { BackendService, KsiTitleService, RoutesService, WindowService, YearsService } from '../../../services'; | ||
|
||
@Component({ | ||
selector: 'ksi-page-schedule', | ||
templateUrl: './page-schedule.component.html', | ||
styleUrls: ['./page-schedule.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
}) | ||
export class PageScheduleComponent implements OnInit { | ||
|
||
aboutInfoSlide = 0; | ||
aboutInfoShown = false; | ||
|
||
constructor( | ||
private title: KsiTitleService, | ||
public years: YearsService, | ||
private backend: BackendService, | ||
private cd: ChangeDetectorRef, | ||
private elRef: ElementRef, | ||
public routes: RoutesService | ||
) { | ||
} | ||
|
||
ngOnInit(): void { | ||
this.title.subtitle = null; | ||
} | ||
} |
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