• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
farahahmed1715dev

farahahmed1715dev

my-first-val

Public
Like
my-first-val
Home
Code
5
01_script.ts
H
02_http.ts
C
03_cron.ts
E
04_email.ts
README.md
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

/** @jsxImportSource https://esm.sh/react */ import React, { useState } from "https://esm.sh/react"; import { createRoot } from "https://esm.sh/react-dom/client";

const NO_PHRASES = [ "No πŸ’”", "Pretty please? πŸ₯Ί", "But we'd be so cute together πŸ’•", "One more chance, pookie?", "Don't break my heart :(", "What about a maybe?", ];

function App() { const [noClicks, setNoClicks] = useState(0); const [isValentine, setIsValentine] = useState(false);

const yesSize = 18 + noClicks * 6;

const handleNo = () => { setNoClicks((prev) => prev + 1); };

const handleYes = () => { setIsValentine(true); };

return ( <div style={{ height: "100vh", display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", fontFamily: "Arial", textAlign: "center", }} > {!isValentine ? ( <> <p style={{ color: "#e91e63", fontStyle: "italic" }}> from Farah to Yousry πŸ’Œ

      <h1>Will you be my Valentine? πŸ’˜</h1>

      <div style={{ marginTop: 20 }}>
        <button
          onClick={handleYes}
          style={{
            fontSize: yesSize,
            padding: "10px 25px",
            marginRight: 10,
            backgroundColor: "green",
            color: "white",
            border: "none",
            borderRadius: 8,
            cursor: "pointer",
          }}
        >
          Yes
        </button>

        <button
          onClick={handleNo}
          style={{
            fontSize: 18,
            padding: "10px 25px",
            backgroundColor: "red",
            color: "white",
            border: "none",
            borderRadius: 8,
            cursor: "pointer",
          }}
        >
          {NO_PHRASES[Math.min(noClicks, NO_PHRASES.length - 1)]}
        </button>
      </div>
    </>
  ) : (
    <>
      <h1>Yaaay πŸ’–
      ΩƒΩ†Ψͺ عارفة🀭</h1>
      <p>Farah & Yousry πŸ’</p>
    </>
  )}
</div>

); }

createRoot(document.getElementById("root")!).render();.

Code
01_script.ts
H
02_http.ts
C
03_cron.ts
E
04_email.ts
README.md
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.