diff --git a/package-lock.json b/package-lock.json index d20f2d7..5f25b9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -358,6 +358,31 @@ } } }, + "@angular/animations": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-11.2.1.tgz", + "integrity": "sha512-U2gtMaiVfTNMn0FPpSDTgOgtYc45QUnQcc2Po40rCmgH7BGyJAOgmaXY9uv319Jjl+vNrX+bbXaZix73Zpjfyg==", + "requires": { + "tslib": "^2.0.0" + } + }, + "@angular/cdk": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-11.2.1.tgz", + "integrity": "sha512-d+ERvvWqGykBm5ooWG8TmMjL6q6aOpUd13ha1sx960EfKJqNyideYUfPMp6xprTyxmUIUZ/G9AQ/pxnzrLGnsA==", + "requires": { + "parse5": "^5.0.0", + "tslib": "^2.0.0" + }, + "dependencies": { + "parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true + } + } + }, "@angular/cli": { "version": "10.0.8", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-10.0.8.tgz", @@ -832,6 +857,14 @@ "integrity": "sha512-QQLYUjD0T6u2hLNYXUEUbupAGsz5egmhCAckaQojvXCe3SLL/hQsrK4odrNuspy7TvMB0H5ZNEHGlF6m/WLZ3g==", "dev": true }, + "@angular/material": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-11.2.1.tgz", + "integrity": "sha512-unHC8W+GcZSNRNSZ4l3ABdbezf6PIUtShx5MMG6HXgieqlkEgkU0W0BAeGvO/61vl6yEebizMYD/+5yqM9lUlw==", + "requires": { + "tslib": "^2.0.0" + } + }, "@angular/platform-browser": { "version": "10.0.14", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-10.0.14.tgz", diff --git a/package.json b/package.json index d369621..5512a85 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,12 @@ }, "private": true, "dependencies": { + "@angular/animations": "^11.2.1", + "@angular/cdk": "^11.2.1", "@angular/common": "~10.0.0", "@angular/core": "~10.0.0", "@angular/forms": "~10.0.0", + "@angular/material": "^11.2.1", "@angular/platform-browser": "~10.0.0", "@angular/platform-browser-dynamic": "~10.0.0", "@angular/router": "~10.0.0", @@ -75,4 +78,4 @@ "android" ] } -} \ No newline at end of file +} diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 287c89e..575f1a1 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -11,12 +11,14 @@ import { AppComponent } from './app.component'; import { PerfilDiscotecaPage } from './perfil-discoteca/perfil-discoteca.page'; import { PromptEventoPage} from './prompt-evento/prompt-evento.page' import { GaleriamodalPageModule } from './galeriamodal/galeriamodal.module'; +import { MatMenuModule } from '@angular/material/menu'; import { LoginPage } from './login/login.page'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations' @NgModule({ declarations: [AppComponent, PerfilDiscotecaPage, PromptEventoPage, LoginPage], entryComponents: [], - imports: [BrowserModule, HttpClientModule, IonicModule.forRoot(), AppRoutingModule, ReactiveFormsModule, GaleriamodalPageModule], + imports: [BrowserModule, HttpClientModule, IonicModule.forRoot(), AppRoutingModule, ReactiveFormsModule, GaleriamodalPageModule, MatMenuModule, BrowserAnimationsModule], providers: [ StatusBar, SplashScreen, diff --git a/src/app/perfil-discoteca/perfil-discoteca.page.html b/src/app/perfil-discoteca/perfil-discoteca.page.html index e3cd2bf..552baa3 100644 --- a/src/app/perfil-discoteca/perfil-discoteca.page.html +++ b/src/app/perfil-discoteca/perfil-discoteca.page.html @@ -8,40 +8,13 @@ - -
-
{{nombre}}
- -
- - - - -
- -
- - - -
- - - - - Cancelar -
-
- - - -
- + @@ -52,10 +25,16 @@
{{localizacion}}
- + +
{{descripcion}}
+
+ + +
Galería de Fotos + @@ -69,18 +48,8 @@
-
- - - - - - Añadir evento - - -
@@ -102,13 +71,40 @@
+ + + + + + + + + + + + + + + + + + - - - - - -
\ No newline at end of file diff --git a/src/app/perfil-discoteca/perfil-discoteca.page.ts b/src/app/perfil-discoteca/perfil-discoteca.page.ts index deeaeb9..d845565 100644 --- a/src/app/perfil-discoteca/perfil-discoteca.page.ts +++ b/src/app/perfil-discoteca/perfil-discoteca.page.ts @@ -5,6 +5,7 @@ import { AlertController } from '@ionic/angular'; import { ViewChild } from '@angular/core'; import { Evento } from '../evento'; import { Router } from '@angular/router'; +import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu'; import { THIS_EXPR } from '@angular/compiler/src/output/output_ast'; import { GaleriamodalPage } from '../galeriamodal/galeriamodal.page'; import { stringify } from '@angular/compiler/src/util'; @@ -17,6 +18,7 @@ import { stringify } from '@angular/compiler/src/util'; export class PerfilDiscotecaPage implements OnInit { @ViewChild('IonSlides') slides: IonSlides; + @ViewChild('MatMenuTrigger') trigger: MatMenuTrigger; nombre: string; telefono: number; localizacion: string;