🎨 styles: recipe detail

:%s
This commit is contained in:
lytrankieio123 2021-09-14 14:14:00 +07:00
parent b3b5a310d8
commit 9802a6537a
8 changed files with 24 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { Layout, RecipeDetail, RelevantBlogPosts } from 'src/components/common'
import { ProductInfoDetail, RecommendedRecipes, ReleventProducts, ViewedProducts } from 'src/components/modules/product-detail'
import { Layout, RecipeDetail, RecommendedRecipes, RelevantBlogPosts } from 'src/components/common'
import { ProductInfoDetail, ReleventProducts, ViewedProducts } from 'src/components/modules/product-detail'
import { BLOGS_DATA_TEST, INGREDIENT_DATA_TEST, RECIPE_DATA_TEST } from 'src/utils/demo-data'
export default function Slug() {

12
pages/recipe/[slug].tsx Normal file
View File

@ -0,0 +1,12 @@
import { Layout, RecipeDetail, RecommendedRecipes } from 'src/components/common'
import { INGREDIENT_DATA_TEST, RECIPE_DATA_TEST } from 'src/utils/demo-data'
export default function Slug() {
return <div className="page-recipe-detail">
<RecipeDetail ingredients={INGREDIENT_DATA_TEST} />
<RecommendedRecipes data={RECIPE_DATA_TEST} />
</div>
}
Slug.Layout = Layout

View File

@ -1,4 +1,4 @@
@import "../../../../styles/utilities";
@import "../../../styles/utilities";
.recommendedRecipes {
margin: 6rem auto;

View File

@ -46,3 +46,4 @@ export { default as TabCommon} from './TabCommon/TabCommon'
export { default as StaticImage} from './StaticImage/StaticImage'
export { default as EmptyCommon} from './EmptyCommon/EmptyCommon'
export { default as CustomShapeSvg} from './CustomShapeSvg/CustomShapeSvg'
export { default as RecommendedRecipes} from './RecommendedRecipes/RecommendedRecipes'

View File

@ -1,4 +1,3 @@
export { default as ProductInfoDetail } from './ProductInfoDetail/ProductInfoDetail'
export { default as ViewedProducts } from './ViewedProducts/ViewedProducts'
export { default as ReleventProducts } from './ReleventProducts/ReleventProducts'
export { default as RecommendedRecipes } from './RecommendedRecipes/RecommendedRecipes'

6
src/styles/_pages.scss Normal file
View File

@ -0,0 +1,6 @@
.page-recipe-detail {
margin-bottom: 5.4rem;
@screen lg {
margin-bottom: 12.8rem;
}
}

View File

@ -5,3 +5,5 @@
@import "~tailwindcss/utilities";
@import './utilities';
@import './pages'