-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(page): change view mode to category in browse page
- Loading branch information
bravemaster619
committed
May 2, 2020
1 parent
451cfd7
commit d272245
Showing
13 changed files
with
349 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
ion-searchbar { | ||
padding: 1rem; | ||
} | ||
.sc-ion-searchbar-ios-h { | ||
-webkit-padding-start: 1rem; | ||
padding-inline-start: 1rem; | ||
-webkit-padding-end: 1rem; | ||
padding-inline-end: 1rem; | ||
} | ||
.card-product { | ||
border: 1px solid #ccc; | ||
ion-card-content { | ||
padding: 0.5rem; | ||
.wrapper-product-img { | ||
margin-top: -10px; | ||
margin-left: -10px; | ||
margin-right: -10px; | ||
margin-bottom: 5px; | ||
} | ||
ion-label { | ||
h3 { | ||
font-size: 0.75rem; | ||
font-weight: 600; | ||
} | ||
p { | ||
font-size: 0.75rem; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/app/pages/browse/categories/categories-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { Routes, RouterModule } from "@angular/router"; | ||
|
||
import { CategoriesPage } from "./categories.page"; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: "", | ||
component: CategoriesPage | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class CategoriesPageRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { CommonModule } from "@angular/common"; | ||
import { FormsModule } from "@angular/forms"; | ||
|
||
import { IonicModule } from "@ionic/angular"; | ||
|
||
import { CategoriesPageRoutingModule } from "./categories-routing.module"; | ||
|
||
import { CategoriesPage } from "./categories.page"; | ||
import { TranslateModule } from "@ngx-translate/core"; | ||
import { CategoryListModule } from "src/app/pages/browse/category-list/category-list.module"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
IonicModule, | ||
CategoriesPageRoutingModule, | ||
TranslateModule.forChild(), | ||
CategoryListModule | ||
], | ||
declarations: [CategoriesPage] | ||
}) | ||
export class CategoriesPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-back-button defaultHref="/tabs/browse" text=""></ion-back-button> | ||
</ion-buttons> | ||
<ion-title translate="Category"></ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<category-list></category-list> | ||
</ion-content> |
Empty file.
Oops, something went wrong.