mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-29 02:07:39 +02:00
Use Fontsource and Lucide
Replacing Google Fonts and FontAwesome
This commit is contained in:
parent
4fb0aae042
commit
833318ba3d
12 changed files with 69 additions and 50 deletions
|
@ -19,6 +19,7 @@
|
|||
"dependencies": {
|
||||
"@babel/cli": "7.15.7",
|
||||
"@babel/plugin-transform-typescript": "7.15.4",
|
||||
"@fontsource/anonymous-pro": "^4.5.0",
|
||||
"@mdx-js/mdx": "1.6.22",
|
||||
"@mdx-js/react": "1.6.22",
|
||||
"animejs": "3.2.1",
|
||||
|
@ -42,6 +43,7 @@
|
|||
"gatsby-transformer-sharp": "^3.14.0",
|
||||
"i18next": "21.0.2",
|
||||
"locale": "0.1.0",
|
||||
"lucide-react": "^0.16.0",
|
||||
"prop-types": "15.7.2",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
|
||||
@mixin buttonBasic {
|
||||
display: block;
|
||||
display: flex;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
background: $accentColor;
|
||||
|
@ -50,6 +50,12 @@
|
|||
text-decoration: none;
|
||||
box-shadow: 0 0 33px -10px rgba($accentColor, 0.5);
|
||||
transition: box-shadow 0.25s;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
svg {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
|
@ -66,7 +72,6 @@
|
|||
@mixin homeBanner {
|
||||
background: lighten($background, 1);
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: background-color 0.25s, color 0.25s;
|
||||
|
@ -75,10 +80,6 @@
|
|||
background: darken($accentColor, 1);
|
||||
}
|
||||
|
||||
img {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
|
|
|
@ -65,15 +65,6 @@ function SEO({ description, meta, title }) {
|
|||
},
|
||||
].concat(meta)}
|
||||
>
|
||||
<script
|
||||
src="https://kit.fontawesome.com/1377f925e0.js"
|
||||
crossOrigin="anonymous"
|
||||
></script>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Roboto&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<meta
|
||||
name="battery-savings"
|
||||
content="allow-reduced-framerate"
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
@import "~@fontsource/anonymous-pro/index.css";
|
||||
@import "~@fontsource/anonymous-pro/700.css";
|
||||
@import "../variables";
|
||||
|
||||
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import PropTypes from "prop-types";
|
|||
import GitHubButton from "react-github-btn";
|
||||
|
||||
import * as styles from "./donate.module.scss";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
export const query = graphql`
|
||||
query ($language: String!) {
|
||||
|
@ -127,10 +128,7 @@ const DonatePage = (props) => {
|
|||
}
|
||||
>
|
||||
<span>Donate using PayPal</span>
|
||||
<i
|
||||
className="fas fa-fw fa-chevron-right"
|
||||
aria-hidden="true"
|
||||
></i>
|
||||
<ArrowRight/>
|
||||
</a>
|
||||
</article>
|
||||
</section>
|
||||
|
|
|
@ -6,6 +6,7 @@ import PropTypes from "prop-types";
|
|||
|
||||
import * as styles from "./friends.module.scss";
|
||||
import { GatsbyImage, getImage } from "gatsby-plugin-image";
|
||||
import { Globe2 } from "lucide-react";
|
||||
|
||||
export const query = graphql`
|
||||
query AllFriendsQuery($language: String!) {
|
||||
|
@ -122,10 +123,7 @@ const FriendsPage = ({ data }) => {
|
|||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<i
|
||||
className="fas fa-globe-europe"
|
||||
aria-hidden="true"
|
||||
></i>{" "}
|
||||
<Globe2 height={20}/>{" "}
|
||||
{friend.url}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -61,19 +61,20 @@
|
|||
.contactLink {
|
||||
transition: text-decoration 0.5s;
|
||||
text-decoration: underline dotted rgba(0, 0, 0, 0);
|
||||
padding: 6px 0 6px 25px;
|
||||
padding: 6px 0 6px 0;
|
||||
color: $textColor;
|
||||
transition: color 0.25s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
svg {
|
||||
color: $accentColor;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
color: $lightTextColor;
|
||||
}
|
||||
|
||||
> i {
|
||||
color: $accentColor;
|
||||
margin-left: -25px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ import anime from "animejs";
|
|||
import { tsParticles } from "tsparticles";
|
||||
|
||||
import * as particleConfig from "./index.particles.json";
|
||||
import { ArrowRight, AtSign, Camera, Github, Mail, MapPin, Phone } from "lucide-react";
|
||||
|
||||
export const query = graphql`
|
||||
query GetMetaAndProjects($language: String) {
|
||||
|
@ -145,7 +146,7 @@ const IndexPage = (props) => {
|
|||
href={"tel:" + meta.contactPhone}
|
||||
rel="me"
|
||||
>
|
||||
<i className="fas fa-fw fa-phone"></i>
|
||||
<Phone width={20} />
|
||||
{meta.contactPhone}
|
||||
</a>
|
||||
<a
|
||||
|
@ -153,7 +154,7 @@ const IndexPage = (props) => {
|
|||
href={"mailto:" + meta.contactEmail}
|
||||
rel="me"
|
||||
>
|
||||
<i className="far fa-fw fa-envelope"></i>
|
||||
<Mail width={20}/>
|
||||
{meta.contactEmail}
|
||||
</a>
|
||||
<a
|
||||
|
@ -162,7 +163,7 @@ const IndexPage = (props) => {
|
|||
rel="noreferrer "
|
||||
target="_blank"
|
||||
>
|
||||
<i className="fas fa-fw fa-map-marker-alt"></i>
|
||||
<MapPin width={20} />
|
||||
<Trans>homeMyLocation</Trans>
|
||||
</a>
|
||||
<a
|
||||
|
@ -171,7 +172,7 @@ const IndexPage = (props) => {
|
|||
rel="noreferrer me"
|
||||
target="_blank"
|
||||
>
|
||||
<i className="fab fa-fw fa-mastodon"></i>
|
||||
<AtSign width={20}/>
|
||||
{meta.contactMastodon}
|
||||
</a>
|
||||
<a
|
||||
|
@ -182,7 +183,7 @@ const IndexPage = (props) => {
|
|||
rel="noreferrer me"
|
||||
target="_blank"
|
||||
>
|
||||
<i className="fab fa-fw fa-github"></i>
|
||||
<Github width={20}/>
|
||||
{meta.contactGitHub}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -237,10 +238,10 @@ const IndexPage = (props) => {
|
|||
>
|
||||
<div>
|
||||
<span>
|
||||
<i className="fas fa-fw fa-camera"></i>{" "}
|
||||
<Camera/>{" "}
|
||||
<Trans>homeImageCredit</Trans>
|
||||
</span>
|
||||
<i className="fas fa-fw fa-chevron-right"></i>
|
||||
<ArrowRight/>
|
||||
</div>
|
||||
</a>
|
||||
<section className="featuredSection">
|
||||
|
@ -289,7 +290,7 @@ const IndexPage = (props) => {
|
|||
</div>
|
||||
<Link to="/projects" className={styles.seeMoreButton}>
|
||||
<Trans>seeMore</Trans>{" "}
|
||||
<i className="fas fa-fw fa-chevron-right"></i>
|
||||
<ArrowRight/>
|
||||
</Link>
|
||||
</article>
|
||||
</section>
|
||||
|
@ -298,7 +299,7 @@ const IndexPage = (props) => {
|
|||
<span>
|
||||
<Trans>donationCatchphrase</Trans>
|
||||
</span>
|
||||
<i className="fas fa-fw fa-chevron-right"></i>
|
||||
<ArrowRight/>
|
||||
</div>
|
||||
</Link>
|
||||
</Layout>
|
||||
|
|
|
@ -93,8 +93,16 @@
|
|||
.contactLink {
|
||||
transition: text-decoration 0.5s;
|
||||
text-decoration: underline dotted rgba(0, 0, 0, 0);
|
||||
padding: 6px 0 6px 25px;
|
||||
padding: 6px 0 6px 0;
|
||||
color: $textColor;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
svg {
|
||||
margin-right: 10px;
|
||||
color: $accentColor;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (pointer: coarse), (pointer: none) {
|
||||
padding-top: 15px;
|
||||
|
@ -167,6 +175,10 @@
|
|||
.donationSection,
|
||||
.hireMeSection {
|
||||
@include homeBanner;
|
||||
|
||||
svg {
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.creditSection {
|
||||
|
@ -178,8 +190,13 @@
|
|||
font-size: 1.2em;
|
||||
color: white;
|
||||
|
||||
> span > i {
|
||||
line-height: 15px !important;
|
||||
> span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
svg {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import PropTypes from "prop-types";
|
|||
import * as styles from "./project.module.scss";
|
||||
import { MDXRenderer } from "gatsby-plugin-mdx";
|
||||
import { GatsbyImage } from "gatsby-plugin-image";
|
||||
import { ExternalLink, Github } from "lucide-react";
|
||||
|
||||
export const query = graphql`
|
||||
query GetProject($urlname: String!, $lang: String!, $language: String!) {
|
||||
|
@ -100,10 +101,7 @@ const ProjectTemplate = ({ data }) => {
|
|||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<i
|
||||
className="fab fa-github"
|
||||
aria-hidden="true"
|
||||
></i>{" "}
|
||||
<Github height={15}/>{" "}
|
||||
<Trans>projectViewGitHub</Trans>
|
||||
</a>
|
||||
) : null}
|
||||
|
@ -113,10 +111,7 @@ const ProjectTemplate = ({ data }) => {
|
|||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<i
|
||||
className="fas fa-external-link-alt"
|
||||
aria-hidden="true"
|
||||
></i>{" "}
|
||||
<ExternalLink height={15}/>{" "}
|
||||
<Trans>projectViewWebsite</Trans>
|
||||
</a>
|
||||
) : null}
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -1131,6 +1131,11 @@
|
|||
minimatch "^3.0.4"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
"@fontsource/anonymous-pro@^4.5.0":
|
||||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@fontsource/anonymous-pro/-/anonymous-pro-4.5.0.tgz#cc618eb2692ed0414f45c5e1c2ab1efeb5ca10d7"
|
||||
integrity sha512-4+JsJ0J/0NZvqiKv6TtkG5fCrs5RNSylAQ4vEifCRTlIZCWUDAjEmRz6s0DdRicTSLaOBoAUIp7efufWmHbpmw==
|
||||
|
||||
"@gatsbyjs/reach-router@^1.3.6":
|
||||
version "1.3.6"
|
||||
resolved "https://registry.yarnpkg.com/@gatsbyjs/reach-router/-/reach-router-1.3.6.tgz#4e8225836959be247890b66f21a3198a0589e34d"
|
||||
|
@ -7979,6 +7984,11 @@ lru-queue@^0.1.0:
|
|||
dependencies:
|
||||
es5-ext "~0.10.2"
|
||||
|
||||
lucide-react@^0.16.0:
|
||||
version "0.16.0"
|
||||
resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.16.0.tgz#38573a3e287712cb1d56aa6dd46e47e3323ba8f4"
|
||||
integrity sha512-R5chQb550S+znoZPAJTHRqAOq6NiMCr4Pm8C0irPBNPEjx3Oarvqt+dbiFu4DWaSR2bMh2iOj0IgtOepoPDdaQ==
|
||||
|
||||
make-dir@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
|
||||
|
|
Loading…
Add table
Reference in a new issue