Skip to content

Commit fb991c8

Browse files
committed
Modify README and increase pagetitle margin
1 parent 74d82d5 commit fb991c8

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ node_modules
1818
.env.development.local
1919
.env.test.local
2020
.env.production.local
21-
# next.config.js
2221

2322
npm-debug.log*
2423
yarn-debug.log*
2524
yarn-error.log*
26-
27-
design.html

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ The current release has been tested and is confirmed working with the following
3636

3737
Import the products at `WP Dashboard > Tools > Import > WooCommerce products(CSV)`
3838

39-
4. Clone or fork the repo and modify `nextConfig.js`
39+
4. Clone or fork the repo and modify `nextConfig.js`.
40+
Then set the environment variables ALGOLIA_APP_ID and ALGOLIA_PUBLIC_API_KEY in Vercel.
41+
See https://vercel.com/docs/environment-variables
4042
5. Modify the values according to your setup
4143
6. Start the server with `npm run dev`
4244
7. Enable COD (Cash On Demand) payment method in WooCommerce

components/Category/Categories.component.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const Categories = ({ categories }) => {
1717
as={`/kategori/${slug}?id=${id}`}
1818
href="/kategori/[id]"
1919
>
20-
<div
21-
//className="flex flex-col justify-around p-6 cursor-pointer xs:w-1/2 md:w-1/3 xl:w-1/4"
20+
<div
2221
className="p-6 cursor-pointer"
2322
>
2423
<div className="flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline">

components/Title/PageTitle.component.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ const PageTitle = ({ title, marginleft }) => {
22
return (
33
<>
44
{marginleft ? (
5-
<section className="container pl-8 mx-auto mt-24 text-center bg-white">
5+
<section className="container pl-8 mx-auto mt-32 text-center bg-white">
66
<span className="py-2 text-xl font-bold tracking-wide text-center text-gray-800 no-underline uppercase hover:no-underline">
77
{title}
88
</span>
99
</section>
1010
) : (
11-
<section className="container pl-4 mx-auto mt-24 text-center bg-white">
11+
<section className="container pl-4 mx-auto mt-32 text-center bg-white">
1212
<span className="py-2 text-xl font-bold tracking-wide text-center text-gray-800 no-underline uppercase hover:no-underline">
1313
{title}
1414
</span>

utils/config/nextConfig.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44

55
export const WOO_CONFIG = {
66
GRAPHQL_URL: 'https://woo.dfweb.no/graphql',
7-
ALGOLIA_APP_ID: '7L9M5Y0B1K',
8-
ALGOLIA_PUBLIC_API_KEY: '6f03421b21d2320c3d544777235debf1',
97
ALGOLIA_INDEX_NAME: 'dfweb',
10-
PLACEHOLDER_SMALL_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1600187495/Nextjs-Woocommerce/337_utsb7h.jpg',
11-
PLACEHOLDER_LARGE_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg',
8+
PLACEHOLDER_SMALL_IMAGE_URL:
9+
'https://res.cloudinary.com/duelisue0/image/upload/v1600187495/Nextjs-Woocommerce/337_utsb7h.jpg',
10+
PLACEHOLDER_LARGE_IMAGE_URL:
11+
'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg',
1212
};
1313

1414
// Development details
1515

1616
/*
1717
export const WOO_CONFIG = {
1818
GRAPHQL_URL: 'http://localhost/wp/graphql',
19-
ALGOLIA_APP_ID: '7L9M5Y0B1K',
20-
ALGOLIA_PUBLIC_API_KEY: '925cc92373120f1bf477bb8ce0e71649',
2119
ALGOLIA_INDEX_NAME: 'dfweb',
2220
PLACEHOLDER_SMALL_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595540954/Nextjs-Woocommerce/placeholder-272-272_pg8t0z.jpg',
2321
PLACEHOLDER_LARGE_IMAGE_URL: 'https://res.cloudinary.com/duelisue0/image/upload/v1595541416/Nextjs-Woocommerce/placeholder-616-616_beecp5.jpg',

0 commit comments

Comments
 (0)