Skip to content

Commit

Permalink
Fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuotidem committed Nov 27, 2024
1 parent b30fb05 commit 5945feb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

+++
title = 'Tutorial: Create a FastHTML app that runs on AWS Lambda'
slug= "fasthtml-aws-lambda-tutorial"
Expand All @@ -20,7 +21,7 @@ FastHTML is here to help you build your dreams without having to learn Javascrip

### Okay, I'm interested, tell me a little more

![Sample Code showing how to create a Table in FastHTML](src/assets/images/fasthtml.png)
![Sample Code showing how to create a Table in FastHTML](./fasthtml.png)

This example cribbed from the FastHTML homepage shows a table implemented fully in Python. FastHTML maps various HTML elements to their equivalent component forms in Python, allowing you describe your application in Python. And then using the magic of htmx, it converts these into HTML and CSS that gets sent to the browser.
For the pedants in the room, yes, at the end of the day, there's Javascript involved, but that comes from the htmx library, and you don't have to worry about or interact with it. And fear not, if you want to bring in javascript at some point, you can.
Expand Down Expand Up @@ -333,13 +334,13 @@ To run locally, hit F5 and it will run the application without Docker. If you'd
Docker, change the target on the debug extension to Docker: Python - FastHTML and hit F5. Make any changes
you like in `main.py` and see them reflected instantly.

![Image of Visual Studio Code IDE showing how to switch the debugging target in the debug extension](src/assets/images/fasthtmldocker.png)
![Image of Visual Studio Code IDE showing how to switch the debugging target in the debug extension](./fasthtmldocker.png)


So back to our original goal, after testing locally, once you're ready to deploy, run `terraform plan`, review your plan, and then `terraform apply`.
You should get back your newly deployed lambda function's url. Enjoy your new FastHTML app!

![Image of the FastHTML app running in Firefox browser](src/assets/images/fasthtmllambda.png)
![Image of the FastHTML app running in Firefox browser](./fasthtmllambda.png)

#### Does serving a FastHTML app on AWS Lambda work beyond a HelloWorld app?
I don't know, I haven't got that far. I do plan to build something more interesting on FastHTML to see
Expand Down
15 changes: 3 additions & 12 deletions content/blog/free-svgs-for-presentations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,13 @@ date = "2024-10-07"
tags = ["Presentations", "SVG"]
+++

---
title: 'Where to get free svgs for presentations'
description: 'When you need to channel your inner management consultant but you have zero design skills'
pubDate: 'Oct 07 2024'
heroImage: '../../assets/images/banner.jpg'
category: 'Operations'
tags: ['SVG', 'Presentations']
---

**You can get excellent SVG's at https://www.svgrepo.com/**
**You can get excellent SVG's at [svgrepo](https://www.svgrepo.com/)**

Sometimes, you gotta make a slide deck. And you need icons or vectors to make your presentation come alive.
This article was going to be about using prompting and chatgpt to get the svg you need and validating and
downloading it using https://www.svgviewer.dev/svg-to-png.
downloading it using [svgviewer.dev](https://www.svgviewer.dev/svg-to-png).

You can of course still absolutely do that. But before you do, check https://www.svgrepo.com/ first.
You can of course still absolutely do that. But before you do, check [svgrepo.com](https://www.svgrepo.com/) first.
Everything you need might be there already, under an MIT License, and with no one showing you premium
content while you just want to find free assets.

Expand Down

0 comments on commit 5945feb

Please sign in to comment.