β β β We just submitted the new AI-powered edgarallan.com to the website experience category of the Webflow Awards. Do you want a sneak peak? Start with this Twitter thread and reply to this email if you want the link.
β Community library scriptsπ Click Something When Pressing ESC Keyβ ποΈ Set Hidden Input Value From URL Parametersβ π» Hide element if collection is emptyβ Scripts from @CoreyGMoen. β Product Updatesπ Team permissions and function importing updates are almost done. Expect these new features next week. β -- Javascript 101: Work with the OpenAI APIWe soft launched a AI-heavy website. It takes a user's prompt and returns pre-written content that most closely matches the user's prompt. The AI is the router. The AI also responds with something short to introduce the user to the content. As AI becomes more and more ubiquitous, you will likely find use cases where you want to include AI. Unfortunately, this is not as simple as sending a fetch request to the OpenAI API. But, with a bit of help from a Cloudflare worker, you can add AI to your website. Let's walk through how we accomplished this. Prerequisites
Step 1: Set Up Cloudflare Worker
Step 2: Create the Webpage
β β β -- Your projects, supported by SlaterHere is a peak of the new edgarallan.com website. π Happy coding! π€ the Slater Team β If Slater helps you create better websites, please support the team behind it.
|
Slater resources, updates and community activity
Do you get confused when undoing (cmd + z) in Slater? We auto-format your code on save. The auto-formatting updates your code, and those updates get pushed into the undo stack. You can now improve your workflow by formatting the code when you chooseβnot just on save. To gain more control over when your code formats: Turn off auto-format code in the Code Editor Settings Use cmd + shift + f to format your code We added a handful of other improvements: Console logs and debuggers are now...
Last week, we announced that CSS updates were on the wayβand now they're here! You can now generate CSS files just as quickly and easily as JS files. In the video below, we give a quick demo of the new functionality. If you have a Smart Script loaded in your project, you can instantly add CSS. In the demo, we also show how to add CSS in the Webflow designer. Give it a try and let us know what you're building! Community Library ποΈ Text Highlight ColorCSS code for custom text selection. π °...
Do you use Slater for CSS? CSS support in Slater has always been somewhat of an afterthoughtβJavaScript is our love language! But sometimes, you need a simple way to add CSS to your project. Maybe you want to write a complex grid or use a CSS property that Webflow doesn't support. That's why we've decided to make CSS a first-class citizen. We considered launching the new CSS functionality today, but we want to test it a bit more. Expect it early next week. To prepare for the launch, let's...