mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
- implement screenshots
- implement OG tags
This commit is contained in:
93
src/components/landing/Screenshots.js
Normal file
93
src/components/landing/Screenshots.js
Normal file
@ -0,0 +1,93 @@
|
||||
import React from 'react';
|
||||
import { useStaticQuery, graphql } from 'gatsby';
|
||||
import GatsbyImage from 'gatsby-image';
|
||||
import styles from './Screenshots.module.css';
|
||||
|
||||
const Screenshots = () => {
|
||||
const screenshots = useStaticQuery(graphql`
|
||||
query {
|
||||
screen1: file(relativePath: { eq: "screenshots/screen-1.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
screen2: file(relativePath: { eq: "screenshots/screen-2.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
screen3: file(relativePath: { eq: "screenshots/screen-3.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
screen4: file(relativePath: { eq: "screenshots/screen-4.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
screen5: file(relativePath: { eq: "screenshots/screen-5.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
screen6: file(relativePath: { eq: "screenshots/screen-6.png" }) {
|
||||
childImageSharp {
|
||||
fluid(maxWidth: 800) {
|
||||
...GatsbyImageSharpFluid
|
||||
}
|
||||
fixed(width: 360) {
|
||||
...GatsbyImageSharpFixed
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
return (
|
||||
<div className="mt-24 mb-4">
|
||||
<h4 className="text-xl uppercase font-bold mb-8">Screenshots</h4>
|
||||
|
||||
<div className="flex w-full overflow-x-scroll">
|
||||
{Object.keys(screenshots).map((x) => (
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={styles.screenshot}
|
||||
key={screenshots[x].childImageSharp.fluid.src}
|
||||
href={screenshots[x].childImageSharp.fluid.src}
|
||||
>
|
||||
<GatsbyImage fixed={screenshots[x].childImageSharp.fixed} />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Screenshots;
|
||||
Reference in New Issue
Block a user