diff --git a/FencerJudgeFront/src/app/app.module.ts b/FencerJudgeFront/src/app/app.module.ts index f035f52..e3032f2 100644 --- a/FencerJudgeFront/src/app/app.module.ts +++ b/FencerJudgeFront/src/app/app.module.ts @@ -12,6 +12,7 @@ import { LogoutComponent } from './components/essentials/logout/logout.component import { MatchesComponent } from './components/match/matches/matches.component'; import { MatchesIdComponent } from './components/match/matches-id/matches-id.component'; import { MatchesAddComponent } from './components/match/matches-add/matches-add.component'; +import { SponsortComponent } from './templates/sponsort/sponsort.component'; @NgModule({ declarations: [ @@ -24,6 +25,7 @@ import { MatchesAddComponent } from './components/match/matches-add/matches-add. MatchesComponent, MatchesIdComponent, MatchesAddComponent, + SponsortComponent, ], imports: [BrowserModule, AppRoutingModule, FormsModule], providers: [], diff --git a/FencerJudgeFront/src/app/components/home/home.component.html b/FencerJudgeFront/src/app/components/home/home.component.html index a1ac75f..f761df7 100644 --- a/FencerJudgeFront/src/app/components/home/home.component.html +++ b/FencerJudgeFront/src/app/components/home/home.component.html @@ -1 +1 @@ -

HELLO !

+ diff --git a/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.css b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.css new file mode 100644 index 0000000..13c800a --- /dev/null +++ b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.css @@ -0,0 +1,56 @@ +@keyframes slides { + from { + transform: translateX(0); + } + to { + transform: translateX(-100%); + } +} + +.logos { + overflow: hidden; + padding: 30px 0px; + white-space: nowrap; + position: relative; +} + +.logos:before, +.logos:after { + position: absolute; + top: 0; + content: ""; + width: 250px; + height: 100%; + z-index: 2; +} + +.logos:before { + left: 0; + background: linear-gradient( + to left, + rgba(255, 255, 255, 0), + rgb(255, 255, 255) + ); +} + +.logos:after { + right: 0; + background: linear-gradient( + to right, + rgba(255, 255, 255, 0), + rgb(255, 255, 255) + ); +} + +.logo_items { + display: inline-block; + animation: 35s slides infinite linear; +} + +.logos:hover .logo_items { + animation-play-state: paused; +} + +.logo_items img { + height: 100px; +} diff --git a/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.html b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.html new file mode 100644 index 0000000..89ce529 --- /dev/null +++ b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.html @@ -0,0 +1,23 @@ +
+
+ + + + + + + +
+
diff --git a/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.spec.ts b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.spec.ts new file mode 100644 index 0000000..9ca3691 --- /dev/null +++ b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SponsortComponent } from './sponsort.component'; + +describe('SponsortComponent', () => { + let component: SponsortComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [SponsortComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(SponsortComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.ts b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.ts new file mode 100644 index 0000000..8058d61 --- /dev/null +++ b/FencerJudgeFront/src/app/templates/sponsort/sponsort.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-sponsort', + standalone: false, + templateUrl: './sponsort.component.html', + styleUrl: './sponsort.component.css' +}) +export class SponsortComponent { + +}