Compare commits

...

9 Commits

11 changed files with 91 additions and 98 deletions
+6 -1
View File
@@ -8,5 +8,10 @@ REACT_APP_APIGATE='http://float-gat.dev.chiefsoft.net'
REACT_APP_APPLE_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130' REACT_APP_APPLE_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130'
REACT_APP_GOOGLE_PLAY_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130' REACT_APP_GOOGLE_PLAY_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130'
REACT_APP_AUX_ENDPOINT='https://float-gat.dev.chiefsoft.net/en/floatweb/api/v1/' REACT_APP_FACEBOOK_LINK='https://www.facebook.com/tryfloat'
REACT_APP_TWITTER_LINK='https://twitter.com/tryfloat/'
REACT_APP_LINKEDIN_LINK="https://www.linkedin.com/company/float-mobility/"
REACT_APP_INSTAGRAM_LINK="https://www.instagram.com/company/float-mobility/"
REACT_APP_IMAGE_LINK='https://blog.float.sg/wp-content/uploads/'
REACT_APP_AUX_ENDPOINT='https://float-gat.dev.chiefsoft.net/en/floatweb/api/v1/'
+2 -2
View File
@@ -4714,8 +4714,8 @@ h5.posts-category {
.featured-badge { .featured-badge {
z-index: 70; z-index: 70;
position: absolute; position: absolute;
top: 20px; top: 10px;
right: 20px; right: 10px;
width: 45px; width: 45px;
height: 45px; height: 45px;
-webkit-border-radius: 100%; -webkit-border-radius: 100%;
+2 -2
View File
@@ -39,12 +39,12 @@ function App() {
try { try {
const res = await siteApi.blogData(); const res = await siteApi.blogData();
if(res.status == 200 /* && res.data.status > 0*/){ if(res.status == 200 /* && res.data.status > 0*/){
console.log(res.data.payload, res.data); console.log(res.data);
setBlogData(res.data) setBlogData(res.data)
return return
} }
}catch(error) { }catch(error) {
setBlogData({payload: {blogdata: []}}) setBlogData({blogdata: []})
} }
}; };
+12 -7
View File
@@ -27,23 +27,27 @@ const BlogItems = ({blogData}) => {
return ( return (
<div className="row"> <div className="row">
{ {
blogData?.payload == undefined ? // API CALL IN PROGRESS blogData?.blogdata == undefined ? // API CALL IN PROGRESS
<div className='col-12 text-center display-4'>Loading...</div> // <div className='col-12 text-center display-4'>Loading...</div>
<div className="col-12 text-center">
<div className="spinner-border spinner-border-lg" role="status" style={{width: '3rem', height: '3rem'}}>
</div>
</div>
: :
// API CALL FINISHED // API CALL FINISHED
( (
blogData?.payload?.blogdata.length < 1 ? blogData?.blogdata.length < 1 ?
<div className='col-12 text-center display-4'>No Blog Currently Found!</div> <div className='col-12 text-center display-4'>No Blog Currently Found!</div>
: :
blogData?.payload?.blogdata.map((blog, index) => { blogData?.blogdata.map((blog, index) => {
if(location == '/blogs'){ if(location == '/blogs'){
return( return(
<div key={index} id="b-post-1" className="col-md-6 col-lg-4"> <div key={index} id="b-post-1" className="col-md-6 col-lg-4">
<div className="blog-post mb-40 wow fadeInUp" data-wow-delay="0.4s"> <div className="blog-post mb-40 wow fadeInUp" data-wow-delay="0.4s">
{/* BLOG POST IMAGE */} {/* BLOG POST IMAGE */}
<div className="blog-post-img rounded"> <div className="blog-post-img rounded">
<img className="img-fluid rounded" src="assets/images/blog/post-1-img.jpg" alt="blog-post-image" /> {/* <img className="img-fluid rounded" src="assets/images/blog/post-1-img.jpg" alt="blog-post-image" /> */}
{/* <img className="img-fluid" src={blog.meta_value} alt="blog-post-image" /> */} <img className="img-fluid rounded" src={process.env.REACT_APP_IMAGE_LINK + blog.meta_value} alt="blog-post-image" />
</div> </div>
{/* BLOG POST TEXT */} {/* BLOG POST TEXT */}
<div className="blog-post-txt"> <div className="blog-post-txt">
@@ -73,7 +77,8 @@ const BlogItems = ({blogData}) => {
<div className="blog-post mb-40 wow fadeInUp" data-wow-delay="0.4s"> <div className="blog-post mb-40 wow fadeInUp" data-wow-delay="0.4s">
{/* BLOG POST IMAGE */} {/* BLOG POST IMAGE */}
<div className="blog-post-img rounded"> <div className="blog-post-img rounded">
<img className="img-fluid rounded" src="assets/images/blog/post-1-img.jpg" alt="blog-post-image" /> {/* <img className="img-fluid rounded" src="assets/images/blog/post-1-img.jpg" alt="blog-post-image" /> */}
<img className="img-fluid rounded" src={process.env.REACT_APP_IMAGE_LINK + blog.meta_value} alt="blog-post-image" />
</div> </div>
{/* BLOG POST TEXT */} {/* BLOG POST TEXT */}
<div className="blog-post-txt"> <div className="blog-post-txt">
+2 -2
View File
@@ -45,10 +45,10 @@ class Footer extends React.Component {
</div> </div>
<div className="col-sm-6 col-md-8 col-lg-3"> <div className="col-sm-6 col-md-8 col-lg-3">
<div className="footer-store-badges text-right mb-40"> <div className="footer-store-badges text-right mb-40">
<Link to="/#" className="store"> <Link to={process.env.REACT_APP_APPLE_LINK} className="store">
<img className="appstore" src="assets/images/appstore.png" alt="appstore-badge" /> <img className="appstore" src="assets/images/appstore.png" alt="appstore-badge" />
</Link> </Link>
<Link to="/#" className="store"> <Link to={process.env.REACT_APP_GOOGLE_PLAY_LINK} className="store">
<img className="googleplay" src="assets/images/googleplay.png" alt="googleplay-badge" /> <img className="googleplay" src="assets/images/googleplay.png" alt="googleplay-badge" />
</Link> </Link>
</div> </div>
+6 -6
View File
@@ -1,18 +1,18 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom/client';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from "react-router-dom"; import { BrowserRouter } from "react-router-dom";
ReactDOM.render( const rootElement = document.getElementById('root');
// basename='/usr/src/app/build' const root = ReactDOM.createRoot(rootElement);
root.render(
<BrowserRouter> <BrowserRouter>
<App /> <App />
</BrowserRouter>, </BrowserRouter>
document.getElementById('root')
); );
// If you want to start measuring performance in your app, pass a function // If you want to start measuring performance in your app, pass a function
+9 -24
View File
@@ -5,21 +5,16 @@ class About extends React.Component {
render() { render() {
return( return(
<div> <div>
{/* PRELOADER SPINNER */}
{/* PRELOADER SPINNER
============================================= */}
<div id="loader-wrapper"> <div id="loader-wrapper">
<div id="loading"> <div id="loading">
<span className="cssload-loader"><span className="cssload-loader-inner" /></span> <span className="cssload-loader"><span className="cssload-loader-inner" /></span>
</div> </div>
</div> </div>
{/* PAGE CONTENT {/* PAGE CONTENT */}
============================================= */}
<div id="page" className="page"> <div id="page" className="page">
{/* PAGE HERO {/* PAGE HERO */}
============================================= */}
<div id="about-page" className="rel purple_gradient bg_shape_01 page-hero-section division"> <div id="about-page" className="rel purple_gradient bg_shape_01 page-hero-section division">
<div className="container"> <div className="container">
<div className="row"> <div className="row">
@@ -34,8 +29,7 @@ class About extends React.Component {
</div> {/* End row */} </div> {/* End row */}
</div> {/* End container */} </div> {/* End container */}
</div> {/* END PAGE HERO */} </div> {/* END PAGE HERO */}
{/* ABOUT-2 {/* ABOUT-2 */}
============================================= */}
<div id="about-2" className="wide-90 about-section division"> <div id="about-2" className="wide-90 about-section division">
<div className="container"> <div className="container">
{/* TEXT BLOCK */} {/* TEXT BLOCK */}
@@ -111,11 +105,8 @@ class About extends React.Component {
</div> </div>
</div> {/* END BUTTON */} </div> {/* END BUTTON */}
</div> {/* End container */} </div> {/* End container */}
</div> {/* END ABOUT-2 */} </div> {/* END ABOUT-2 */}
{/* TEAM-1 */}
{/* TEAM-1
============================================= */}
<section id="team-1" className="wide-60 team-section division"> <section id="team-1" className="wide-60 team-section division">
<div className="container"> <div className="container">
{/* SECTION TITLE */} {/* SECTION TITLE */}
@@ -133,8 +124,6 @@ class About extends React.Component {
<div className="team-members-holder pc-20 text-center"> <div className="team-members-holder pc-20 text-center">
<div className="row justify-content-center"> <div className="row justify-content-center">
{Testimonial.map(({name, title, image, link: {domain, href}}, idx) => ( {Testimonial.map(({name, title, image, link: {domain, href}}, idx) => (
<>
{/* TEAM MEMBER #1 */}
<div className="col-sm-6 col-lg-3" key={idx}> <div className="col-sm-6 col-lg-3" key={idx}>
<div className="team-member wow fadeInUp" data-wow-delay="0.4s"> <div className="team-member wow fadeInUp" data-wow-delay="0.4s">
{/* Team Member Photo */} {/* Team Member Photo */}
@@ -148,16 +137,13 @@ class About extends React.Component {
<span><a href={href} className="grey-color">@{domain}</a></span> <span><a href={href} className="grey-color">@{domain}</a></span>
</div> </div>
</div> </div>
</div> </div>
{/* END TEAM MEMBER #1 */}
</>
))} ))}
</div> {/* End row */} </div> {/* End row */}
</div> {/* TEAM MEMBERS HOLDER */} </div> {/* TEAM MEMBERS HOLDER */}
</div> {/* End container */} </div> {/* End container */}
</section> {/* END TEAM-1 */} </section> {/* END TEAM-1 */}
{/* NEWSLETTER-1 {/* NEWSLETTER-1 */}
============================================= */}
<section id="newsletter-1" className="pb-20 newsletter-section division"> <section id="newsletter-1" className="pb-20 newsletter-section division">
<div className="container"> <div className="container">
<div className="newsletter-wrapper bg-white"> <div className="newsletter-wrapper bg-white">
@@ -187,8 +173,7 @@ class About extends React.Component {
</div> {/* End row */} </div> {/* End row */}
</div> {/* End newsletter-holder */} </div> {/* End newsletter-holder */}
</div> {/* End container */} </div> {/* End container */}
</section> {/* END NEWSLETTER-1 */} </section> {/* END NEWSLETTER-1 */}
</div> {/* END PAGE CONTENT */} </div> {/* END PAGE CONTENT */}
</div> </div>
) )
+41 -31
View File
@@ -12,8 +12,8 @@ class Blog_listing extends React.Component {
console.log("OLU-AMEY BLOG LISTING ",props.blogData); console.log("OLU-AMEY BLOG LISTING ",props.blogData);
} }
render() { render() {
// const [blogData, setBlogData] = useState([]) // for holding // const [blogData, setBlogData] = useState([]) // for holding
//const siteApi = new SiteService(); // instantiating the API SERVICE //const siteApi = new SiteService(); // instantiating the API SERVICE
@@ -53,35 +53,45 @@ class Blog_listing extends React.Component {
</div> </div>
</div> </div>
{/* FEATURED POST */} {/* FEATURED POST */}
<div className="rel blog-post featured-post wide-post"> {
<div className="row d-flex align-items-center"> this.props.blogData?.featured == undefined ? // API CALL IN PROGRESS
<div className="featured-badge text-center ico-30 bg_whitesmoke yellow-color"> <div className="text-center">
<span className="flaticon-star" /> <div className="spinner-border spinner-border-lg" role="status" style={{width: '3rem', height: '3rem'}}>
</div> </div>
{/* BLOG POST IMAGE */} </div>
<div className="col-lg-7 blog-post-img"> :
<img className="img-fluid" src="assets/images/blog/post-1-img.jpg" alt="blog-post-image" /> <div className="rel blog-post featured-post wide-post">
</div> <div className="row d-flex align-items-center">
{/* BLOG POST TEXT */} <div className="featured-badge text-center ico-30 bg_whitesmoke yellow-color">
<div className="col-lg-5 blog-post-txt"> <span className="flaticon-star" />
{/* Post Tag */} </div>
<p className="p-md post-tag">NordEx News</p> {/* BLOG POST IMAGE */}
{/* Post Link */} <div className="col-lg-7 blog-post-img">
<h5 className="h5-xl"> <img className="w-auto h-100" src={process.env.REACT_APP_IMAGE_LINK + this.props.blogData?.featured.meta_value} alt="blog-post-image" />
<a href="single-post.html">Tempor sapien donec gravida a suscipit and porta justo vitae</a> </div>
</h5> {/* BLOG POST TEXT */}
{/* Text */} <div className="col-lg-5 blog-post-txt">
<p className="p-md">Aliqum mullam blandit vitae and tempor sapien and donec lipsum gravida a porta {/* Post Tag */}
undo velna dolor in cubilia laoreet <p className="p-2 post-tag">Float News</p>
</p> {/* Post Link */}
{/* Post Meta */} <h5 className="h5-xl">
<div className="post-meta"> <a href="single-post.html">{this.props.blogData?.featured.post_title}</a>
<div className="post-author-avatar"><img src="assets/images/post-author-1.jpg" alt="author-avatar" /></div> </h5>
<p>12 min read</p> {/* Text */}
</div> {/* <p className="p-md">Aliqum mullam blandit vitae and tempor sapien and donec lipsum gravida a porta
</div> {/* END BLOG POST TEXT */} undo velna dolor in cubilia laoreet
</div> {/* End row */} </p> */}
</div> {/* END FEATURED POST */} <div className="p-2" dangerouslySetInnerHTML={{__html: this.props.blogData?.featured.post_content.substring(0,300)+' . . .'}}></div>
{/* Post Meta */}
<div className="post-meta">
<div className="post-author-avatar"><img src="assets/images/post-author-1.jpg" alt="author-avatar" /></div>
<p>12 min read</p>
</div>
</div> {/* END BLOG POST TEXT */}
</div> {/* End row */}
</div>
} {/* END FEATURED POST */}
{/* POSTS WRAPPER */} {/* POSTS WRAPPER */}
<div className="posts-wrapper"> <div className="posts-wrapper">
{/* BLOG POSTS CATEGORY */} {/* BLOG POSTS CATEGORY */}
+8 -20
View File
@@ -4,23 +4,16 @@ class Faqs extends React.Component {
render() { render() {
return( return(
<div> <div>
{/* PRELOADER SPINNER */}
{/* PRELOADER SPINNER
============================================= */}
<div id="loader-wrapper"> <div id="loader-wrapper">
<div id="loading"> <div id="loading">
<span className="cssload-loader"><span className="cssload-loader-inner" /></span> <span className="cssload-loader"><span className="cssload-loader-inner" /></span>
</div> </div>
</div> </div>
{/* PAGE CONTENT {/* PAGE CONTENT */}
============================================= */}
<div id="page" className="page"> <div id="page" className="page">
{/* HEADER {/* HEADER */}
============================================= */} {/* FAQs-2 */}
{/* FAQs-2
============================================= */}
<section id="faqs-2" className="bg_whitesmoke hero-offset-nav pb-100 faqs-section division"> <section id="faqs-2" className="bg_whitesmoke hero-offset-nav pb-100 faqs-section division">
<div className="container"> <div className="container">
{/* SECTION TITLE */} {/* SECTION TITLE */}
@@ -182,8 +175,7 @@ class Faqs extends React.Component {
{/* GEOMETRIC OVERLAY */} {/* GEOMETRIC OVERLAY */}
<div className="bg_fixed geometric_overlay" /> <div className="bg_fixed geometric_overlay" />
</section> {/* END FAQs-2 */} </section> {/* END FAQs-2 */}
{/* DOWNLOAD-2 {/* DOWNLOAD-2 */}
============================================= */}
<section id="download-2" className="bg_whitesmoke pb-20 download-section division"> <section id="download-2" className="bg_whitesmoke pb-20 download-section division">
<div className="container white-color"> <div className="container white-color">
<div className="rel purple_gradient bg_shape_01 downloads-2-wrapper"> <div className="rel purple_gradient bg_shape_01 downloads-2-wrapper">
@@ -206,11 +198,11 @@ class Faqs extends React.Component {
<div className="col-lg-5 text-right"> <div className="col-lg-5 text-right">
<div className="stores-badge"> <div className="stores-badge">
{/* AppStore */} {/* AppStore */}
<a href="#" className="store"> <a href={process.env.REACT_APP_APPLE_LINK} className="store">
<img className="appstore" src="assets/images/appstore-white.png" alt="appstore-logo" /> <img className="appstore" src="assets/images/appstore-white.png" alt="appstore-logo" />
</a> </a>
{/* Google Play */} {/* Google Play */}
<a href="#" className="store"> <a href={process.env.REACT_APP_GOOGLE_PLAY_LINK} className="store">
<img className="googleplay" src="assets/images/googleplay-white.png" alt="googleplay-logo" /> <img className="googleplay" src="assets/images/googleplay-white.png" alt="googleplay-logo" />
</a> </a>
</div> </div>
@@ -219,12 +211,8 @@ class Faqs extends React.Component {
</div> {/* End row */} </div> {/* End row */}
</div> {/* End container */} </div> {/* End container */}
</section> {/* END DOWNLOAD-2 */} </section> {/* END DOWNLOAD-2 */}
</div> {/* END PAGE CONTENT */} </div> {/* END PAGE CONTENT */}
</div>
</div>
) )
} }
} }
+2 -2
View File
@@ -50,13 +50,13 @@ export const Testimonial = [
} }
}, },
{ {
name: 'Chelse Smith', name: 'Toks Law',
title: 'Project Management', title: 'Project Management',
desc: 'Chelsea has just moved into a new house in central Auckland, NZ so she can be closer to EVERYTHING; restaurants, bars and public transport. She loves exploring the many transit options that come with the new territory.', desc: 'Chelsea has just moved into a new house in central Auckland, NZ so she can be closer to EVERYTHING; restaurants, bars and public transport. She loves exploring the many transit options that come with the new territory.',
image: 'assets/images/team-8.jpg', image: 'assets/images/team-8.jpg',
link: { link: {
href: '#', href: '#',
domain: 'matthewanderson' domain: 'tokslaw'
} }
} }
] ]
+1 -1
View File
@@ -8,7 +8,7 @@ class SiteService {
} }
// Blog Data {Get} // Blog Data {Get}
blogData() { blogData() {
return this.getAuxEnd("/blogdata/10", null); return this.getAuxEnd("/blogdata", null);
} }
// Country Data {GET} // Country Data {GET}