From 93a29dfb32cd740af20bbddba004a62af3229ea5 Mon Sep 17 00:00:00 2001 From: Alexis Werefox Date: Thu, 14 Oct 2021 04:00:25 +0000 Subject: [PATCH] Updated partner profile theme, other themes. --- src/info/components/home-page.js | 3 + src/info/components/identity-card.js | 4 +- src/info/components/partner-card.js | 79 ++++++++++++------------- src/info/components/testimonial-card.js | 5 +- src/info/tailwind.config.js | 4 +- 5 files changed, 48 insertions(+), 47 deletions(-) diff --git a/src/info/components/home-page.js b/src/info/components/home-page.js index 7b70cf6..0f0605c 100644 --- a/src/info/components/home-page.js +++ b/src/info/components/home-page.js @@ -16,6 +16,9 @@ export default function HomePage({ page_title, card_title, children }) { + {children} diff --git a/src/info/components/identity-card.js b/src/info/components/identity-card.js index 602b5ca..0086c99 100644 --- a/src/info/components/identity-card.js +++ b/src/info/components/identity-card.js @@ -32,7 +32,9 @@ export default function IdentityCard({ {title}

- {children} +
+ {children} +
); diff --git a/src/info/components/partner-card.js b/src/info/components/partner-card.js index 69d28a2..9008a86 100644 --- a/src/info/components/partner-card.js +++ b/src/info/components/partner-card.js @@ -1,4 +1,5 @@ import Link from "next/link"; +import Image from "next/image"; export function validURL(str) { var pattern = new RegExp( @@ -17,14 +18,16 @@ export function renderPossibleURLField(field) { if (validURL(field)) { return ( - - {field} + +
+ {field} +
); } else { return ( -
+
{field}
); @@ -38,48 +41,40 @@ export default function PartnerCard({ src, alt, url, fields, bio, user }) { const biodict = Object.assign({}, bioarray); return ( -
+
- -
- {" "} - {alt}{" "} -
-
- {" "} -
-
-
- {Object.keys(fields).map((field) => ( - <> - {renderPossibleURLField(field)} - {renderPossibleURLField(fields[field])} - - ))} -
-
-
- {Object.keys(biodict).map((bio) => ( -

- {biodict[bio] == "" ?
: biodict[bio]} -

- ))} -

- {"- "} - - {`@${user}`} - -

+ +
+
+ {alt} +
+
+
+ {Object.keys(biodict).map((bio) => ( +
+ {biodict[bio] == "" ?
: biodict[bio]} +
+ ))} + {`- @${user}`} +
-
+ + +
+ {Object.keys(fields).map((field) => ( +
+
{renderPossibleURLField(field)}
+
+ {renderPossibleURLField(fields[field])} +
+
+ ))}
); diff --git a/src/info/components/testimonial-card.js b/src/info/components/testimonial-card.js index d7838a2..c3788c0 100644 --- a/src/info/components/testimonial-card.js +++ b/src/info/components/testimonial-card.js @@ -8,13 +8,14 @@ export default function TestimonialCard({ src, alt, url, innerText, user }) { const testimonialdict = Object.assign({}, testimonialarray); return ( -