|
| 1 | +"use client"; |
| 2 | +import React from "react"; |
| 3 | +import { Laugh, Frown } from "lucide-react"; |
| 4 | + |
| 5 | +const confessions = [ |
| 6 | + { |
| 7 | + id: 1, |
| 8 | + content: "I once spent an entire day debugging, only to realize I was working on the wrong branch.", |
| 9 | + }, |
| 10 | + { |
| 11 | + id: 2, |
| 12 | + content: "Accidentally pushed my API keys to a public GitHub repo. Got an email from AWS about it an hour later.", |
| 13 | + }, |
| 14 | + { |
| 15 | + id: 3, |
| 16 | + content: "Deleted the production database instead of the staging one. Thankfully, we had backups... but still, that was terrifying.", |
| 17 | + }, |
| 18 | + { |
| 19 | + id: 4, |
| 20 | + content: "I thought a 'minor' change wouldn't need testing. It broke half the website.", |
| 21 | + }, |
| 22 | + { |
| 23 | + id: 5, |
| 24 | + content: "Wrote a script to automate a task, but forgot to include a safety check. It ended up emailing all our customers twice!", |
| 25 | + }, |
| 26 | + { |
| 27 | + id: 6, |
| 28 | + content: "Missed a semicolon in my JavaScript code and spent hours figuring out why the script wasn't working.", |
| 29 | + }, |
| 30 | + { |
| 31 | + id: 7, |
| 32 | + content: "I accidentally swapped '==' with '=' in an if statement and couldn't understand why my logic was broken.", |
| 33 | + }, |
| 34 | +]; |
| 35 | + |
| 36 | +const TechConfessions = () => { |
| 37 | + return ( |
| 38 | + <div className="min-h-screen bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900 text-white p-6 sm:p-12"> |
| 39 | + <header className="text-center mb-16"> |
| 40 | + <h1 className="text-4xl sm:text-6xl font-bold mb-4">Tech Confessions</h1> |
| 41 | + <p className="text-xl sm:text-2xl mb-8"> |
| 42 | + A fun section where developers anonymously share their funniest or most embarrassing tech-related mistakes. |
| 43 | + </p> |
| 44 | + <Laugh size={48} className="text-yellow-400 mx-auto mb-4 animate-bounce" /> |
| 45 | + <p className="text-lg sm:text-xl italic">"Laugh, learn, and share – we’ve all been there!"</p> |
| 46 | + </header> |
| 47 | + |
| 48 | + <div className="max-w-5xl mx-auto grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> |
| 49 | + {confessions.map((confession) => ( |
| 50 | + <div |
| 51 | + key={confession.id} |
| 52 | + className="bg-gradient-to-br from-pink-600 via-purple-600 to-indigo-600 rounded-xl shadow-xl p-6 sm:p-8 transition-transform transform hover:scale-110 hover:shadow-2xl" |
| 53 | + > |
| 54 | + <div className="flex items-start gap-4"> |
| 55 | + <Frown size={32} className="text-yellow-300" /> |
| 56 | + <p className="text-lg text-white/90">"{confession.content}"</p> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + ))} |
| 60 | + </div> |
| 61 | + |
| 62 | + {/* Share Your Confession Section */} |
| 63 | + <section className="max-w-4xl mx-auto mt-16 bg-gradient-to-br from-white/10 to-white/5 rounded-xl p-8 text-center"> |
| 64 | + <h2 className="text-3xl font-bold mb-4">Share Your Confession</h2> |
| 65 | + <p className="text-lg mb-6">Have a funny or embarrassing tech story to share? We'd love to hear it!</p> |
| 66 | + <form className="space-y-6"> |
| 67 | + <textarea |
| 68 | + placeholder="Write your confession here..." |
| 69 | + rows="4" |
| 70 | + className="w-full p-4 rounded-md text-black" |
| 71 | + ></textarea> |
| 72 | + <button className="bg-gradient-to-r from-yellow-400 to-red-500 text-white p-3 rounded-full hover:from-red-500 hover:to-yellow-400 transition-colors font-semibold"> |
| 73 | + Submit Confession |
| 74 | + </button> |
| 75 | + </form> |
| 76 | + </section> |
| 77 | + </div> |
| 78 | + ); |
| 79 | +}; |
| 80 | + |
| 81 | +export default TechConfessions; |
0 commit comments