diff --git a/api/carrer/carrer.js b/api/carrer/carrer.js index 61b8da9..58ccefc 100644 --- a/api/carrer/carrer.js +++ b/api/carrer/carrer.js @@ -188,6 +188,60 @@ async function GetCarrerSMAHonda(token="") { return res; } +async function GetCarrerS1Hino(token="") { + var res = await apollo.query( + ` + query { + carrers(where: {category: "S1" business_partner:"4"}) + { + id + name + start_regis + until_regis + name_description + } + }`, + token + ); + return res; +} + +async function GetCarrerD3Hino(token="") { + var res = await apollo.query( + ` + query { + carrers(where: {category: "D3" business_partner:"4"}) + { + id + name + start_regis + until_regis + name_description + } + }`, + token + ); + return res; +} + +async function GetCarrerSMAHino(token="") { + var res = await apollo.query( + ` + query { + carrers(where: {category: "SMA" business_partner:"4"}) + { + id + name + start_regis + until_regis + name_description + } + }`, + token + ); + return res; +} + module.exports = { //yamaha GetCarrerS1Yamaha:GetCarrerS1Yamaha, @@ -204,5 +258,10 @@ module.exports = { GetCarrerD3Honda:GetCarrerD3Honda, GetCarrerSMAHonda:GetCarrerSMAHonda, + //hino + GetCarrerS1Hino:GetCarrerS1Hino, + GetCarrerD3Hino:GetCarrerD3Hino, + GetCarrerSMAHino:GetCarrerSMAHino, + GetDetailCarrer:GetDetailCarrer, }; \ No newline at end of file diff --git a/api/home/carousel.js b/api/home/carousel.js index a3e59d6..2c76b3c 100644 --- a/api/home/carousel.js +++ b/api/home/carousel.js @@ -51,8 +51,26 @@ async function GetCarouselsHonda(token="") { return res; } +async function GetCarouselsHino(token="") { + var res = await apollo.query( + ` + query { + carousels(where: { business_partner: "4" }) { + id + img { + url + } + } + } + `, + token + ); + return res; +} + module.exports = { GetCarouselsYamaha:GetCarouselsYamaha, GetCarouselsSuzuki:GetCarouselsSuzuki, GetCarouselsHonda:GetCarouselsHonda, + GetCarouselsHino:GetCarouselsHino, }; \ No newline at end of file diff --git a/api/latest_news/news.js b/api/latest_news/news.js index 3de1a49..f1e9ba5 100644 --- a/api/latest_news/news.js +++ b/api/latest_news/news.js @@ -144,6 +144,54 @@ async function GetOtherNewsHonda(token="", start = 0) { return res; } +async function GetNewsHino(token="", start = 0) { + var res = await apollo.query( + ` + query{ + latestNews(where: { business_partner: "4" }) + { + id + title + description + img{ + url + } + published_at + } + } + `, + token, + { + start: start, + } + ); + return res; +} + +async function GetOtherNewsHino(token="", start = 0) { + var res = await apollo.query( + ` + query{ + latestNews(where: { business_partner: "4" }) + { + id + title + description + img{ + url + } + published_at + } + } + `, + token, + { + start: start, + } + ); + return res; +} + async function GetDetailNews(id, token="") { var res = await apollo.query( ` @@ -175,5 +223,7 @@ module.exports = { GetOtherNewsSuzuki:GetOtherNewsSuzuki, GetNewsHonda:GetNewsHonda, GetOtherNewsHonda:GetOtherNewsHonda, + GetNewsHino:GetNewsHino, + GetOtherNewsHino:GetOtherNewsHino, GetDetailNews: GetDetailNews, }; \ No newline at end of file diff --git a/api/product/product.js b/api/product/product.js index 1ebd814..132d145 100644 --- a/api/product/product.js +++ b/api/product/product.js @@ -241,6 +241,24 @@ async function GetProductHonda(token = "") { return res; } +async function GetProductHino(token = "") { + var res = await apollo.query( + ` + query { + products(where: { business_partner: "4" }) { + id + name + price + img { + url + } + } + }`, + token + ); + return res; +} + module.exports = { //yamaha GetProductMatic: GetProductMatic, @@ -260,6 +278,9 @@ module.exports = { //honda GetProductHonda:GetProductHonda, + //hino + GetProductHino:GetProductHino, + //detail GetDetailProduct: GetDetailProduct, }; \ No newline at end of file diff --git a/assets/img/Suzuki.png b/assets/img/Suzuki.png new file mode 100644 index 0000000..a5e95b5 Binary files /dev/null and b/assets/img/Suzuki.png differ diff --git a/assets/img/clm.png b/assets/img/clm.png new file mode 100644 index 0000000..0063f77 Binary files /dev/null and b/assets/img/clm.png differ diff --git a/assets/img/hino.jpg b/assets/img/hino.jpg new file mode 100644 index 0000000..4084515 Binary files /dev/null and b/assets/img/hino.jpg differ diff --git a/assets/img/hino.png b/assets/img/hino.png new file mode 100644 index 0000000..3beaaf2 Binary files /dev/null and b/assets/img/hino.png differ diff --git a/assets/img/home/bpr.jpg b/assets/img/home/bpr.jpg index 35a2b6c..7d4d466 100644 Binary files a/assets/img/home/bpr.jpg and b/assets/img/home/bpr.jpg differ diff --git a/assets/img/home/emilia.jpg b/assets/img/home/emilia.jpg index 409f659..fc85750 100644 Binary files a/assets/img/home/emilia.jpg and b/assets/img/home/emilia.jpg differ diff --git a/assets/img/home/hino.jpg b/assets/img/home/hino.jpg index 3904665..d64f830 100644 Binary files a/assets/img/home/hino.jpg and b/assets/img/home/hino.jpg differ diff --git a/assets/img/home/home.jpg b/assets/img/home/home.jpg index b088960..05d364c 100644 Binary files a/assets/img/home/home.jpg and b/assets/img/home/home.jpg differ diff --git a/assets/img/home/honda.jpg b/assets/img/home/honda.jpg index 7f4243a..3a46d8c 100644 Binary files a/assets/img/home/honda.jpg and b/assets/img/home/honda.jpg differ diff --git a/assets/img/home/mercedes.jpg b/assets/img/home/mercedes.jpg index dbb2a5e..f5cded4 100644 Binary files a/assets/img/home/mercedes.jpg and b/assets/img/home/mercedes.jpg differ diff --git a/assets/img/home/pim.jpg b/assets/img/home/pim.jpg index 580cf7e..bcb1cb8 100644 Binary files a/assets/img/home/pim.jpg and b/assets/img/home/pim.jpg differ diff --git a/assets/img/home/suzuki.jpg b/assets/img/home/suzuki.jpg index 3cd6725..39c3ac5 100644 Binary files a/assets/img/home/suzuki.jpg and b/assets/img/home/suzuki.jpg differ diff --git a/assets/img/home/yamaha.jpg b/assets/img/home/yamaha.jpg deleted file mode 100644 index 4c3e3de..0000000 Binary files a/assets/img/home/yamaha.jpg and /dev/null differ diff --git a/assets/img/home/yamaha1.jpg b/assets/img/home/yamaha1.jpg index 6b4ae99..f5c61d9 100644 Binary files a/assets/img/home/yamaha1.jpg and b/assets/img/home/yamaha1.jpg differ diff --git a/assets/img/honda.png b/assets/img/honda.png new file mode 100644 index 0000000..4cd4b86 Binary files /dev/null and b/assets/img/honda.png differ diff --git a/assets/img/logohino.png b/assets/img/logohino.png new file mode 100644 index 0000000..e676c05 Binary files /dev/null and b/assets/img/logohino.png differ diff --git a/assets/img/yamaha.png b/assets/img/yamaha.png new file mode 100644 index 0000000..34c093b Binary files /dev/null and b/assets/img/yamaha.png differ diff --git a/assets/jss/nextjs-material-kit.js b/assets/jss/nextjs-material-kit.js index cef8b26..04a5e98 100644 --- a/assets/jss/nextjs-material-kit.js +++ b/assets/jss/nextjs-material-kit.js @@ -70,11 +70,11 @@ lineHeight: "1.5em" }; - const primaryColor = "#9c27b0"; + const primaryColor = "#212121"; const warningColor = "#ff9800"; const dangerColor = "#f44336"; const successColor = "#4caf50"; - const infoColor = "#00acc1"; + const infoColor = "#212121"; const roseColor = "#e91e63"; const grayColor = "#999999"; @@ -147,7 +147,7 @@ }; const infoCardHeader = { color: "#fff", - background: "linear-gradient(60deg, #26c6da, #00acc1)", + background: "#212121", ...infoBoxShadow }; const primaryCardHeader = { diff --git a/assets/jss/nextjs-material-kit/components/snackbarContentStyle.js b/assets/jss/nextjs-material-kit/components/snackbarContentStyle.js index 7f9d3e1..e72e875 100644 --- a/assets/jss/nextjs-material-kit/components/snackbarContentStyle.js +++ b/assets/jss/nextjs-material-kit/components/snackbarContentStyle.js @@ -25,7 +25,7 @@ const snackbarContentStyle = { "0 12px 20px -10px rgba(255, 255, 255, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 255, 255, 0.2)" }, info: { - backgroundColor: "#00d3ee", + backgroundColor: "#212121", color: "#ffffff", ...infoBoxShadow }, diff --git a/components/Footer/Footer.js b/components/Footer/Footer.js index e49df75..40a52f4 100644 --- a/components/Footer/Footer.js +++ b/components/Footer/Footer.js @@ -102,17 +102,17 @@ export default function Footer(props) {
- Facebook - - - Instagram - - - Twitter - - - Youtube - + Facebook + + + Instagram + + + Twitter + + + Youtube +
diff --git a/components/Footer/FooterHino.js b/components/Footer/FooterHino.js new file mode 100644 index 0000000..95d3fa0 --- /dev/null +++ b/components/Footer/FooterHino.js @@ -0,0 +1,134 @@ +/*eslint-disable*/ +import React from "react"; +// nodejs library to set properties for components +import PropTypes from "prop-types"; +// nodejs library that concatenates classes +import classNames from "classnames"; +// material-ui core components +import { List, ListItem } from "@material-ui/core"; +import { makeStyles } from "@material-ui/core/styles"; + +// @material-ui/icons +import Favorite from "@material-ui/icons/Favorite"; + +import GridContainer from "components/Grid/GridContainer.js"; +import Grid from '@material-ui/core/Grid'; +import Paper from '@material-ui/core/Paper'; +import Card from "components/Card/Card.js"; +import styles from "assets/jss/nextjs-material-kit/components/footerStyle.js"; + +import CLM from "assets/img/clm.png"; +import Hino from "assets/img/logohino.png"; + +const useStyles = makeStyles(styles); + +export default function Footer(props) { + const classes = useStyles(); + const { whiteFont } = props; + const footerClasses = classNames({ + [classes.footer]: true, + [classes.footerWhiteFont]: whiteFont + }); + const aClasses = classNames({ + [classes.a]: true, + [classes.footerWhiteFont]: whiteFont + }); + return ( +

+ + +
+ +
+ + + +
+ + + + + + + +
+ +
+
+
+ + +
+ © {1900 + new Date().getYear()} , All Right Reserved{" "} by{" "} @Thamrin Group Company +
+
+
+
+ ); +} + +Footer.propTypes = { + whiteFont: PropTypes.bool +}; diff --git a/components/Footer/FooterHome.js b/components/Footer/FooterHome.js new file mode 100644 index 0000000..7cab6c5 --- /dev/null +++ b/components/Footer/FooterHome.js @@ -0,0 +1,131 @@ +/*eslint-disable*/ +import React from "react"; +// nodejs library to set properties for components +import PropTypes from "prop-types"; +// nodejs library that concatenates classes +import classNames from "classnames"; +// material-ui core components +import { List, ListItem } from "@material-ui/core"; +import { makeStyles } from "@material-ui/core/styles"; + +// @material-ui/icons +import Favorite from "@material-ui/icons/Favorite"; + +import GridContainer from "components/Grid/GridContainer.js"; +import Grid from '@material-ui/core/Grid'; +import GridItem from "components/Grid/GridItem.js"; +import Paper from '@material-ui/core/Paper'; +import Card from "components/Card/Card.js"; +import styles from "assets/jss/nextjs-material-kit/components/footerStyle.js"; + +import Logo from "assets/img/White.png"; + +// import iconfb from "assets/img/sosmed/iconfb.png"; +// import iconig from "assets/img/sosmed/iconig.png"; +// import icontwt from "assets/img/sosmed/icontwt.png"; +// import iconyt from "assets/img/sosmed/iconyt.png"; + +const useStyles = makeStyles(styles); + +export default function Footer(props) { + const classes = useStyles(); + const { whiteFont } = props; + const footerClasses = classNames({ + [classes.footer]: true, + [classes.footerWhiteFont]: whiteFont + }); + const aClasses = classNames({ + [classes.a]: true, + [classes.footerWhiteFont]: whiteFont + }); + return ( +
+ + +
+

+ +
+
+ +
+ +
+
+
+ + +
+ +
+
+
+ + +
+
+ © {1900 + new Date().getYear()} , All Right Reserved{" "} by{" "} @Thamrin Group Company +
+
+
+
+
+ ); +} + +Footer.propTypes = { + whiteFont: PropTypes.bool +}; diff --git a/components/Footer/FooterHonda.js b/components/Footer/FooterHonda.js index 6613b05..69b800d 100644 --- a/components/Footer/FooterHonda.js +++ b/components/Footer/FooterHonda.js @@ -95,19 +95,19 @@ export default function Footer(props) {