diff --git a/src/app/core/layout/auth-layout/auth-layout.component.html b/src/app/core/layout/auth-layout/auth-layout.component.html new file mode 100644 index 0000000..f6d82f7 --- /dev/null +++ b/src/app/core/layout/auth-layout/auth-layout.component.html @@ -0,0 +1,13 @@ +
+
+
+
+
+
+ +
+
+
+
+
+
diff --git a/src/app/core/layout/auth-layout/auth-layout.component.scss b/src/app/core/layout/auth-layout/auth-layout.component.scss new file mode 100644 index 0000000..9bd7ad8 --- /dev/null +++ b/src/app/core/layout/auth-layout/auth-layout.component.scss @@ -0,0 +1,42 @@ +:host { + display: block; +} + +.auth-layout { + padding: 1.5rem 0 2rem; +} + +.auth-layout__container { + padding-inline: 1rem; +} + +.auth-layout__row { + padding-block: 1rem; +} + +.auth-layout__card { + border-radius: 1.5rem; + overflow: hidden; +} + +.auth-layout__body { + padding: 2rem 1.5rem; +} + +@media (min-width: 768px) { + .auth-layout { + padding: 3rem 0; + } + + .auth-layout__container { + padding-inline: 1.5rem; + } + + .auth-layout__row { + padding-block: 1.5rem; + } + + .auth-layout__body { + padding: 3rem; + } +} diff --git a/src/app/core/layout/auth-layout/auth-layout.component.ts b/src/app/core/layout/auth-layout/auth-layout.component.ts new file mode 100644 index 0000000..b78a6fa --- /dev/null +++ b/src/app/core/layout/auth-layout/auth-layout.component.ts @@ -0,0 +1,11 @@ +import { ChangeDetectionStrategy, Component } from '@angular/core'; +import { RouterOutlet } from '@angular/router'; + +@Component({ + selector: 'app-auth-layout', + imports: [RouterOutlet], + templateUrl: './auth-layout.component.html', + styleUrl: './auth-layout.component.scss', + changeDetection: ChangeDetectionStrategy.OnPush +}) +export class AuthLayoutComponent {} diff --git a/src/app/features/store/pages/login-page/login-page.component.html b/src/app/features/store/pages/login-page/login-page.component.html index a8f530b..9abafc3 100644 --- a/src/app/features/store/pages/login-page/login-page.component.html +++ b/src/app/features/store/pages/login-page/login-page.component.html @@ -1,91 +1,66 @@ -
-
-
-
-
-
-
-

- Iniciar sesión -

-
+ -
-
- - + +
+ + -
- - -
- -
-
-
- -
- Ingresar - -
- - - - - - - Continuar con Google - -
-
+
+ + +
+
-
+ +
+ Ingresar + +
+ + + + + + + Continuar con Google + diff --git a/src/app/features/store/pages/login-page/login-page.component.scss b/src/app/features/store/pages/login-page/login-page.component.scss index e69de29..525f35d 100644 --- a/src/app/features/store/pages/login-page/login-page.component.scss +++ b/src/app/features/store/pages/login-page/login-page.component.scss @@ -0,0 +1,47 @@ +:host { + display: block; +} + +.login-page__header { + margin-bottom: 1.5rem; +} + +.login-page__title { + margin: 0; + color: #666666; + font-size: 17px; + font-weight: 700; + text-transform: uppercase; +} + +.login-page__form { + width: 100%; +} + +.login-page__forgot-password { + color: #a0a0a0; + font-size: 12px; + font-weight: 325; +} + +.login-page__create-account { + min-height: 40px; + font-weight: 700; +} + +.login-page__divider { + margin-block: 1.5rem; +} + +.login-page__divider-line { + max-width: 18rem; + height: 1px; + background-color: #d9d9d9; +} + +.login-page__divider-dot { + width: 16px; + height: 16px; + border-color: #d9d9d9 !important; + background-color: #ffffff; +} diff --git a/src/app/features/store/store.routes.ts b/src/app/features/store/store.routes.ts index e99f280..f3ee026 100644 --- a/src/app/features/store/store.routes.ts +++ b/src/app/features/store/store.routes.ts @@ -1,5 +1,6 @@ import { Routes } from '@angular/router'; +import { AuthLayoutComponent } from '../../core/layout/auth-layout/auth-layout.component'; import { StoreLayoutComponent } from '../../core/layout/store-layout/store-layout.component'; import { LoginPageComponent } from './pages/login-page/login-page.component'; import { StoreHomePageComponent } from './pages/store-home-page/store-home-page.component'; @@ -15,7 +16,13 @@ export const routes: Routes = [ }, { path: 'login', - component: LoginPageComponent + component: AuthLayoutComponent, + children: [ + { + path: '', + component: LoginPageComponent + } + ] }, { path: 'producto/:id',