use case config applied
This commit is contained in:
@@ -4,6 +4,7 @@ function getConfig() {
|
|||||||
return [
|
return [
|
||||||
|
|
||||||
{
|
{
|
||||||
|
"site_name" : 'WrenchBoard',
|
||||||
"dash_url": 'https://dashboard.wrenchboard.com',
|
"dash_url": 'https://dashboard.wrenchboard.com',
|
||||||
"dash_url_login": "https://dashboard.wrenchboard.com/login",
|
"dash_url_login": "https://dashboard.wrenchboard.com/login",
|
||||||
"dash_url_signup": "https://dashboard.wrenchboard.com/signup",
|
"dash_url_signup": "https://dashboard.wrenchboard.com/signup",
|
||||||
|
|||||||
@@ -2,8 +2,11 @@ import React, { useEffect } from 'react';
|
|||||||
import logo from '../../assets/images/wrenchboard.png';
|
import logo from '../../assets/images/wrenchboard.png';
|
||||||
import StickyMenu from '../../lib/StickyMenu';
|
import StickyMenu from '../../lib/StickyMenu';
|
||||||
import Navigation from '../Navigation';
|
import Navigation from '../Navigation';
|
||||||
|
import getConfig from './../../Config/config'
|
||||||
|
|
||||||
|
|
||||||
function HeaderNews({ action }) {
|
function HeaderNews({ action }) {
|
||||||
|
var site = getConfig()[0];
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
StickyMenu();
|
StickyMenu();
|
||||||
});
|
});
|
||||||
@@ -16,7 +19,7 @@ function HeaderNews({ action }) {
|
|||||||
<div className="col-lg-2 col-md-4 col-sm-5 col-6 order-1 order-sm-1">
|
<div className="col-lg-2 col-md-4 col-sm-5 col-6 order-1 order-sm-1">
|
||||||
<div className="appie-logo-box">
|
<div className="appie-logo-box">
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<img src={logo} alt="" />
|
<img src={logo} alt={site.site_name} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -27,10 +30,10 @@ function HeaderNews({ action }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="col-lg-4 col-md-7 col-sm-6 col-6 order-2 order-sm-3">
|
<div className="col-lg-4 col-md-7 col-sm-6 col-6 order-2 order-sm-3">
|
||||||
<div className="appie-btn-box text-right">
|
<div className="appie-btn-box text-right">
|
||||||
<a className="login-btn" href="#">
|
<a className="login-btn" href={site.dash_url_login}>
|
||||||
<i className="fal fa-user"></i> Login
|
<i className="fal fa-user"></i> Login
|
||||||
</a>
|
</a>
|
||||||
<a className="main-btn ml-30" href="#">
|
<a className="main-btn ml-30" href={site.dash_url_signup}>
|
||||||
Get Started
|
Get Started
|
||||||
</a>
|
</a>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -13,40 +13,41 @@ function UseCase() {
|
|||||||
<>
|
<>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
{
|
{
|
||||||
UseCaseDataResult.map(i=>{
|
UseCaseDataResult.map(i => {
|
||||||
var blgImg = i.meta_value!=null?"../../assets/images/"+ i.meta_value : blogImg1;
|
var blgImg = i.meta_value != null ? "../../assets/images/" + i.meta_value : blogImg1;
|
||||||
|
|
||||||
console.log("AA",blgImg);
|
console.log("AA", blgImg);
|
||||||
blgImg=blogImg1;
|
blgImg = blogImg1;
|
||||||
console.log("BB",blgImg);
|
console.log("BB", blgImg);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="col-lg-4">
|
<div className="col-lg-4">
|
||||||
<div className="post-item-1">
|
<div className="post-item-1">
|
||||||
|
|
||||||
{<img src={blgImg} alt={i.title} />}
|
{<img src={blgImg} alt={i.title} />}
|
||||||
{/* <img src={`../assets/images/${i.meta_value}`} /> */}
|
{/* <img src={`../assets/images/${i.meta_value}`} /> */}
|
||||||
<div className="b-post-details">
|
<div className="b-post-details">
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<a href={dashboardUrl}>
|
<a href={dashboardUrl}>
|
||||||
{i.title}
|
{i.title}
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<a className="read-more" href={dashboardUrl}>
|
<a className="read-more" href={dashboardUrl}>
|
||||||
Learn more<i className="fal fa-arrow-right"></i>
|
Learn more<i className="fal fa-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
)
|
||||||
</div>
|
|
||||||
|
|
||||||
)
|
})
|
||||||
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/*
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-lg-12">
|
<div className="col-lg-12">
|
||||||
<div className="bisylms-pagination">
|
<div className="bisylms-pagination">
|
||||||
@@ -58,6 +59,8 @@ function UseCase() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
*/}
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user