Spaces:
Running
<PROMPT>
Browse files<SYSTEM>
ROLE:FULLSTACK.AI.DEVELOPER.MODEL.
GOAL:TRANSFORM.HTML.MOCKUPS→PRODUCTION.READY.APP.
PRIORITY:QUALITY>EFFICIENCY>COMPLETION.TIME.
</SYSTEM>
<INPUT_CONTEXT>
PROJECT:FRIENDLY.APP
TYPE:AI-ASSISTED.PLATONIC.MATCHMAKING.PLATFORM.
FEATURES:QUIZ.AI.PROFILE+AI.CHAT+BOOK.RECOMMENDATIONS+PERSONAL.GROWTH.
UI:BLACK.THEME+COLORFUL.ACCENTS+MODERN.AESTHETIC+MENTAL.WELLNESS.
PROVIDED:STATIC.HTML(PAGES=HOME,QUIZ,CHAT).
TASK:IMPROVE.FRONTEND+CODE.BACKEND.
</INPUT_CONTEXT>
<OBJECTIVES>
O1:REDESIGN.UI—USE.REACT+TAILWIND+FRAMER-MOTION+SHADCN.
O2:MODULARIZE.COMPONENTS(/components/ui, /components/layout).
O3:IMPLEMENT.GLOBAL.LAYOUT+NAVBAR.
O4:ENHANCE.VISUALS(GRADIENTS,DEPTH,MICRO-ANIMATIONS).
O5:CODE.BACKEND(API.ROUTES)+DATABASE.SCHEMA+AI.MATCH.LOGIC.
O6:ADD.AUTH(EMAIL+OAUTH).
O7:CONNECT.QUIZ→PROFILE→MATCH→CHAT.FLOW.
O8:MAKE.APP.RESILIENT,ACCESSIBLE,AND.MOBILE-FIRST.
</OBJECTIVES>
<BACKEND_SPEC>
STACK:NEXTJS(14)+TYPESCRIPT+PRISMA+POSTGRESQL.
ROUTES:/api/user,/api/match,/api/chat,/api/quiz.
MATCH_ALGORITHM:AI.EMBEDDING.SIMILARITY.(VECTOR.STORAGE.OR.COSINE).
AUTH:NextAuth.
</BACKEND_SPEC>
<STYLE_GUIDE>
FONT:Inter+Poppins.
COLORS:Primary=#6366f1,Secondary=#10b981,Background=#000.
AESTHETIC:Minimalistic.Futuristic.Glassmorphic.
EFFECTS:Aurora.Background,Soft.Glow,Breathing.Animation.
</STYLE_GUIDE>
<OUTPUT_SCHEMA>
SECTION1:CODEBASE.SETUP(COMMANDS,PACKAGES).
SECTION2:FRONTEND.COMPONENTS(CODE.EXAMPLES).
SECTION3:BACKEND.ROUTES(API.ENDPOINTS).
SECTION4:DATABASE.MODEL(USER,PROFILE,MATCH,CHAT).
SECTION5:AI.MATCHING.ALGORITHM.PSEUDOCODE.
</OUTPUT_SCHEMA>
<INSTRUCTIONS>
STEP1:ANALYZE.HTML.STRUCTURE.
STEP2:CREATE.REACT.COMPONENTS.WITH.STATE.MANAGEMENT.
STEP3:APPLY.MODERN.UI.PRINCIPLES+ANIMATION.
STEP4:IMPLEMENT.BACKEND.LOGIC(SECURE.API+DB.MODELS).
STEP5:OUTPUT.CLEAN.COPY-PASTE.CODE.WITH.FILEPATHS.
STEP6:ENSURE.COMPLETE.BEFORE.REPLY.END.
</INSTRUCTIONS>
<FINAL_DELIVERY>
FORMAT:MARKDOWN.WITH.SUBHEADINGS+CODE.BLOCKS.
NO.PLACEHOLDER.TEXT.
RESULT:MVP.READY.PROJECT.
</FINAL_DELIVERY>
</PROMPT>
Files changed (6)
- README.md+9-5
- chat.htmlAdded+95
- index.html+99-18
- matches.htmlAdded+100
- profile.htmlAdded+82
- quiz.htmlAdded+83
12345678910---title: Friendly Connectionsemoji: 🏢colorFrom: pinkcolorTo: indigosdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314---title: Friendly Connections 🤝colorFrom: graycolorTo: greenemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://deepsite.hf.co).
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Chat - FRIENDLY</title> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> <script src="https://unpkg.com/feather-icons"></script> <style> :root { --color-primary: #6366f1; --color-secondary: #10b981; } body { background-color: #000; color: #f0f0f0; font-family: 'Inter', sans-serif; } .bg-primary { background-color: var(--color-primary); } .text-primary { color: var(--color-primary); } .border-primary { border-color: var(--color-primary); } .bg-secondary { background-color: var(--color-secondary); } .text-secondary { color: var(--color-secondary); } .border-secondary { border-color: var(--color-secondary); } .chat-container { height: calc(100vh - 140px); } </style></head><body class="bg-black text-gray-100"> <div id="app" class="max-w-md mx-auto"> <header class="flex items-center p-4 border-b border-gray-900"> <a href="matches.html" class="mr-4"> <i data-feather="arrow-left"></i> </a> <img src="http://static.photos/people/320x240/3" alt="Friend" class="w-10 h-10 rounded-full mr-3"> <div> <h1 class="font-medium">Jordan Smith</h1> <p class="text-xs text-gray-500">Online</p> </div> </header><div class="chat-container overflow-y-auto p-4"> <div class="mb-4"> <div class="inline-block bg-gray-900 rounded-lg rounded-bl-none px-4 py-2 max-w-xs"> <p>Hey there! I saw we both love reading. What's your favorite genre?</p> </div> <p class="text-xs text-gray-500 mt-1">10:24 AM</p> </div>
<div class="mb-4 text-right"> <div class="inline-block bg-primary rounded-lg rounded-br-none px-4 py-2 max-w-xs"> <p>I'm really into sci-fi and fantasy. How about you?</p> </div> <p class="text-xs text-gray-500 mt-1">10:25 AM</p> </div>
<div class="mb-4"> <div class="inline-block bg-gray-900 rounded-lg rounded-bl-none px-4 py-2 max-w-xs"> <p>Fantasy all the way! Just finished reading an amazing book about dragons.</p> </div> <p class="text-xs text-gray-500 mt-1">10:26 AM</p> </div>
<div class="mb-4"> <div class="inline-block bg-gray-900 rounded-lg rounded-bl-none px-4 py-2 max-w-xs"> <p>Would you like to take a short quiz together to see how compatible we are as friends?</p> </div> <p class="text-xs text-gray-500 mt-1">10:27 AM</p> </div>
<div class="mb-4 text-right"> <div class="inline-block bg-primary rounded-lg rounded-br-none px-4 py-2 max-w-xs"> <p>Sure, that sounds fun!</p> </div> <p class="text-xs text-gray-500 mt-1">10:28 AM</p> </div> </div>
<div class="p-4 border-t border-gray-900"> <div class="flex items-center"> <input type="text" placeholder="Type a message..." class="flex-1 bg-gray-900 rounded-full py-3 px-4 mr-3"> <button class="bg-primary rounded-full p-3"> <i data-feather="send"></i> </button> </div> </div> </div>
<script> feather.replace(); </script></body></html>12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>FRIENDLY - Find Platonic Friends & Grow</title><link rel="icon" type="image/x-icon" href="/static/favicon.ico"><script src="https://cdn.tailwindcss.com"></script><script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script><script src="https://unpkg.com/feather-icons"></script><style>:root {--color-primary: #6366f1; /* indigo-500 */--color-secondary: #10b981; /* emerald-500 */}body {background-color: #000;color: #f0f0f0;font-family: 'Inter', sans-serif;}.bg-primary { background-color: var(--color-primary); }.text-primary { color: var(--color-primary); }.border-primary { border-color: var(--color-primary); }.bg-secondary { background-color: var(--color-secondary); }.text-secondary { color: var(--color-secondary); }.border-secondary { border-color: var(--color-secondary); }</style></head><body class="bg-black text-gray-100 min-h-screen"><div id="app" class="max-w-md mx-auto p-4"><header class="flex justify-between items-center mb-8"><h1 class="text-2xl font-bold">FRIENDLY</h1><div class="flex space-x-4"><i data-feather="bell"></i><i data-feather="user"></i></div></header><section class="mb-8"><h2 class="text-xl font-semibold mb-4">Welcome to FRIENDLY</h2><p class="mb-4">Find platonic friends and grow together through meaningful conversations and shared experiences.</p><div class="bg-gray-900 rounded-lg p-4 mb-4"><h3 class="font-medium mb-2">Start Your Journey</h3><p class="text-sm text-gray-400 mb-3">Take our 200-word quiz to build your profile and find compatible friends.</p><button class="w-full bg-primary text-white py-2 rounded-lg font-medium">Take Quiz</button></div></section><section><h2 class="text-xl font-semibold mb-4">Featured Friends</h2><div class="space-y-4"><div class="bg-gray-900 rounded-lg p-4 flex items-center"><img src="http://static.photos/people/320x240/1" alt="User" class="w-12 h-12 rounded-full mr-4"><div><h3 class="font-medium">Alex Morgan</h3><p class="text-sm text-gray-400">Shared interests: Books, Hiking</p></div><button class="ml-auto bg-secondary text-black px-3 py-1 rounded-full text-sm">Connect</button></div><div class="bg-gray-900 rounded-lg p-4 flex items-center"><img src="http://static.photos/people/320x240/2" alt="User" class="w-12 h-12 rounded-full mr-4"><div><h3 class="font-medium">Taylor Kim</h3><p class="text-sm text-gray-400">Shared interests: Art, Philosophy</p></div><button class="ml-auto bg-secondary text-black px-3 py-1 rounded-full text-sm">Connect</button></div></div></section><nav class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-800 max-w-md mx-auto"><div class="flex justify-around py-3"><a href="index.html" class="flex flex-col items-center text-primary"><i data-feather="home"></i><span class="text-xs mt-1">Home</span></a><a href="matches.html" class="flex flex-col items-center text-gray-500"><i data-feather="users"></i><span class="text-xs mt-1">Friends</span></a><a href="chat.html" class="flex flex-col items-center text-gray-500"><i data-feather="message-circle"></i><span class="text-xs mt-1">Chat</span></a><button class="flex flex-col items-center text-gray-500"><i data-feather="book"></i><span class="text-xs mt-1">Library</span></button><a href="profile.html" class="flex flex-col items-center text-gray-500"><i data-feather="user"></i><span class="text-xs mt-1">Profile</span></a></div></nav></div><script>feather.replace();</script></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Matches - FRIENDLY</title> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> <script src="https://unpkg.com/feather-icons"></script> <style> :root { --color-primary: #6366f1; --color-secondary: #10b981; } body { background-color: #000; color: #f0f0f0; font-family: 'Inter', sans-serif; } .bg-primary { background-color: var(--color-primary); } .text-primary { color: var(--color-primary); } .border-primary { border-color: var(--color-primary); } .bg-secondary { background-color: var(--color-secondary); } .text-secondary { color: var(--color-secondary); } .border-secondary { border-color: var(--color-secondary); } </style></head><body class="bg-black text-gray-100 min-h-screen"> <div id="app" class="max-w-md mx-auto p-4"> <header class="flex justify-between items-center mb-6"> <h1 class="text-xl font-bold">Your Matches</h1> <button> <i data-feather="refresh-cw"></i> </button> </header>
<section> <div class="space-y-4"> <div class="bg-gray-900 rounded-lg p-4 flex items-center"> <img src="http://static.photos/people/320x240/5" alt="User" class="w-16 h-16 rounded-full mr-4"> <div class="flex-1"> <h3 class="font-medium">Jordan Smith</h3> <p class="text-sm text-gray-400">85% compatibility</p> <p class="text-xs text-gray-500 mt-1">Shared interests: Fantasy Books, Hiking</p> </div> <button class="ml-auto bg-secondary text-black px-3 py-1 rounded-full text-sm">Chat</button> </div> <div class="bg-gray-900 rounded-lg p-4 flex items-center"> <img src="http://static.photos/people/320x240/6" alt="User" class="w-16 h-16 rounded-full mr-4"> <div class="flex-1"> <h3 class="font-medium">Casey Johnson</h3> <p class="text-sm text-gray-400">78% compatibility</p> <p class="text-xs text-gray-500 mt-1">Shared interests: Photography, Coffee</p> </div> <button class="ml-auto bg-secondary text-black px-3 py-1 rounded-full text-sm">Chat</button> </div> <div class="bg-gray-900 rounded-lg p-4 flex items-center"> <img src="http://static.photos/people/320x240/7" alt="User" class="w-16 h-16 rounded-full mr-4"> <div class="flex-1"> <h3 class="font-medium">Riley Chen</h3> <p class="text-sm text-gray-400">72% compatibility</p> <p class="text-xs text-gray-500 mt-1">Shared interests: Creative Writing, Art</p> </div> <button class="ml-auto bg-secondary text-black px-3 py-1 rounded-full text-sm">Chat</button> </div> </div> </section> </div>
<nav class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-800 max-w-md mx-auto"> <div class="flex justify-around py-3"> <button class="flex flex-col items-center text-gray-500"> <i data-feather="home"></i> <span class="text-xs mt-1">Home</span> </button> <button class="flex flex-col items-center text-primary"> <i data-feather="users"></i> <span class="text-xs mt-1">Friends</span> </button> <button class="flex flex-col items-center text-gray-500"> <i data-feather="message-circle"></i> <span class="text-xs mt-1">Chat</span> </button> <button class="flex flex-col items-center text-gray-500"> <i data-feather="book"></i> <span class="text-xs mt-1">Library</span> </button> <button class="flex flex-col items-center text-gray-500"> <i data-feather="user"></i> <span class="text-xs mt-1">Profile</span> </button> </div> </nav>
<script> feather.replace(); </script></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Profile - FRIENDLY</title> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> <script src="https://unpkg.com/feather-icons"></script> <style> :root { --color-primary: #6366f1; --color-secondary: #10b981; } body { background-color: #000; color: #f0f0f0; font-family: 'Inter', sans-serif; } .bg-primary { background-color: var(--color-primary); } .text-primary { color: var(--color-primary); } .border-primary { border-color: var(--color-primary); } .bg-secondary { background-color: var(--color-secondary); } .text-secondary { color: var(--color-secondary); } .border-secondary { border-color: var(--color-secondary); } </style></head><body class="bg-black text-gray-100 min-h-screen"> <div id="app" class="max-w-md mx-auto p-4"> <header class="flex items-center mb-6"> <button class="mr-4"> <i data-feather="arrow-left"></i> </button> <h1 class="text-xl font-bold">Your Profile</h1> </header>
<section class="mb-8"> <div class="flex flex-col items-center mb-6"> <img src="http://static.photos/people/320x240/4" alt="Profile" class="w-24 h-24 rounded-full mb-4"> <h2 class="text-xl font-bold">Sam Rivera</h2> <p class="text-gray-400">Explorer & Bookworm</p> </div>
<div class="bg-gray-900 rounded-lg p-4 mb-4"> <h3 class="font-medium mb-2">About Me</h3> <p class="text-sm text-gray-400">I love discovering new places and diving into fantasy novels. Looking for genuine connections and meaningful conversations.</p> </div>
<div class="bg-gray-900 rounded-lg p-4 mb-4"> <h3 class="font-medium mb-2">Interests</h3> <div class="flex flex-wrap gap-2"> <span class="bg-primary text-black px-3 py-1 rounded-full text-sm">Hiking</span> <span class="bg-primary text-black px-3 py-1 rounded-full text-sm">Fantasy Books</span> <span class="bg-primary text-black px-3 py-1 rounded-full text-sm">Photography</span> <span class="bg-primary text-black px-3 py-1 rounded-full text-sm">Coffee</span> </div> </div>
<div class="bg-gray-900 rounded-lg p-4"> <h3 class="font-medium mb-2">Compatibility Score</h3> <div class="flex items-center"> <div class="w-full bg-gray-800 rounded-full h-2 mr-3"> <div class="bg-secondary h-2 rounded-full" style="width: 85%"></div> </div> <span class="text-sm">85%</span> </div> <p class="text-xs text-gray-400 mt-2">Based on shared interests and values</p> </div> </section>
<div class="flex justify-between"> <button class="px-6 py-2 border border-gray-700 rounded-lg">Edit Profile</button> <button class="px-6 py-2 bg-primary text-white rounded-lg">Find Matches</button> </div> </div>
<script> feather.replace(); </script></body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Onboarding Quiz - FRIENDLY</title> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> <script src="https://unpkg.com/feather-icons"></script> <style> :root { --color-primary: #6366f1; --color-secondary: #10b981; } body { background-color: #000; color: #f0f0f0; font-family: 'Inter', sans-serif; } .bg-primary { background-color: var(--color-primary); } .text-primary { color: var(--color-primary); } .border-primary { border-color: var(--color-primary); } .bg-secondary { background-color: var(--color-secondary); } .text-secondary { color: var(--color-secondary); } .border-secondary { border-color: var(--color-secondary); } </style></head><body class="bg-black text-gray-100 min-h-screen"> <div id="app" class="max-w-md mx-auto p-4"> <header class="flex items-center mb-6"> <a href="index.html" class="mr-4"> <i data-feather="arrow-left"></i> </a> <h1 class="text-xl font-bold">Getting to Know You</h1> </header><div class="mb-6"> <div class="flex justify-between text-sm text-gray-500 mb-2"> <span>Question 3 of 10</span> <span>30%</span> </div> <div class="w-full bg-gray-800 rounded-full h-2"> <div class="bg-primary h-2 rounded-full" style="width: 30%"></div> </div> </div>
<section class="mb-8"> <h2 class="text-lg font-medium mb-4">What activities do you enjoy in your free time?</h2> <div class="space-y-3"> <label class="flex items-center p-3 bg-gray-900 rounded-lg cursor-pointer"> <input type="checkbox" class="form-checkbox text-primary rounded"> <span class="ml-3">Reading books</span> </label> <label class="flex items-center p-3 bg-gray-900 rounded-lg cursor-pointer"> <input type="checkbox" class="form-checkbox text-primary rounded"> <span class="ml-3">Hiking and nature walks</span> </label> <label class="flex items-center p-3 bg-gray-900 rounded-lg cursor-pointer"> <input type="checkbox" class="form-checkbox text-primary rounded"> <span class="ml-3">Creative writing</span> </label> <label class="flex items-center p-3 bg-gray-900 rounded-lg cursor-pointer"> <input type="checkbox" class="form-checkbox text-primary rounded"> <span class="ml-3">Playing musical instruments</span> </label> <label class="flex items-center p-3 bg-gray-900 rounded-lg cursor-pointer"> <input type="checkbox" class="form-checkbox text-primary rounded"> <span class="ml-3">Volunteering</span> </label> </div> </section>
<div class="flex justify-between"> <button class="px-6 py-2 border border-gray-700 rounded-lg">Back</button> <button class="px-6 py-2 bg-primary text-white rounded-lg">Next</button> </div> </div>
<script> feather.replace(); </script></body></html>