This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactHtmlParser from "react-html-parser"; | |
import Slider from "react-slick"; | |
const Intro = ({data}) => { | |
if(data){ | |
var slides = data.slider.map((val, index) => ( | |
<li key={index}> | |
<div className="row"> | |
<div className="col full"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const Header = ({data}) => { | |
if(data){ | |
var nav = data.nav.map((val, index) => ( | |
<li key={index}> | |
<a href={val.link} title=""> | |
{val.title} | |
</a> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"header":{ | |
"nav":[ | |
{ | |
"link":"#intro", | |
"title":"Home-1" | |
}, | |
{ | |
"link": "#services", | |
"title": "Services-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import $ from 'jquery'; | |
import Header from './Components/Header'; | |
import CallToAction from "./Components/CallToAction"; | |
import About from './Components/About'; | |
import Intro from './Components/Intro'; | |
import Portfolio from "./Components/Portfolio"; | |
import Journal from "./Components/Journal"; | |
import Services from "./Components/Services"; | |
import Footer from './Components/Footer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const Map = () => { | |
return ( | |
<section > | |
<iframe | |
src="here_is_your_GOOGLE_MAP_URL" | |
width="100%" | |
height="450" | |
title="Location" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Header from './Components/Header'; | |
import CallToAction from "./Components/CallToAction"; | |
import About from './Components/About'; | |
import Intro from './Components/Intro'; | |
import Portfolio from "./Components/Portfolio"; | |
import Journal from "./Components/Journal"; | |
import Services from "./Components/Services"; | |
import Footer from './Components/Footer'; | |
import Map from './Components/Map'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
function App() { | |
return ( | |
<div> | |
My App | |
</div> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "your-project-name", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"react": "^16.8.6", | |
"react-dom": "^16.8.6", | |
"react-scripts": "2.1.8" | |
}, | |
"scripts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===> For Null | |
const isNull = (val) => !val && typeof val === 'object'; | |
isNull(null); // true | |
// ===> For undifined | |
const isUndefined = (value) => typeof value === 'undefined'; | |
isUndefined(undefined); // true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"show_definitions": false, | |
"auto_complete": false, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme", | |
"fold_buttons": false, | |
"font_size": 13, | |
"highlight_line": true, | |
"indent_guide_options": | |
[ |
NewerOlder