diff --git a/.next/build-manifest.json b/.next/build-manifest.json
index 2fdab92..1aaa22a 100644
--- a/.next/build-manifest.json
+++ b/.next/build-manifest.json
@@ -24,7 +24,23 @@
"static/runtime/polyfills.js",
"static/runtime/polyfills.js.map"
],
- "/yamaha/cart/checkout": [
+ "/suzuki/home": [
+ "static/runtime/webpack.js",
+ "static/runtime/main.js"
+ ],
+ "/suzuki/latest_news/latestnews_details": [
+ "static/runtime/webpack.js",
+ "static/runtime/main.js"
+ ],
+ "/suzuki/product/product": [
+ "static/runtime/webpack.js",
+ "static/runtime/main.js"
+ ],
+ "/suzuki/product/product_detail": [
+ "static/runtime/webpack.js",
+ "static/runtime/main.js"
+ ],
+ "/yamaha/latest_news/latestnews": [
"static/runtime/webpack.js",
"static/runtime/main.js"
]
diff --git a/.next/server/pages-manifest.json b/.next/server/pages-manifest.json
index 27d04df..90f81a8 100644
--- a/.next/server/pages-manifest.json
+++ b/.next/server/pages-manifest.json
@@ -1 +1 @@
-{"/_app":"static/development/pages/_app.js","/_document":"static/development/pages/_document.js","/_error":"static/development/pages/_error.js","/yamaha/cart/checkout":"static/development/pages/yamaha/cart/checkout.js"}
\ No newline at end of file
+{"/_app":"static/development/pages/_app.js","/_document":"static/development/pages/_document.js","/_error":"static/development/pages/_error.js","/suzuki/home":"static/development/pages/suzuki/home.js","/suzuki/latest_news/latestnews_details":"static/development/pages/suzuki/latest_news/latestnews_details.js","/suzuki/product/product":"static/development/pages/suzuki/product/product.js","/suzuki/product/product_detail":"static/development/pages/suzuki/product/product_detail.js","/yamaha/latest_news/latestnews":"static/development/pages/yamaha/latest_news/latestnews.js"}
\ No newline at end of file
diff --git a/api/carrer/carrer.js b/api/carrer/carrer.js
index 5a5ef86..1422a25 100644
--- a/api/carrer/carrer.js
+++ b/api/carrer/carrer.js
@@ -1,6 +1,6 @@
import apollo from "../../lib/apollo.js";
-async function GetCarrerS1(token="") {
+async function GetCarrerS1Yamaha(token="") {
var res = await apollo.query(
`
query {
@@ -18,7 +18,7 @@ async function GetCarrerS1(token="") {
return res;
}
-async function GetCarrerD3(token="") {
+async function GetCarrerD3Yamaha(token="") {
var res = await apollo.query(
`
query {
@@ -36,7 +36,7 @@ async function GetCarrerD3(token="") {
return res;
}
-async function GetCarrerSMA(token="") {
+async function GetCarrerSMAYamaha(token="") {
var res = await apollo.query(
`
query {
@@ -80,9 +80,69 @@ async function GetDetailCarrer(id, token="") {
return res;
}
+async function GetCarrerS1Suzuki(token="") {
+ var res = await apollo.query(
+ `
+ query {
+ carrers(where: {category: "S1" business_partner:"2"})
+ {
+ id
+ name
+ start_regis
+ until_regis
+ name_description
+ }
+ }`,
+ token
+ );
+ return res;
+}
+
+async function GetCarrerD3Suzuki(token="") {
+ var res = await apollo.query(
+ `
+ query {
+ carrers(where: {category: "D3" business_partner:"2"})
+ {
+ id
+ name
+ start_regis
+ until_regis
+ name_description
+ }
+ }`,
+ token
+ );
+ return res;
+}
+
+async function GetCarrerSMASuzuki(token="") {
+ var res = await apollo.query(
+ `
+ query {
+ carrers(where: {category: "SMA" business_partner:"2"})
+ {
+ id
+ name
+ start_regis
+ until_regis
+ name_description
+ }
+ }`,
+ token
+ );
+ return res;
+}
+
module.exports = {
- GetCarrerS1:GetCarrerS1,
- GetCarrerD3:GetCarrerD3,
- GetCarrerSMA:GetCarrerSMA,
+ //yamaha
+ GetCarrerS1Yamaha:GetCarrerS1Yamaha,
+ GetCarrerD3Yamaha:GetCarrerD3Yamaha,
+ GetCarrerSMAYamaha:GetCarrerSMAYamaha,
+
+ //suzuki
+ GetCarrerS1Suzuki:GetCarrerS1Suzuki,
+ GetCarrerD3Suzuki:GetCarrerD3Suzuki,
+ GetCarrerSMASuzuki:GetCarrerSMASuzuki,
GetDetailCarrer:GetDetailCarrer,
};
\ No newline at end of file
diff --git a/api/home/carousel.js b/api/home/carousel.js
index c4cbdcb..ee4d44a 100644
--- a/api/home/carousel.js
+++ b/api/home/carousel.js
@@ -1,6 +1,6 @@
import apollo from "../../lib/apollo.js";
-async function GetCarousels(token="") {
+async function GetCarouselsYamaha(token="") {
var res = await apollo.query(
`
query{
@@ -17,6 +17,24 @@ async function GetCarousels(token="") {
return res;
}
+async function GetCarouselsSuzuki(token="") {
+ var res = await apollo.query(
+ `
+ query {
+ carousels(where: { business_partner: "2" }) {
+ id
+ img {
+ url
+ }
+ }
+ }
+ `,
+ token
+ );
+ return res;
+}
+
module.exports = {
- GetCarousels: GetCarousels,
+ GetCarouselsYamaha:GetCarouselsYamaha,
+ GetCarouselsSuzuki:GetCarouselsSuzuki,
};
\ No newline at end of file
diff --git a/api/home/service.js b/api/home/service.js
index 0f0d3e5..fcb0969 100644
--- a/api/home/service.js
+++ b/api/home/service.js
@@ -1,6 +1,24 @@
import apollo from "../../lib/apollo.js";
-async function Getservices(token="") {
+async function GetservicesYamaha(token="") {
+ var res = await apollo.query(
+ `
+ query{
+ services
+ {
+ name
+ img{
+ url
+ }
+ }
+ }
+ `,
+ token
+ );
+ return res;
+}
+
+async function GetservicesSuzuki(token="") {
var res = await apollo.query(
`
query{
@@ -19,5 +37,6 @@ async function Getservices(token="") {
}
module.exports = {
- Getservices: Getservices,
+ GetservicesYamaha: GetservicesYamaha,
+ GetservicesSuzuki:GetservicesSuzuki,
};
\ No newline at end of file
diff --git a/api/latest_news/news.js b/api/latest_news/news.js
index 9f3c2a2..21a0e66 100644
--- a/api/latest_news/news.js
+++ b/api/latest_news/news.js
@@ -1,6 +1,6 @@
import apollo from "../../lib/apollo.js";
-async function GetNews(token="", start = 0) {
+async function GetNewsYamaha(token="", start = 0) {
var res = await apollo.query(
`
query($start: Int!) {
@@ -24,7 +24,7 @@ async function GetNews(token="", start = 0) {
return res;
}
-async function GetOtherNews(token="", start = 0) {
+async function GetOtherNewsYamaha(token="", start = 0) {
var res = await apollo.query(
`
query($start: Int!) {
@@ -48,6 +48,54 @@ async function GetOtherNews(token="", start = 0) {
return res;
}
+async function GetNewsSuzuki(token="", start = 0) {
+ var res = await apollo.query(
+ `
+ query{
+ latestNews(where: { business_partner: "2" })
+ {
+ id
+ title
+ description
+ img{
+ url
+ }
+ published_at
+ }
+ }
+ `,
+ token,
+ {
+ start: start,
+ }
+ );
+ return res;
+}
+
+async function GetOtherNewsSuzuki(token="", start = 0) {
+ var res = await apollo.query(
+ `
+ query{
+ latestNews(where: { business_partner: "2" })
+ {
+ id
+ title
+ description
+ img{
+ url
+ }
+ published_at
+ }
+ }
+ `,
+ token,
+ {
+ start: start,
+ }
+ );
+ return res;
+}
+
async function GetDetailNews(id, token="") {
var res = await apollo.query(
`
@@ -73,7 +121,9 @@ async function GetDetailNews(id, token="") {
}
module.exports = {
- GetNews: GetNews,
+ GetNewsYamaha: GetNewsYamaha,
+ GetOtherNewsYamaha:GetOtherNewsYamaha,
+ GetNewsSuzuki:GetNewsSuzuki,
+ GetOtherNewsSuzuki:GetOtherNewsSuzuki,
GetDetailNews: GetDetailNews,
- GetOtherNews:GetOtherNews,
};
\ No newline at end of file
diff --git a/api/product/product.js b/api/product/product.js
index 2212b17..376bb31 100644
--- a/api/product/product.js
+++ b/api/product/product.js
@@ -205,8 +205,26 @@ async function GetProductPowerProduct(token = "") {
return res;
}
+async function GetProductSuzuki(token = "") {
+ var res = await apollo.query(
+ `
+ query {
+ products(where: { business_partner: "2" }) {
+ id
+ name
+ price
+ img {
+ url
+ }
+ }
+ }`,
+ token
+ );
+ return res;
+}
+
module.exports = {
- GetDetailProduct: GetDetailProduct,
+ //yamaha
GetProductMatic: GetProductMatic,
GetProductMaxi: GetProductMaxi,
GetProductNaked: GetProductNaked,
@@ -217,4 +235,10 @@ module.exports = {
GetProductCBU: GetProductCBU,
GetProductATV: GetProductATV,
GetProductPowerProduct: GetProductPowerProduct,
+
+ //suzuki
+ GetProductSuzuki:GetProductSuzuki,
+
+ //detail
+ GetDetailProduct: GetDetailProduct,
};
\ No newline at end of file
diff --git a/api/suzuki/carrer/carrer.js b/api/suzuki/carrer/carrer.js
deleted file mode 100644
index 08b60d9..0000000
--- a/api/suzuki/carrer/carrer.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function GetCarrerS1(token="") {
- var res = await apollo.query(
- `
- query {
- carrers(where: {category: "S1" business_partner:"2"})
- {
- id
- name
- start_regis
- until_regis
- name_description
- }
- }`,
- token
- );
- return res;
-}
-
-async function GetCarrerD3(token="") {
- var res = await apollo.query(
- `
- query {
- carrers(where: {category: "D3" business_partner:"2"})
- {
- id
- name
- start_regis
- until_regis
- name_description
- }
- }`,
- token
- );
- return res;
-}
-
-async function GetCarrerSMA(token="") {
- var res = await apollo.query(
- `
- query {
- carrers(where: {category: "SMA" business_partner:"2"})
- {
- id
- name
- start_regis
- until_regis
- name_description
- }
- }`,
- token
- );
- return res;
-}
-
-async function GetDetailCarrer(id, token="") {
- var res = await apollo.query(
- `
- query($input: ID!){
- carrers(where:{id:$input})
- {
- name
- description
- category
- img{
- url
- }
- start_regis
- until_regis
- name_description
- }
- }
- `,
- token,
- {
- "input": id
- }
- );
- return res;
-}
-
-module.exports = {
- GetCarrerS1:GetCarrerS1,
- GetCarrerD3:GetCarrerD3,
- GetCarrerSMA:GetCarrerSMA,
- GetDetailCarrer:GetDetailCarrer,
-};
\ No newline at end of file
diff --git a/api/suzuki/dealer/dealer.js b/api/suzuki/dealer/dealer.js
deleted file mode 100644
index 1531a56..0000000
--- a/api/suzuki/dealer/dealer.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import apollo from "../../lib/apollo.js";
-
-async function GetDealers(filter, token="") {
- var res = await apollo.query(
- `
- query { ${(filter!="")?`name: "${filter}"`:""}
- dealers
- {
- id
- name
- kota_dealer
- address
- telp
- email
- location
- }
- }
- `,
- token
- );
- return res;
-}
-
-module.exports = {
- GetDealers: GetDealers,
-};
\ No newline at end of file
diff --git a/api/suzuki/home/businessPartner.js b/api/suzuki/home/businessPartner.js
deleted file mode 100644
index 4120cdd..0000000
--- a/api/suzuki/home/businessPartner.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function GetbusinessPartners(token = "") {
- var res = await apollo.query(
- `
- query{
- businessPartners
- {
- name
- img{
- url
- }
- }
- }
- `,
- token
- );
- return res;
-}
-
-module.exports = {
- GetbusinessPartners: GetbusinessPartners,
-};
\ No newline at end of file
diff --git a/api/suzuki/home/carousel.js b/api/suzuki/home/carousel.js
deleted file mode 100644
index d7a5cdc..0000000
--- a/api/suzuki/home/carousel.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function GetCarousels(token="") {
- var res = await apollo.query(
- `
- query {
- carousels(where: { business_partner: "2" }) {
- id
- img {
- url
- }
- }
- }
- `,
- token
- );
- return res;
-}
-
-module.exports = {
- GetCarousels: GetCarousels,
-};
\ No newline at end of file
diff --git a/api/suzuki/home/service.js b/api/suzuki/home/service.js
deleted file mode 100644
index 36ed518..0000000
--- a/api/suzuki/home/service.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function Getservices(token="") {
- var res = await apollo.query(
- `
- query{
- services
- {
- name
- img{
- url
- }
- }
- }
- `,
- token
- );
- return res;
-}
-
-module.exports = {
- Getservices: Getservices,
-};
\ No newline at end of file
diff --git a/api/suzuki/latest_news/news.js b/api/suzuki/latest_news/news.js
deleted file mode 100644
index 388d4ad..0000000
--- a/api/suzuki/latest_news/news.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function GetNews(token="", start = 0) {
- var res = await apollo.query(
- `
- query{
- latestNews(where: { business_partner: "2" })
- {
- id
- title
- description
- img{
- url
- }
- published_at
- }
- }
- `,
- token,
- {
- start: start,
- }
- );
- return res;
-}
-
-async function GetOtherNews(token="", start = 0) {
- var res = await apollo.query(
- `
- query{
- latestNews(where: { business_partner: "2" })
- {
- id
- title
- description
- img{
- url
- }
- published_at
- }
- }
- `,
- token,
- {
- start: start,
- }
- );
- return res;
-}
-
-async function GetDetailNews(id, token="") {
- var res = await apollo.query(
- `
- query($input: ID!) {
- latestNews(where:{id:$input})
- {
- id
- title
- description
- img{
- url
- }
- published_at
- }
- }
- `,
- token,
- {
- "input": id
- }
- );
- return res;
-}
-
-module.exports = {
- GetNews: GetNews,
- GetDetailNews: GetDetailNews,
- GetOtherNews:GetOtherNews,
-};
\ No newline at end of file
diff --git a/api/suzuki/product/product.js b/api/suzuki/product/product.js
deleted file mode 100644
index a1fc07a..0000000
--- a/api/suzuki/product/product.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import apollo from "../../../lib/apollo.js";
-
-async function GetDetailProduct(id, token = "") {
- var res = await apollo.query(
- `
- query($input: ID!){
- products(where:{id:$input})
- {
- name
- price
- description
- img{
- url
- }
- overview
- specification
- film
- stock
- }
- } `,
- token, {
- "input": id
- }
- );
- return res;
-}
-
-async function GetProductSuzuki(token = "") {
- var res = await apollo.query(
- `
- query {
- products(where: { business_partner: "2" }) {
- id
- name
- price
- img {
- url
- }
- }
- }`,
- token
- );
- return res;
-}
-module.exports = {
- GetProductSuzuki: GetProductSuzuki,
- GetDetailProduct:GetDetailProduct,
-};
\ No newline at end of file
diff --git a/assets/img/bca.png b/assets/img/bca.png
new file mode 100644
index 0000000..9724e0b
Binary files /dev/null and b/assets/img/bca.png differ
diff --git a/components/Header/HeaderLinks.js b/components/Header/HeaderLinks.js
index 28fc3e2..c658909 100644
--- a/components/Header/HeaderLinks.js
+++ b/components/Header/HeaderLinks.js
@@ -57,19 +57,19 @@ export default function HeaderLinks(props) {
Apparel,
Accessories,
Service,
- Dealers,
+ Dealers,
]}
/>
{data.title} {data.published_at}
{data.title}
{data.published_at}
-