diff --git a/src/components/ProjectGrid.scss b/src/components/ProjectGrid.scss index 9f1fe9a..79d7b7a 100644 --- a/src/components/ProjectGrid.scss +++ b/src/components/ProjectGrid.scss @@ -162,18 +162,19 @@ $breakpoints: (x-small: 520px, small: 760px, medium: 1100px, large: 1400px, x-la border-style: solid; background: var(--grid-element-background); - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); - transition: box-shadow 0.3s ease-in-out; + box-shadow: 0 1px 2px var(--grid-element-shadow); + transition: box-shadow 0.2s ease-in-out; } .GridElementInternal:hover { - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); + box-shadow: 0 2px 5px var(--grid-element-shadow); } h2 { font-family: "Fira Code", monospace; font-weight: 400; margin-bottom: 0px; + text-shadow: 0px 0px 1px var(--grid-element-header); color: var(--grid-element-header); line-height: normal; } diff --git a/src/components/ProjectGrid.tsx b/src/components/ProjectGrid.tsx index 8cb9c4d..6bb7195 100644 --- a/src/components/ProjectGrid.tsx +++ b/src/components/ProjectGrid.tsx @@ -21,7 +21,6 @@ import Hashicorp from "../images/HashiCorp_Logo_no_text.png"; import Bennu from "../images/bennu.gif"; import KatSite from "../images/kat-site.png"; - type GridElementImageProps = { image_url: string; image_alt: string; @@ -55,13 +54,13 @@ function SmallElement({ title, text, link, org }: GridElementProps) { ); } return ( - -
+
+

{title}

{org &&

{org}

} @@ -70,8 +69,8 @@ function SmallElement({ title, text, link, org }: GridElementProps) {

{text}

-
-
+ +
); } @@ -101,13 +100,13 @@ function SmallElementPic({ ); } return ( - -
+
+
{image_alt} @@ -117,8 +116,8 @@ function SmallElementPic({ {org &&

{org}

}

{text}

-
- + +
); } @@ -132,31 +131,10 @@ function MediumElement({ }: GridElementImageProps) { if (link === undefined) { return ( -
-
-
- {image_alt} -
-
-

{title}

- {org &&

{org}

} -

{text}

-
-
-
- ); - } - return ( - +
{image_alt} -

{title}

@@ -164,7 +142,28 @@ function MediumElement({

{text}

-
+
+ ); + } + return ( + +
+
+ {image_alt} + +
+
+

{title}

+ {org &&

{org}

} +

{text}

+
+
+
); } @@ -193,13 +192,13 @@ function LargeElementPic({ ); } return ( - -
+
+
{image_alt} @@ -209,8 +208,8 @@ function LargeElementPic({ {org &&

{org}

}

{text}

-
- + +
); } @@ -233,7 +232,7 @@ export function ProjectGrid() { }); return ( -
+

</> My Projects

@@ -247,169 +246,137 @@ export function ProjectGrid() {
diff --git a/src/vars.scss b/src/vars.scss index 91e4be2..e6df0cd 100644 --- a/src/vars.scss +++ b/src/vars.scss @@ -7,11 +7,12 @@ --grid-background: var(--background); --grid-header-background: var(--background); --grid-header-text: #F1F1F1; - --grid-element-background: #354560; + --grid-element-background: hsl(218, 24%, 25%); --grid-element-border: #6f6f6f; + --grid-element-shadow: rgba(255, 255, 255, 0.3); --grid-element-header: rgb(169 162 228 / 100%); --chainlink-icon-background: rgba(43, 43, 43, 0.3); - --link-color: #1890ff; + --link-color: var(--grid-element-header); --grid-element-subheader: darkgrey; }