Skip to content

Commit

Permalink
Merge pull request #53 from teamq-ec/DM2-2833-estado-de-su-solicitud-…
Browse files Browse the repository at this point in the history
…de-arreglo-de-electrodomesticos

Dm2 2833 estado de su solicitud de arreglo de electrodomesticos
  • Loading branch information
fe222004 authored Aug 7, 2024
2 parents 6474f0b + 6afacef commit 72a0d23
Show file tree
Hide file tree
Showing 38 changed files with 313 additions and 1,390 deletions.
8 changes: 2 additions & 6 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';

import { AppComponent } from './app.component';
import { MenuModule } from './pages/components/menu/menu.module';
import { FooterModule } from './pages/components/footer/footer.module';


import { HomeModule } from './pages/home/home.module';
import { DashboardModule } from './pages/dashboard/dashboard.module';
import { ApplianceRegistrationModule } from './pages/appliance-registration/appliance-registration.module';
import { AlertConfirmationModule } from './pages/components/alert-confirmation/alert-confirmation.module';
import { ProductModule } from './pages/product/product.module';
import { ModalProductModule } from './pages/components/modal-product/modal-product.module';
import { PaymentModule } from './pages/payment/payment.module';
import { ProductModule } from './pages/product/product.module';

export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/service/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export class AuthService {
.post<any>(this.apiUrlAuthLogin, { email, password })
.pipe(
map((response) => {

console.log('Login response:', response);
if (response && response.token) {
localStorage.setItem('token', response.token);
localStorage.setItem('userId', response.user.id.toString());
Expand Down
4 changes: 2 additions & 2 deletions src/app/constants/routes.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const RoutesConstants = {
home: '',
dashboard: '/pages/:userId/home',
form: '/pages/:userId/form',
product: '/pages/:userId/product',
payment: '/pages/:userId/payment/:id',
//product: '/pages/:userId/product',
product: '/pages/:userId/product/:id',
};

This file was deleted.

65 changes: 25 additions & 40 deletions src/app/pages/components/carrusel/carrusel.component.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,27 @@
<!-- Carrusel -->
<div class="relative z-10"> <!-- Carrusel en una capa debajo del modal -->
<swiper-container
pagination="false"
effect="coverflow"
grab-cursor="true"
centered-slides="true"
slides-per-view="auto"
coverflow-effect-rotate="50"
coverflow-effect-stretch="0"
coverflow-effect-depth="200"
coverflow-effect-modifier="1"
coverflow-effect-slide-shadows="true"
autoplay="true"
lazy="true"
speed="900"
loop="true"
class="relative"> <!-- Asegúrate de que el carrusel esté debajo del modal -->
<swiper-slide *ngFor="let image of sliderImages">
<img [src]="image" alt="">
</swiper-slide>
</swiper-container>

<!-- Contenedor de texto sobre el carrusel -->
<div class="absolute inset-0 flex items-center justify-center text-center z-20 p-4">
<div class="relative bg-gray-50 bg-opacity-70 p-6 rounded-lg shadow-lg max-w-3xl mx-auto">
<!-- Fondo blanco con opacidad (70%) para el contenedor de texto -->
<h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl mb-4">
{{ 'home.title' | translate }}
</h1>
<p class="text-lg leading-8 text-gray-800 mb-6">
{{ 'home.description' | translate }}
</p>
<div class="flex items-center justify-center gap-x-6" *ngIf="isLoggedIn">
<a routerLink="/auth/login"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
{{ 'home.startButton' | translate }}
</a>
</div>
</div>
<div class="relative z-10">
<swiper-container pagination="false" effect="coverflow" grab-cursor="true" centered-slides="true"
slides-per-view="auto" coverflow-effect-rotate="50" coverflow-effect-stretch="0" coverflow-effect-depth="200"
coverflow-effect-modifier="1" coverflow-effect-slide-shadows="true" autoplay="true" lazy="true" speed="900"
loop="true" class="relative">
<swiper-slide *ngFor="let image of sliderImages">
<img [src]="image" alt="">
</swiper-slide>
</swiper-container>

<div class="absolute inset-0 flex items-center justify-center text-center z-20 p-4">
<div class="relative bg-gray-50 bg-opacity-70 p-6 rounded-lg shadow-lg max-w-3xl mx-auto">
<h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl mb-4">
{{ 'home.title' | translate }}
</h1>
<p class="text-lg leading-8 text-gray-800 mb-6">
{{ 'home.description' | translate }}
</p>
<div class="flex items-center justify-center gap-x-6" *ngIf="isLoggedIn">
<a routerLink="/auth/login"
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
{{ 'home.startButton' | translate }}
</a>
</div>
</div>
</div>
</div>

This file was deleted.

83 changes: 0 additions & 83 deletions src/app/pages/components/form-product/form-product.component.css

This file was deleted.

Loading

0 comments on commit 72a0d23

Please sign in to comment.