From 29011c8f48be2410e68d5d06edab24ef8f989808 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 14 Jul 2025 18:21:13 -0400 Subject: [PATCH 1/8] added new method to s3clientconfig struct, added from_env to be default --- backend/storage/src/services/aws.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/backend/storage/src/services/aws.rs b/backend/storage/src/services/aws.rs index aae82d0..237b088 100644 --- a/backend/storage/src/services/aws.rs +++ b/backend/storage/src/services/aws.rs @@ -18,6 +18,22 @@ pub struct S3Client { } impl S3ClientConfig { + pub fn new( + access_key: &str, + secret_key: &str, + endpoint: &str, + bucket: &str, + region: &str, + ) -> Result> { + Ok(S3ClientConfig { + access_key: access_key.to_owned(), + secret_key: secret_key.to_owned(), + endpoint: endpoint.to_owned(), + bucket: bucket.to_owned(), + region: region.to_owned(), + }) + } + pub fn from_env() -> Result> { Ok(S3ClientConfig { access_key: env::var("S3_ACCESS_KEY") @@ -99,3 +115,9 @@ impl ObjectStorageClient for S3Client { todo!("not impl") } } + +impl Default for S3ClientConfig { + fn default() -> Self { + S3ClientConfig::from_env().unwrap() + } +} From 13d022d44c46f26c9e02d463b98e174093a6d9eb Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 14 Jul 2025 20:09:10 -0400 Subject: [PATCH 2/8] adjusted css --- frontend/components/Footer.tsx | 2 +- frontend/components/PostCard.tsx | 39 ++++++++++++++++++------------ frontend/components/PostHeader.tsx | 2 +- frontend/islands/ProjectCard.tsx | 4 +-- frontend/routes/contact/index.tsx | 15 ++++++------ frontend/routes/index.tsx | 2 +- frontend/routes/projects/index.tsx | 8 +++++- 7 files changed, 44 insertions(+), 28 deletions(-) diff --git a/frontend/components/Footer.tsx b/frontend/components/Footer.tsx index efb8e5c..a6fa7a3 100644 --- a/frontend/components/Footer.tsx +++ b/frontend/components/Footer.tsx @@ -2,7 +2,7 @@ import * as hi from "jsr:@preact-icons/hi2"; export default function Footer() { return ( -