3Feel free to mess around with this val and make it your own :). Just click on "Fork" in the top right.
45You can change the phrases that show up as you click no, you can change the firstImg and secondImg, maybe even add more images. And you can also change the colors and any of the text on the screen!
67Have fun with it and hopefully your crush says yes hehe.
absoluteBoutiqueStoremain.tsx15 matches
3import React, { useState } from "https://esm.sh/react@18.2.0";
45// Updated Product Data with High-Quality Imagery
6const PRODUCTS = [
7// Perfumes
12category: "perfumes",
13price: 599.99,
14image: "https://maxm-imggenurl.web.val.run/elegant-black-perfume-bottle-with-gold-accents",
15description: "Elegant Essence",
16details: "A unique blend of bergamot, black pepper, and sandalwood.",
21category: "perfumes",
22price: 899.99,
23image: "https://maxm-imggenurl.web.val.run/elegant-black-perfume-bottle-with-gold-accents",
24description: "Sophisticated Fragrance for the Discerning Individual",
25details: "A complex blend of bergamot, black pepper, and sandalwood.",
30category: "perfumes",
31price: 749.50,
32image: "https://scentify.co.za/cdn/shop/files/chanel-no-5-by-chanel-443281.jpg?v=1732565602&width=1280",
33description: "Chanel No. 5 by Chanel",
34details: "Crafted with rare rose extract and subtle musk undertones.",
41category: "health",
42price: 299.99,
43image: "https://maxm-imggenurl.web.val.run/sleek-health-supplement-bottle-minimalist-design",
44description: "Premium Wellness Supplement",
45details: "Scientifically formulated with essential nutrients and antioxidants.",
50category: "health",
51price: 249.50,
52image: "https://maxm-imggenurl.web.val.run/modern-health-supplement-with-clean-packaging",
53description: "Advanced Immune Support",
54details: "Blend of natural extracts to enhance overall wellness.",
61category: "haircare",
62price: 179.99,
63image: "https://maxm-imggenurl.web.val.run/luxurious-hair-serum-in-glass-bottle",
64description: "Intensive Hair Restoration",
65details: "Nourishing formula with keratin and argan oil.",
70category: "haircare",
71price: 129.50,
72image: "https://maxm-imggenurl.web.val.run/professional-hair-treatment-sleek-packaging",
73description: "Advanced Scalp Care",
74details: "Scientifically developed to promote hair health and growth.",
81category: "sneakers",
82price: 1299.99,
83image: "https://maxm-imggenurl.web.val.run/minimalist-white-and-black-luxury-sneakers",
84description: "High-Performance Footwear",
85details: "Precision-engineered with premium materials and advanced comfort technology.",
90category: "sneakers",
91price: 899.50,
92image: "https://maxm-imggenurl.web.val.run/sleek-black-and-white-designer-sneakers",
93description: "Timeless Athletic Style",
94details: "Sophisticated design meets unparalleled comfort and durability.",
101category: "homedecor",
102price: 349.99,
103image: "https://maxm-imggenurl.web.val.run/modern-white-ceramic-vase-with-clean-lines",
104description: "Contemporary Design Accent",
105details: "Handcrafted ceramic vase with elegant, minimalist aesthetic.",
110category: "homedecor",
111price: 249.50,
112image: "https://maxm-imggenurl.web.val.run/black-and-white-luxury-throw-pillow",
113description: "Sophisticated Home Accessory",
114details: "Premium fabric with intricate textural design.",
171>
172<img
173src={product.image}
174alt={product.name}
175style={styles.productImage}
176/>
177<div style={styles.productDetails}>
310boxShadow: "0 0 15px rgba(0,0,0,0.1)",
311},
312productImage: {
313maxWidth: "100%",
314height: "250px",
upstandingPurpleHeronmain.tsx14 matches
3import React, { useState } from "https://esm.sh/react@18.2.0";
45// Updated Product Data with High-Quality Imagery
6const PRODUCTS = [
7// Perfumes
11category: "perfumes",
12price: 899.99,
13image: "https://maxm-imggenurl.web.val.run/elegant-black-perfume-bottle-with-gold-accents",
14description: "Sophisticated Fragrance for the Discerning Individual",
15details: "A complex blend of bergamot, black pepper, and sandalwood.",
20category: "perfumes",
21price: 749.50,
22image: "https://maxm-imggenurl.web.val.run/luxurious-pink-perfume-bottle-with-crystal-stopper",
23description: "Delicate Floral Essence",
24details: "Crafted with rare rose extract and subtle musk undertones.",
31category: "health",
32price: 299.99,
33image: "https://maxm-imggenurl.web.val.run/sleek-health-supplement-bottle-minimalist-design",
34description: "Premium Wellness Supplement",
35details: "Scientifically formulated with essential nutrients and antioxidants.",
40category: "health",
41price: 249.50,
42image: "https://maxm-imggenurl.web.val.run/modern-health-supplement-with-clean-packaging",
43description: "Advanced Immune Support",
44details: "Blend of natural extracts to enhance overall wellness.",
51category: "haircare",
52price: 179.99,
53image: "https://maxm-imggenurl.web.val.run/luxurious-hair-serum-in-glass-bottle",
54description: "Intensive Hair Restoration",
55details: "Nourishing formula with keratin and argan oil.",
60category: "haircare",
61price: 129.50,
62image: "https://maxm-imggenurl.web.val.run/professional-hair-treatment-sleek-packaging",
63description: "Advanced Scalp Care",
64details: "Scientifically developed to promote hair health and growth.",
71category: "sneakers",
72price: 1299.99,
73image: "https://maxm-imggenurl.web.val.run/minimalist-white-and-black-luxury-sneakers",
74description: "High-Performance Footwear",
75details: "Precision-engineered with premium materials and advanced comfort technology.",
80category: "sneakers",
81price: 899.50,
82image: "https://maxm-imggenurl.web.val.run/sleek-black-and-white-designer-sneakers",
83description: "Timeless Athletic Style",
84details: "Sophisticated design meets unparalleled comfort and durability.",
91category: "homedecor",
92price: 349.99,
93image: "https://maxm-imggenurl.web.val.run/modern-white-ceramic-vase-with-clean-lines",
94description: "Contemporary Design Accent",
95details: "Handcrafted ceramic vase with elegant, minimalist aesthetic.",
100category: "homedecor",
101price: 249.50,
102image: "https://maxm-imggenurl.web.val.run/black-and-white-luxury-throw-pillow",
103description: "Sophisticated Home Accessory",
104details: "Premium fabric with intricate textural design.",
161>
162<img
163src={product.image}
164alt={product.name}
165style={styles.productImage}
166/>
167<div style={styles.productDetails}>
300boxShadow: "0 0 15px rgba(0,0,0,0.1)",
301},
302productImage: {
303maxWidth: "100%",
304height: "250px",
artShareAppmain.tsx10 matches
56<input
57type="file"
58accept="image/*"
59onChange={(e) => setFile(e.target.files[0])}
60required
91<div key={artwork.id} className="artwork-card">
92<img
93src={artwork.imageUrl}
94alt={artwork.title}
95loading="lazy"
136title TEXT NOT NULL,
137description TEXT,
138image_path TEXT NOT NULL,
139created_at DATETIME DEFAULT CURRENT_TIMESTAMP
140)
164await sqlite.execute(
165`INSERT INTO ${KEY}_artworks_${SCHEMA_VERSION}
166(title, description, image_path) VALUES (?, ?, ?)`,
167[title, description, filePath],
168);
179try {
180const result = await sqlite.execute(
181`SELECT id, title, description, image_path
182FROM ${KEY}_artworks_${SCHEMA_VERSION}
183ORDER BY created_at DESC LIMIT 50`,
184);
185186// Convert image paths to base64 for client
187const artworks = await Promise.all(result.rows.map(async (row) => {
188const imageBuffer = await Deno.readFile(row.image_path);
189const base64Image = btoa(
190String.fromCharCode.apply(null, new Uint8Array(imageBuffer)),
191);
192195title: row.title,
196description: row.description,
197imageUrl: `data:image/jpeg;base64,${base64Image}`,
198};
199}));
23"prompt": "two column interactive markdown editor with live preview and default text to explain markdown features",
24"title": "Markdown Editor",
25"code": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Markdown Editor</title>\n <link href=\"https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css\" rel=\"stylesheet\">\n</head>\n<body class=\"bg-white\">\n <div class=\"max-w-full mx-auto p-4 pt-6 md:p-6 lg:p-8\">\n <h1 class=\"text-3xl text-center mb-4\">Markdown Editor</h1>\n <div class=\"flex flex-row\">\n <div class=\"editor p-4 rounded-lg border border-gray-200 w-full md:w-1/2\">\n <textarea id=\"editor\" class=\"w-full h-screen p-2 border border-gray-200 rounded-lg\" placeholder=\"Type your Markdown here...\"></textarea>\n </div>\n <div class=\"preview p-4 rounded-lg border border-gray-200 w-full md:w-1/2 ml-2 md:ml-4 lg:ml-8\">\n <div id=\"preview\"></div>\n </div>\n </div>\n <p class=\"text-center mt-4\">Built on <a href=\"https://cerebrascoder.com\">Cerebras Coder</a></p>\n </div>\n\n <script>\n const editor = document.getElementById('editor');\n const preview = document.getElementById('preview');\n\n // Initialize textarea with default markdown\n const defaultMarkdown = `\n# Introduction to Markdown\nMarkdown is a lightweight markup language that is easy to read and write. It is often used for formatting text in plain text editors, chat applications, and even web pages.\n\n## Headers\nHeaders are denoted by the # symbol followed by a space. The number of # symbols determines the level of the header:\n# Heading 1\n## Heading 2\n### Heading 3\n\n## Emphasis\nYou can use emphasis to make your text **bold** or *italic*:\n*Italics*\n**Bold**\n\n## Lists\nYou can use lists to organize your text:\n* Item 1\n* Item 2\n* Item 3\nOr\n1. Item 1\n2. Item 2\n3. Item 3\n\n## Links\nYou can use links to reference external resources:\n[Google](https://www.google.com)\n\n## Images\nYou can use images to add visual content:\n\n`;\n editor.value = defaultMarkdown;\n\n // Update preview on input\n editor.addEventListener('input', () => {\n const markdown = editor.value;\n const html = markdownToHtml(markdown);\n preview.innerHTML = html;\n });\n\n // Initialize preview with default markdown\n const defaultHtml = markdownToHtml(defaultMarkdown);\n preview.innerHTML = defaultHtml;\n\n // Function to convert Markdown to HTML\n function markdownToHtml(markdown) {\n // Bold\n markdown = markdown.replace(/\\*\\*(.*?)\\*\\*/g, '<b>$1</b>');\n\n // Italic\n markdown = markdown.replace(/\\*(.*?)\\*/g, '<i>$1</i>');\n\n // Links\n markdown = markdown.replace(/\\[(.*?)\\]\\((.*?)\\)/g, '<a href=\"$2\">$1</a>');\n\n // Images\n markdown = markdown.replace(/!\\[(.*?)\\]\\((.*?)\\)/g, '<img src=\"$2\" alt=\"$1\">');\n\n // Headings\n markdown = markdown.replace(/(^#{1,6} )(.*)/gm, (match, level, text) => {\n return `<h${level.length}>${text}</h${level.length}>`;\n });\n\n // Lists\n markdown = markdown.replace(/^(\\*|\\d+\\.) (.*)/gm, (match, marker, text) => {\n if (marker.startsWith('*')) {\n return `<li>${text}</li>`;\n } else {\n return `<li>${text}</li>`;\n }\n });\n\n // Line breaks\n markdown = markdown.replace(/\\n/g, '<br>');\n\n // Fix for nested lists\n markdown = markdown.replace(/<li><li>/g, '<li>');\n markdown = markdown.replace(/<\\/li><\\/li>/g, '</li>');\n\n // Wrap lists in ul\n markdown = markdown.replace(/(<li>.*<\\/li>)/g, '<ul>$1</ul>');\n\n return markdown;\n }\n </script>\n</body>\n</html>",
26"performance": {
27"tokensPerSecond": 4092.96,
cerebras_coderindex.html1 match
21<meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
22<meta property="og:type" content="website">
23<meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
24
25
3Feel free to mess around with this val and make it your own :). Just click on "Fork" in the top right.
45You can change the phrases that show up as you click no, you can change the firstImg and secondImg, maybe even add more images. And you can also change the colors and any of the text on the screen!
67Have fun with it and hopefully your crush says yes hehe.
feistyCyanWormREADME.md1 match
1# ☔️ Umbrella reminder if there's rain today
23
45## Setup
sqliteBrowserREADME.md1 match
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
45
67## Install
sqliteExplorerAppREADME.md1 match
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
45
67## Install