mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🎨 styles: recipe detail
:%s
This commit is contained in:
parent
b3b5a310d8
commit
9802a6537a
@ -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
12
pages/recipe/[slug].tsx
Normal 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
|
@ -1,4 +1,4 @@
|
||||
@import "../../../../styles/utilities";
|
||||
@import "../../../styles/utilities";
|
||||
|
||||
.recommendedRecipes {
|
||||
margin: 6rem auto;
|
@ -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'
|
||||
|
@ -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
6
src/styles/_pages.scss
Normal file
@ -0,0 +1,6 @@
|
||||
.page-recipe-detail {
|
||||
margin-bottom: 5.4rem;
|
||||
@screen lg {
|
||||
margin-bottom: 12.8rem;
|
||||
}
|
||||
}
|
@ -5,3 +5,5 @@
|
||||
|
||||
@import "~tailwindcss/utilities";
|
||||
@import './utilities';
|
||||
|
||||
@import './pages'
|
||||
|
Loading…
x
Reference in New Issue
Block a user