-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
love you
- Loading branch information
Showing
23 changed files
with
620 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, | ||
settings: { react: { version: '18.2' } }, | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Anish | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 🥰 Be My Valentine? 🥰 | ||
|
||
![Project Image](https://i.imgur.com/8q884zI.png) | ||
|
||
Welcome to the most adorable project you've ever seen! This is a special React application designed to ask that special someone: "Will you be my Valentine?". | ||
|
||
## 💖 What's Inside? 💖 | ||
[Link to site](https://formyvalentine.netlify.app) | ||
|
||
This project is built with love using React and Vite. It features a cute and interactive UI that playfully nudges the user towards saying "Yes" to being your Valentine. | ||
|
||
## 🎁 Features 🎁 | ||
|
||
- Cute and playful animations | ||
- Interactive buttons that respond to user interaction | ||
- Lovely images and heartwarming messages | ||
|
||
## 🚀 Getting Started 🚀 | ||
|
||
To get started with this project, follow these steps: | ||
|
||
1. Clone the repository | ||
2. Install the dependencies with `npm/pnpm/bun install` | ||
3. Start the development server with `npm/pnpm/bun run dev` | ||
|
||
Now you're ready to ask the big question! | ||
|
||
## 💕 Made with Love 💕 | ||
|
||
This project was made with love by [Anish](https://github.com/xeven777). Feel free to use it to ask your own special someone to be your Valentine! | ||
|
||
## 💌 Feedback and Contributions 💌 | ||
|
||
Feedback and contributions are always welcome! Feel free to open an issue or submit a pull request. | ||
|
||
Happy Valentine's Day! 💘 | ||
--- | ||
<img src="https://widgetbite.com/stats/Xeven777" alt="watching_count" /> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="Will you be my Valentine?🥹❤️" /> | ||
<meta name="author" content="Anish" /> | ||
<meta name="msvalidate.01" content="D919EEC68AFB633DFFC35FA2609D73A8" /> | ||
<meta name="robots" content="index, follow" /> | ||
<meta name="og:title" content="Be my Valentine?❤️" /> | ||
<meta name="og:description" content="Will you be my Valentine?🥹❤️" /> | ||
<meta name="og:image" content="https://i.imgur.com/8q884zIl.png" /> | ||
<meta name="og:url" content="https://formyvalentine.netlify.app/" /> | ||
<meta name="og:site_name" content="Be my Valentine?❤️" /> | ||
<meta name="og:type" content="website" /> | ||
<meta name="twitter:title" content="Be my Valentine?❤️" /> | ||
<meta name="twitter:description" content="Will you be my Valentine?🥹❤️" /> | ||
<meta name="twitter:image" content="https://i.imgur.com/8q884zIl.png" /> | ||
<meta name="twitter:url" content="https://formyvalentine.netlify.app/" /> | ||
<meta name="twitter:creator" content="@xevenbiswas" /> | ||
<title>Be my Valentine?</title> | ||
<link rel="icon" type="image/x-icon" href="/favicon.ico"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<script type="text/javascript"> | ||
(function(c,l,a,r,i,t,y){ | ||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; | ||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; | ||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); | ||
})(window, document, "clarity", "script", "kwx3exx6k9"); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "valentine", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.43", | ||
"@types/react-dom": "^18.2.17", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"autoprefixer": "^10.4.17", | ||
"eslint": "^8.55.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | ||
"postcss": "^8.4.33", | ||
"tailwindcss": "^3.4.1", | ||
"vite": "^5.0.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import { useState } from "react"; | ||
import lovesvg from "./assets/All You Need Is Love SVG Cut File.svg"; | ||
import lovesvg2 from "./assets/Love In The Air SVG Cut File.svg"; | ||
|
||
export default function Page() { | ||
const [noCount, setNoCount] = useState(0); | ||
const [yesPressed, setYesPressed] = useState(false); | ||
const yesButtonSize = noCount * 20 + 16; | ||
|
||
const handleNoClick = () => { | ||
setNoCount(noCount + 1); | ||
}; | ||
|
||
const getNoButtonText = () => { | ||
const phrases = [ | ||
"No", | ||
"Are you sure?", | ||
"Really sure?", | ||
"Think again!", | ||
"Last chance!", | ||
"Surely not?", | ||
"You might regret this!", | ||
"Give it another thought!", | ||
"Are you absolutely certain?", | ||
"This could be a mistake!", | ||
"Have a heart!", | ||
"Don't be so cold!", | ||
"Change of heart?", | ||
"Wouldn't you reconsider?", | ||
"Is that your final answer?", | ||
"You're breaking my heart ;(", | ||
"Is that your final answer?", | ||
"You're breaking my heart ;(", | ||
"Plsss? :( You're breaking my heart", | ||
]; | ||
|
||
return phrases[Math.min(noCount, phrases.length - 1)]; | ||
}; | ||
|
||
return ( | ||
<div className="overflow-hidden flex flex-col items-center justify-center pt-4 h-screen -mt-16 selection:bg-rose-600 selection:text-white text-zinc-900"> | ||
{yesPressed ? ( | ||
<> | ||
<img src="https://media.tenor.com/gUiu1zyxfzYAAAAi/bear-kiss-bear-kisses.gif" /> | ||
<div className="text-4xl md:text-6xl font-bold my-4"> | ||
Ok Yayyyyy!!! | ||
</div> | ||
</> | ||
) : ( | ||
<> | ||
<img | ||
src={lovesvg} | ||
className="fixed animate-pulse top-10 md:left-24 left-6 md:w-40 w-28" | ||
/> | ||
<img | ||
src={lovesvg2} | ||
className="fixed bottom-16 -z-10 animate-pulse md:right-24 right-10 md:w-40 w-32" | ||
/> | ||
<img | ||
className="h-[230px] rounded-lg shadow-lg" | ||
src="https://gifdb.com/images/high/cute-Love-bear-roses-ou7zho5oosxnpo6k.gif" | ||
/> | ||
<h1 className="text-4xl md:text-6xl my-4 text-center"> | ||
Will you be my Valentine? | ||
</h1> | ||
<div className="flex flex-wrap justify-center gap-2 items-center"> | ||
<button | ||
className={`bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg mr-4`} | ||
style={{ fontSize: yesButtonSize }} | ||
onClick={() => setYesPressed(true)} | ||
> | ||
Yes | ||
</button> | ||
<button | ||
onClick={handleNoClick} | ||
className=" bg-rose-500 hover:bg-rose-600 rounded-lg text-white font-bold py-2 px-4" | ||
> | ||
{noCount === 0 ? "No" : getNoButtonText()} | ||
</button> | ||
</div> | ||
</> | ||
)} | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
||
const Footer = () => { | ||
return ( | ||
<a | ||
className="fixed bottom-2 right-2 backdrop-blur-md opacity-80 hover:opacity-95 border p-1 rounded border-rose-300" | ||
href="https://github.com/Xeven777/valentine" | ||
target="__blank" | ||
> | ||
Made with{" "} | ||
<span role="img" aria-label="heart"> | ||
❤️ | ||
</span> | ||
</a> | ||
); | ||
}; |
Oops, something went wrong.