Compare commits

..

5 Commits

Author SHA1 Message Date
victorAnumudu fbc805e3c2 missing com added 2024-08-10 21:21:37 +01:00
tokslaw7 02119e5bad Merge branch 'master' of ssh://gitlab.chiefsoft.net/WrenchBoard/WrenchBoardMainSite2025 2024-08-08 03:53:27 +00:00
tokslaw7 6563292217 Run production build 2024-08-08 03:53:13 +00:00
CHIEFSOFT\ameye 14bd0dc556 add sharp 2024-08-07 16:50:12 -04:00
ameye d4acf6eb87 Merge branch 'build-fix-started' of WrenchBoard/WrenchBoardMainSite2025 into master 2024-08-07 17:56:25 +00:00
6 changed files with 176 additions and 14 deletions
+11 -2
View File
@@ -8639,8 +8639,7 @@ LND PAGE STYLE STARTS HERE
}
/* -----------Interface_Section-Css-Start----------------- */
/* -----------Interface_Section-Css-Start FOR HOME IMAGE SLIDERS ----------------- */
/* interface wraper */
.interface_section .screen_slider {
margin-top: 35px;
@@ -8664,4 +8663,14 @@ LND PAGE STYLE STARTS HERE
transform: scale(1);
/* border: 3px solid #000; */
/* padding: 5px; */
}
.carousel .slider {
height: auto !important;
width: 300px !important;
transform: scale(.9);
}
.carousel div {
gap: 5px !important;
}
+145
View File
@@ -0,0 +1,145 @@
"use client"
import React, {useState} from 'react'
import Carousel from 'react-simply-carousel';
import Image from 'next/image'
export default function FeaturedScreenTwo() {
const [activeSlide, setActiveSlide] = useState(0);
const handleSlideIndexChange = () => {
setActiveSlideIndex(2)
}
return (
<div className='carousel pt-5'>
<Carousel
activeSlideIndex={activeSlide}
onRequestChange={setActiveSlide}
itemsToShow={1}
itemsToScroll={1}
infinite={true}
autoplay={true}
// delay={3000}
autoplayDelay={5000}
speed={3000}
easing="linear"
centerMode
preventScrollOnSwipe
swipeTreshold={60}
updateOnItemClick={true}
activeSlideProps={{
style: {
transform: 'scale(1)'
}
}}
containerProps={{
style: {
width: "100%",
justifyContent: "space-between",
userSelect: "none"
}
}}
forwardBtnProps={{
//here you can also pass className, or any other button element attributes
style: {
alignSelf: 'center',
background: 'black',
border: 'none',
borderRadius: '50%',
color: 'white',
cursor: 'pointer',
fontSize: '20px',
height: 30,
lineHeight: 1,
textAlign: 'center',
width: 30,
display: 'none'
},
children: <span>{`>`}</span>,
}}
backwardBtnProps={{
//here you can also pass className, or any other button element attributes
style: {
alignSelf: 'center',
background: 'black',
border: 'none',
borderRadius: '50%',
color: 'white',
cursor: 'pointer',
fontSize: '20px',
height: 30,
lineHeight: 1,
textAlign: 'center',
width: 30,
display: 'none'
},
children: <span>{`<`}</span>,
}}
dotsNav={{
show: true,
itemBtnProps: {
style: {
height: 16,
width: 16,
borderRadius: "50%",
border: 0
}
},
activeItemBtnProps: {
style: {
height: 16,
width: 16,
borderRadius: "50%",
border: 0,
background: "black"
}
}
}}
responsiveProps={[
{
itemsToShow: 1,
itemsToScroll: 1,
minWidth: 0,
},
{
itemsToShow: 3,
itemsToScroll: 1,
minWidth: 568,
},
{
itemsToShow: 5,
itemsToScroll: 1,
minWidth: 992,
},
{
itemsToShow: 7,
itemsToScroll: 1,
minWidth: 1440,
},
]}
>
{/* here you can also pass any other element attributes. Also, you can use your custom components as slides */}
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_1.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_2.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_3.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_6.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_4.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_7.png'} alt="image" />
</div>
<div className='slider' style={{ background: 'transparent' }}>
<img src={'/assets/images/slider/app_sliders/screen_5.png'} alt="image" />
</div>
</Carousel>
</div>
);
}
+5 -5
View File
@@ -4,15 +4,15 @@ import BlogHomeOne from './BlogHomeOne';
// import FeaturesHomeOne from './FeaturesHomeOne';
import FooterHomeOne from './FooterHomeOne';
import HeroHomeOne from './HeroHomeOne';
import ServicesHomeOne from './ServicesHomeOne';
// import ServicesHomeOne from './ServicesHomeOne';
import TrafficHomeOne from './TrafficHomeOne';
import TrafficHomeTwo from './TrafficHomeTwo';
// import TrafficHomeTwo from './TrafficHomeTwo';
//import FeaturedScreen from './FeaturedScreen';
import AfterHero from './AfterHero';
import NextAfterHero from './NextAfterHero';
// import NextAfterHero from './NextAfterHero';
import BackToTop from './BackToTop';
import SelectFeatures from "@/app/components/SelectFeatutes";
import FeaturedScreenTwo from './FeaturedScreenTwo'
@@ -28,7 +28,7 @@ function HomeOne() {
{/*<ServicesHomeOne />*/}
<TrafficHomeOne />
{/*<TrafficHomeTwo />*/}
{/*<FeaturedScreen />*/}
<FeaturedScreenTwo />
<BlogHomeOne />
<FooterHomeOne />
<BackToTop className='' />
+2
View File
@@ -13,6 +13,8 @@ services:
- ./:/app
- ./src/:/app/src
- ./run.sh:/app/run.sh
- ./node_modules:/app/node_modules
- ./next:/app/.next
extra_hosts:
- backend.wrenchboard.api.live:10.10.33.15
- backend.wrenchboard.api.test:10.10.33.15
+11 -6
View File
@@ -110,6 +110,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# COPY docker-entrypoint.sh /usr/local/bin/
# ENTRYPOINT ["docker-entrypoint.sh"]
RUN mkdir -p /app
# set working directory
WORKDIR /app
@@ -117,22 +119,25 @@ WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
#COPY package-lock.json ./
COPY package.json /app
#COPY package-lock.json /app
RUN npm install --silent
#RUN npm install react-scripts@3.4.1 -g --silent
#RUN npm install -g serve
RUN npm install -g next
RUN npm install sharp
# add app
COPY . ./
COPY . /app
# build app
#RUN npm run-script build
# start app
#CMD ["serve", "-s", "build"]
CMD ["npm", "run", "dev"]
#CMD ["npm", "run", "dev"]
#RUN npm run build
#CMD ["npm", "run", "start"]
CMD ["sh", "-c", "next build && next start"]
#RUN npm run-script build
#CMD ["npm", "run", "start"]
+2 -1
View File
@@ -14,7 +14,8 @@
"react": "^18",
"react-dom": "^18",
"react-owl-carousel": "^2.3.3",
"react-router-dom": "^6.25.1"
"react-router-dom": "^6.25.1",
"sharp": "^0.33.4"
},
"devDependencies": {
"@types/node": "20.14.14",