mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-11 07:02:01 +02:00
Lint and cleanup code
This commit is contained in:
parent
b16262025a
commit
a17f9b2b61
17 changed files with 755 additions and 185 deletions
|
@ -2,6 +2,7 @@ import React from "react"
|
|||
import Layout from "../layouts/default";
|
||||
import { Trans, Link, useI18next } from "gatsby-plugin-react-i18next"
|
||||
import { graphql } from 'gatsby'
|
||||
import PropTypes from "prop-types"
|
||||
|
||||
import styles from "./projects.module.scss";
|
||||
|
||||
|
@ -25,7 +26,7 @@ query GetProjects($language: String) {
|
|||
}
|
||||
`
|
||||
|
||||
export default function ProjectsPage({data}) {
|
||||
const ProjectsPage = ({data}) => {
|
||||
|
||||
const {t} = useI18next();
|
||||
return (
|
||||
|
@ -39,7 +40,7 @@ export default function ProjectsPage({data}) {
|
|||
<div className={styles.projectList}>
|
||||
{data.allProjectsJson.nodes.map((project) => {
|
||||
return (
|
||||
<div className={styles.projectCard}>
|
||||
<div className={styles.projectCard} key={project.lang+project.urlname}>
|
||||
{/*<div className="projectCardActivityIndicator activityIndicatorBlue">Live</div>*/}
|
||||
<div className={styles.projectCardImage} style={{ backgroundImage: "url("+project.image.childImageSharp.resize.src+")" }}>
|
||||
<div className={styles.projectCardMeta}>
|
||||
|
@ -61,4 +62,10 @@ export default function ProjectsPage({data}) {
|
|||
</section>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
ProjectsPage.propTypes = {
|
||||
data: PropTypes.object
|
||||
}
|
||||
|
||||
export default ProjectsPage;
|
Loading…
Add table
Add a link
Reference in a new issue