Browse Source

(feat) update projects

Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
pull/1/head
Muthu Kumar 3 years ago
parent
commit
09e02033a0
Signed by: mkrhere GPG Key ID: 3FD688398897097E
  1. 6
      src/components/Container.tsx
  2. 2
      src/components/Dashed.tsx
  3. 16
      src/index.css
  4. 56
      src/pages/Projects.tsx

6
src/components/Container.tsx

@ -114,7 +114,7 @@ const Container: React.FunctionComponent<{
return ( return (
<div <div
className={css` className={css`
background: var(--background-color); background: var(--background-colour);
padding: 15rem calc(100vw / 8) 8rem calc(100vw / 8); padding: 15rem calc(100vw / 8) 8rem calc(100vw / 8);
overflow-x: hidden; overflow-x: hidden;
min-height: 100vh; min-height: 100vh;
@ -146,7 +146,7 @@ const Container: React.FunctionComponent<{
width: 5rem; width: 5rem;
height: 5rem; height: 5rem;
border-radius: 100%; border-radius: 100%;
background: var(--primary-color); background: var(--primary-colour);
z-index: 0; z-index: 0;
opacity: 0%; opacity: 0%;
@ -190,7 +190,7 @@ const Container: React.FunctionComponent<{
${arrowReversed ? "rotate: 180deg;" : ""} ${arrowReversed ? "rotate: 180deg;" : ""}
&:hover * { &:hover * {
fill: var(--primary-color); fill: var(--primary-colour);
} }
`}> `}>
<Right /> <Right />

2
src/components/Dashed.tsx

@ -4,7 +4,7 @@ import { css } from "emotion";
const Dashed: React.FunctionComponent = ({ children }) => ( const Dashed: React.FunctionComponent = ({ children }) => (
<span <span
className={css` className={css`
border-bottom: 1px dashed var(--text-color); border-bottom: 1px dashed var(--text-colour);
`}> `}>
{children} {children}
</span> </span>

16
src/index.css

@ -1,7 +1,9 @@
:root { :root {
--background-color: #000000; --background-colour: rgb(0, 0, 0);
--primary-color: #ff5555; --card-bg: rgb(18, 18, 18);
--text-color: #d3cfc9; --card-tags: rgb(34, 34, 34);
--primary-colour: rgb(255, 85, 85);
--text-colour: rgb(211, 207, 201);
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
} }
@ -16,7 +18,7 @@ body {
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
color: var(--text-color); color: var(--text-colour);
} }
code { code {
@ -40,7 +42,7 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
color: var(--primary-color); color: var(--primary-colour);
} }
h1, h1,
@ -57,9 +59,9 @@ h2 {
} }
a { a {
color: var(--text-color); color: var(--text-colour);
} }
a:hover { a:hover {
color: var(--primary-color); color: var(--primary-colour);
} }

56
src/pages/Projects.tsx

@ -8,7 +8,14 @@ const exp = [
description: "This website.", description: "This website.",
url: "https://github.com/mkrhere/pw2", url: "https://github.com/mkrhere/pw2",
cat: "web", cat: "web",
tags: ["react", "css-in-js"], tags: ["react", "vite"],
},
{
title: "hyperactive",
description: "(in dev) Fully reactive UI framework.",
url: "https://github.com/codefeathers/hyperactive",
cat: "lib",
tags: ["reactive", "ui-framework"],
}, },
{ {
title: "runtype", title: "runtype",
@ -38,13 +45,6 @@ const exp = [
cat: "bot", cat: "bot",
tags: ["telegram", "bot"], tags: ["telegram", "bot"],
}, },
{
title: "vy",
description: "(in dev) Stream-first functional utilities library.",
url: "https://github.com/MKRhere/vy",
cat: "lib",
tags: ["typescript", "stream", "functional-programming"],
},
]; ];
type Project = { type Project = {
@ -60,25 +60,20 @@ const ProjectUnit: React.FunctionComponent<Project> = ({ title, url, description
<div <div
className={css` className={css`
position: relative; position: relative;
border: 0.2rem solid var(--primary-color); background: var(--card-bg);
padding: 1rem; padding: 1.5rem;
cursor: default; cursor: default;
border-radius: 0.5rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
transition: filter; transition: all 200ms;
:hover { :hover {
filter: hue-rotate(30deg); filter: hue-rotate(30deg) invert(0.05);
transform: translateY(-0.2rem);
} }
`}> `}>
<div
className={css`
position: absolute;
border-top: 0.5rem solid var(--primary-color);
top: 0;
left: 0;
`}></div>
<a <a
className={css` className={css`
display: block; display: block;
@ -97,13 +92,32 @@ const ProjectUnit: React.FunctionComponent<Project> = ({ title, url, description
</p> </p>
<p <p
className={css` className={css`
font-weight: 800; font-weight: 500;
color: #9f9f9f; color: #9f9f9f;
font-size: 0.8rem; font-size: 0.8rem;
margin-top: auto; margin-top: auto;
`}> `}>
{tags.map(tag => ( {tags.map(tag => (
<span key={tag}>#{tag} </span> <span
key={tag}
className={css`
display: inline-block;
padding: 0.2rem 0.4rem;
background: var(--card-tags);
color: white;
border-radius: 0.2rem;
transition: all 200ms;
:hover {
transform: translateY(-0.1rem);
}
& + & {
margin-left: 0.6rem;
}
`}>
{tag}
</span>
))} ))}
</p> </p>
<span <span

Loading…
Cancel
Save