mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-08 05:32:07 +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, useI18next } from "gatsby-plugin-react-i18next"
|
||||
import { graphql } from 'gatsby'
|
||||
import PropTypes from "prop-types"
|
||||
|
||||
import styles from "./friends.module.scss";
|
||||
|
||||
|
@ -19,7 +20,7 @@ query AllFriendsQuery {
|
|||
|
||||
`
|
||||
|
||||
export default function SocialPage({data}) {
|
||||
const FriendsPage = ({data}) => {
|
||||
|
||||
const {t} = useI18next();
|
||||
|
||||
|
@ -43,7 +44,7 @@ export default function SocialPage({data}) {
|
|||
{
|
||||
shuffle(data.allFriendsJson.nodes).map((friend) => {
|
||||
return (
|
||||
<div className={styles.friendProfile}>
|
||||
<div className={styles.friendProfile} key={friend.url+"#"+friend.name}>
|
||||
<div className={styles.friendImage} style={{backgroundImage: "url("+friend.imageURL+")"}}>
|
||||
<span className={styles.friendName}>{friend.name}</span>
|
||||
<span className={styles.friendTitle}>{friend.profession}</span>
|
||||
|
@ -51,7 +52,7 @@ export default function SocialPage({data}) {
|
|||
|
||||
{/*<span class="friendBio"></span>*/}
|
||||
<div className={styles.contactLinks}>
|
||||
<a className={styles.contactLink} href={friend.url} target="_blank" rel="noreferrer"><i class="fas fa-globe-europe" aria-hidden="true"></i> {friend.url}</a>
|
||||
<a className={styles.contactLink} href={friend.url} target="_blank" rel="noreferrer"><i className="fas fa-globe-europe" aria-hidden="true"></i> {friend.url}</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -64,4 +65,10 @@ export default function SocialPage({data}) {
|
|||
</section>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
FriendsPage.propTypes = {
|
||||
data: PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
export default FriendsPage;
|
Loading…
Add table
Add a link
Reference in a new issue