diff --git a/public/css/style.css b/public/css/style.css index 3ae8150..a6e95cc 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -328,22 +328,24 @@ header .intro-text { left: 50%; } #crates i.fa { - font-size: 42px; - width: 120px; - height: 120px; - padding: 40px 0; - background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%); - border-radius: 50%; + font-size: 35px; + width: 80px; + height: 15px; color: #fff; - box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05); } -#crates h3 { - font-weight: 500; + +#crates i.fa:hover { + color: #000000; +} + +#crates h4 { + font-weight: 400; padding: 5px 0; color: #fff; } #crates p { color: rgba(255, 255, 255, 0.75); + padding: 5px 0; } #crates .crate-desc { margin-bottom: 40px; diff --git a/src/components/crates.jsx b/src/components/crates.jsx index 9609fc9..42a8766 100644 --- a/src/components/crates.jsx +++ b/src/components/crates.jsx @@ -17,22 +17,46 @@ export const Crates = (props) => { } } + const githubClick = (crate) => { + //go to crate.url + console.log(crate); + if (crate.index) { + window.location.href = "#"+crate.url; + } + else { + //open a new tab + window.open(crate.github_url, "_blank"); + } + } + return (
{d.text}