Skip to content

Commit

Permalink
WIP: Create switch button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils1729 committed May 3, 2023
1 parent 9f3c159 commit cb9ce45
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/app/pages/landing-page/landing-page.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { CommonModule } from '@angular/common';

import { FormsModule } from '@angular/forms';
import { SharedModule } from 'src/app/shared/shared.module';
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
import { LandingPageComponent } from './landing-page/landing-page.component';

@NgModule({
declarations: [LandingPageComponent],
imports: [CommonModule, FormsModule, SharedModule],
imports: [CommonModule, FormsModule, SharedModule, NgbDropdownModule],
exports: [LandingPageComponent],
})
export class LandingPageModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,45 @@ <h1 class="display-3 m-3 text-center">Digitale FüSim MANV</h1>
[disabled]="importingExercise"
/>
</label>
<div
ngbDropdown
placement="bottom-end top-end"
class="btn-group ms-5"
>
<button type="button" class="btn btn-outline-primary btn-lg">
Action
</button>
<button
ngbDropdownToggle
type="button"
class="btn btn-outline-primary btn-lg dropdown-toggle-split"
data-bs-toggle="dropdown"
>
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul ngbDropdownMenu class="dropdown-menu">
<li>
<a ngbDropdownItem class="dropdown-item" href="#"
>Action</a
>
</li>
<li>
<a ngbDropdownItem class="dropdown-item" href="#"
>Another action</a
>
</li>
<li>
<a ngbDropdownItem class="dropdown-item" href="#"
>Something else here</a
>
</li>
<li>
<a ngbDropdownItem class="dropdown-item" href="#"
>Separated link</a
>
</li>
</ul>
</div>
</div>

<p *ngIf="exerciseHasBeenCreated" class="mb-0">
Expand Down

0 comments on commit cb9ce45

Please sign in to comment.