Title: 20 question · Issue #2 · amelia-coding/coding · GitHub
Open Graph Title: 20 question · Issue #2 · amelia-coding/coding
X Title: 20 question · Issue #2 · amelia-coding/coding
Description: // Made by Mehdi IbnHfid import React, { useState } from 'react'; import { motion } from 'framer-motion'; export default function SignInForm() { const [submitted, setSubmitted] = useState(false); const [name, setName] = useState(''); con...
Open Graph Description: // Made by Mehdi IbnHfid import React, { useState } from 'react'; import { motion } from 'framer-motion'; export default function SignInForm() { const [submitted, setSubmitted] = useState(false); c...
X Description: // Made by Mehdi IbnHfid import React, { useState } from 'react'; import { motion } from 'framer-motion'; export default function SignInForm() { const [submitted, setSubmitted] = us...
Opengraph URL: https://github.com/amelia-coding/coding/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"20 question","articleBody":"// Made by Mehdi IbnHfid\nimport React, { useState } from 'react';\nimport { motion } from 'framer-motion';\n\nexport default function SignInForm() {\n const [submitted, setSubmitted] = useState(false);\n const [name, setName] = useState('');\n const [answers, setAnswers] = useState(Array(20).fill(''));\n\n const handleSubmit = (e) =\u003e {\n e.preventDefault();\n setSubmitted(true);\n };\n\n const questions = [\n \"Quel est ton nom complet ?\",\n \"Quel est ton pays préféré ?\",\n \"Quel âge as-tu ?\",\n \"Quelle est ta passion ?\",\n \"As-tu un animal préféré ?\",\n \"Quelle est ta couleur préférée ?\",\n \"Quel est ton rêve ?\",\n \"Aimes-tu la science ?\",\n \"Quelle langue parles-tu ?\",\n \"Quel est ton plat préféré ?\",\n \"Quel sport pratiques-tu ?\",\n \"Quel est ton chanteur préféré ?\",\n \"Quel est ton film préféré ?\",\n \"Aimes-tu l’intelligence artificielle ?\",\n \"Quel est ton métier de rêve ?\",\n \"Quelle saison préfères-tu ?\",\n \"Que fais-tu pendant ton temps libre ?\",\n \"Aimes-tu lire des livres ?\",\n \"Quel est ton super héros préféré ?\",\n \"Quel pays veux-tu visiter ?\"\n ];\n\n return (\n \u003cdiv className=\"min-h-screen bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 flex flex-col justify-center items-center p-6\"\u003e\n \u003cmotion.h1 initial={{ opacity: 0, y: -20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.8 }}\n className=\"text-white text-4xl font-bold mb-8 text-center\"\u003e\n Made by Mehdi IbnHfid\n \u003c/motion.h1\u003e\n\n {!submitted ? (\n \u003cmotion.form onSubmit={handleSubmit} className=\"bg-white rounded-2xl shadow-2xl p-8 w-full max-w-3xl\"\n initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 0.5 }}\u003e\n \u003cdiv className=\"mb-4\"\u003e\n \u003clabel className=\"block font-semibold text-gray-700 mb-2\"\u003eTon nom\u003c/label\u003e\n \u003cinput type=\"text\" value={name} onChange={(e) =\u003e setName(e.target.value)}\n className=\"w-full p-3 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-purple-500\" /\u003e\n \u003c/div\u003e\n {questions.map((q, i) =\u003e (\n \u003cdiv className=\"mb-4\" key={i}\u003e\n \u003clabel className=\"block font-medium text-gray-700 mb-1\"\u003e{q}\u003c/label\u003e\n \u003cinput type=\"text\" value={answers[i]} onChange={(e) =\u003e {\n const newAnswers = [...answers];\n newAnswers[i] = e.target.value;\n setAnswers(newAnswers);\n }} className=\"w-full p-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-400\" /\u003e\n \u003c/div\u003e\n ))}\n \u003cmotion.button whileHover={{ scale: 1.05 }} type=\"submit\"\n className=\"mt-6 w-full bg-purple-600 text-white p-3 rounded-xl font-semibold hover:bg-purple-700 transition\"\u003e\n Soumettre\n \u003c/motion.button\u003e\n \u003c/motion.form\u003e\n ) : (\n \u003cmotion.div initial={{ scale: 0.8, opacity: 0 }} animate={{ scale: 1, opacity: 1 }}\n className=\"bg-white p-8 rounded-2xl shadow-xl text-center max-w-xl\"\u003e\n \u003ch2 className=\"text-2xl font-bold text-gray-800 mb-4\"\u003eMerci, {name} 🌟\u003c/h2\u003e\n \u003cp className=\"text-gray-600\"\u003eTu as rempli les 20 questions. Bien joué !\u003c/p\u003e\n \u003c/motion.div\u003e\n )}\n \u003c/div\u003e\n );\n}","author":{"url":"https://github.com/ibnhfidmehdi","@type":"Person","name":"ibnhfidmehdi"},"datePublished":"2025-07-23T21:31:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/coding/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f04c3436-1e4f-aa04-d10a-f51d9b994cdf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD44:AC92B:16A81A5:1D72674:698FD977 |
| html-safe-nonce | b7d0652e7fcfcb371a58df81f07c595f3665cb4b26f1b84a829f71a45130e32d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDQ0OkFDOTJCOjE2QTgxQTU6MUQ3MjY3NDo2OThGRDk3NyIsInZpc2l0b3JfaWQiOiI3MzQ4MjQ2ODUyNTc0MTA4MDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab82a6d3d6ea713855c9ea3ded600c5b0fb03ac530c9314e27e8f1d58b6be787 |
| hovercard-subject-tag | issue:3257765054 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/amelia-coding/coding/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/362830decb0ddd0350c4af727494434b215150d6d717148d01bcd2f1786820af/amelia-coding/coding/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/362830decb0ddd0350c4af727494434b215150d6d717148d01bcd2f1786820af/amelia-coding/coding/issues/2 |
| og:image:alt | // Made by Mehdi IbnHfid import React, { useState } from 'react'; import { motion } from 'framer-motion'; export default function SignInForm() { const [submitted, setSubmitted] = useState(false); c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ibnhfidmehdi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/amelia-coding/coding git https://github.com/amelia-coding/coding.git |
| octolytics-dimension-user_id | 21191390 |
| octolytics-dimension-user_login | amelia-coding |
| octolytics-dimension-repository_id | 261121543 |
| octolytics-dimension-repository_nwo | amelia-coding/coding |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 261121543 |
| octolytics-dimension-repository_network_root_nwo | amelia-coding/coding |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width