Add particle js, implement in pageintro and configuration

This commit is contained in:
Morris
2018-10-03 18:56:08 +02:00
parent 915d737042
commit bf9bf50de1
4 changed files with 1791 additions and 16 deletions

View File

@@ -25,6 +25,7 @@
"prismjs": "^1.15.0", "prismjs": "^1.15.0",
"react-headroom": "^2.2.2", "react-headroom": "^2.2.2",
"react-helmet": "^5.2.0", "react-helmet": "^5.2.0",
"react-particles-js": "^2.3.0",
"react-responsive-mixin": "^0.4.0", "react-responsive-mixin": "^0.4.0",
"react-typed": "^1.0.9", "react-typed": "^1.0.9",
"serve": "^10.0.0", "serve": "^10.0.0",

View File

@@ -3,6 +3,8 @@ import React, { Component } from 'react'
import SectionIntro from './SectionIntro' import SectionIntro from './SectionIntro'
import Button from './Button' import Button from './Button'
import Particles from 'react-particles-js';
class PageIntro extends Component { class PageIntro extends Component {
componentDidMount() { componentDidMount() {
let tiltjs = require('vanilla-tilt') let tiltjs = require('vanilla-tilt')
@@ -20,6 +22,46 @@ class PageIntro extends Component {
render() { render() {
return ( return (
<section className="saburly-intro bg-saburly-light relative"> <section className="saburly-intro bg-saburly-light relative">
<Particles
params={{
particles: {
number: {
value: 47,
density: {
enable: true,
value_area: 5000
}
},
size: {
value: 1.47
},
color: {
value: "#5763ab"
},
move: {
speed: 0.77
},
line_linked: {
enable: true,
color: "#5763ab",
opacity: 0.15,
},
},
interactivity: {
events: {
onhover: {
enable: false,
}
}
},
"retina_detect": true
}}
style={{
position: 'absolute',
width: "100%",
height: "100%"
}}
/>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400.8 96.4"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400.8 96.4">
<title>bg-saburly-white</title> <title>bg-saburly-white</title>
<path <path

View File

@@ -35,6 +35,7 @@ const IndexPage = ({ ...props }) => (
siteDescription="We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out with the help of modern technologies" siteDescription="We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out with the help of modern technologies"
siteUrl="https://saburly.com" siteUrl="https://saburly.com"
/> />
<PageIntro <PageIntro
text="We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out and gain competitive advantages with the help of modern technologies." text="We are in the business of solving real-world problems with digital solutions. Our mission is to make you stand out and gain competitive advantages with the help of modern technologies."
image={ImgIntro} image={ImgIntro}
@@ -54,8 +55,7 @@ const IndexPage = ({ ...props }) => (
</PageIntro> </PageIntro>
<main> <main>
<section className="md:flex p-8 mt-10 items-center puttthemhere justify-center m-auto">
<section className="md:flex p-8 mt-10 items-center justify-center m-auto">
<div className="text-center"> <div className="text-center">
<a href="https://clutch.co/se/app-developers" target="_blank"> <a href="https://clutch.co/se/app-developers" target="_blank">
<img <img

1732
yarn.lock

File diff suppressed because it is too large Load Diff