Skip to content

Commit

Permalink
Merge pull request #13 from joswayski/testes
Browse files Browse the repository at this point in the history
Adding testimonial
  • Loading branch information
joswayski authored Jul 7, 2024
2 parents d886864 + 60a5cac commit 2503dda
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ async fn check_for_key(
let is_poor = !&api_key.starts_with("enterprise-");

if is_poor && !cache.lock().await.contains(&api_key) {
return Err((StatusCode::UNAUTHORIZED, "Get a valid key first dummy").into_response());
return Err((
StatusCode::UNAUTHORIZED,
"No way, Jose. Fix your API key. Figure it out.",
)
.into_response());
}

req.extensions_mut().insert(api_key);
Expand Down
9 changes: 9 additions & 0 deletions services/web/app/components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,19 @@ export const Hero = () => {
{loading ? "Creating... (fake delay)" : `Get API Key`}
</button>
</Form>

{/* <div className="inline-flex justify-center items-center gap-x-3 text-center bg-gradient-to-tl from-teal-600 to-green-600 hover:from-cyan-600 hover:to-emerald-600 border border-transparent text-white text-sm font-medium rounded-full py-3 px-4 ">
Get API Key
</div> */}
</div>
<div className="flex justify-center mt-8">
<img
src="testimonial.png"
height={100}
width={500}
alt="@ctjlewis on X: you’re welcome. best database platform i’ve ever used! kept my grandpa’s pacemaker going."
></img>
</div>
</div>
);
};
Binary file added services/web/public/testimonial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2503dda

Please sign in to comment.