Skip to content

Commit

Permalink
incorporated tilt effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Hachondeoro committed Jan 27, 2021
1 parent 3420126 commit 2d3e249
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 156 deletions.
19 changes: 14 additions & 5 deletions components/Product.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import React from "react";
import Tilt from "react-parallax-tilt";

const Product = (props) => {
return (
<div className="col-sm-4">
<div className="card" style={{ width: "18rem" }}>
<img
src={props.product.image.url}
className="card-img-top"
alt="shirt"
/>
<Tilt
className="m-auto"
glareEnable={true}
glareMaxOpacity={0.45}
scale={1.25}
>
<img
src={props.product.image.url}
className="card-img-top"
alt="shirt"
/>
</Tilt>
<div className="card-body">
<h5 className="card-title">{props.product.name}</h5>
<p className="card-title">$ {props.product.price}</p>
Expand Down
79 changes: 0 additions & 79 deletions components/Recharts/barchart.js

This file was deleted.

46 changes: 0 additions & 46 deletions components/Recharts/linechart.js

This file was deleted.

5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"react-dom": "16.13.1",
"react-leaflet": "^3.0.2",
"react-papaparse": "^3.11.1",
"react-parallax-tilt": "^1.4.71",
"react-redux": "^7.2.2",
"react-router-dom": "^5.2.0",
"react-select": "^3.1.0",
Expand Down
19 changes: 0 additions & 19 deletions pages/charts.js

This file was deleted.

22 changes: 15 additions & 7 deletions pages/djbistro.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Container, Row, Col } from "reactstrap";

// core components
import { djbistro } from "assets/information";
import Tilt from "react-parallax-tilt";

function DjBistro() {
return (
Expand All @@ -18,13 +19,20 @@ function DjBistro() {
<h5>{djbistro[0].description}</h5>
<br />
</Col>
<Col className="m-auto" md="7">
<img
alt="FUCKING HELL NO IMAGE"
src={require("assets/images/djbistro.jpg")}
width="100%"
/>
</Col>
<Tilt
className="m-auto"
glareEnable={true}
glareMaxOpacity={0.45}
scale={1.25}
>
<div style={{ height: "300px" }} perspective={500}>
<img
alt="FUCKING HELL NO IMAGE"
src={require("assets/images/djbistro.jpg")}
width="100%"
/>
</div>
</Tilt>
</Row>
<br />
<br />
Expand Down

0 comments on commit 2d3e249

Please sign in to comment.