-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(fix): mobile-first responsiveness
- Loading branch information
Showing
10 changed files
with
193 additions
and
19 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
AUTH_SECRET=secret | ||
SUPABASE_URL=<your-supabase-url>.supabase.co | ||
SUPABASE_ANON_KEY=<your-anon-key> | ||
NEXT_PUBLIC_APP_URL=http://localhost:3000 |
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,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
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
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,56 @@ | ||
import React from "react"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
|
||
function page() { | ||
return ( | ||
<div className="flex flex-col items-center justify-center min-h-screen"> | ||
<div className="absolute inset-0"> | ||
<Image | ||
src="/background.png" | ||
alt="Background" | ||
fill | ||
className="object-cover object-center" | ||
quality={100} | ||
priority | ||
/> | ||
</div> | ||
{/* Content Overlay */} | ||
<div className="relative z-10 -left-4 -top-20 flex flex-col items-center justify-center w-full text-center gap-36 p-8 md:p-12 lg:p-48"> | ||
<div className="mb-12 lg:mb-24"> | ||
<h1 className="text-3xl md:text-4xl lg:text-5xl text-white leading-tight"> | ||
Pickup Line | ||
<br /> | ||
Generator | ||
</h1> | ||
</div> | ||
<Button | ||
asChild | ||
className="h-12 w-[27%] px-4 py-2 md:px-6 md:py-3 text-base md:text-3xl text-white rounded-full hover:bg-rose-600 transition duration-300 shadow-xl mb-24" | ||
> | ||
<Link href="/generate"> | ||
<span className="flex items-center space-x-2"> | ||
<Image | ||
src="/ph_heart-fill.svg" | ||
width={16} | ||
height={17} | ||
alt="Heart" | ||
/> | ||
<span>Generate one for me</span> | ||
<Image | ||
src="/ph_heart-fill.svg" | ||
width={16} | ||
height={17} | ||
alt="Heart" | ||
/> | ||
</span> | ||
</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default page; |
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
Empty file.
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,76 @@ | ||
"use client"; | ||
|
||
import React, { useState } from "react"; | ||
import { redirect } from "next/navigation"; | ||
|
||
import SignOutButton from "@/components/sign-out-button"; | ||
|
||
function PickupLineInputForm() { | ||
const [crush, setCrush] = useState(""); | ||
const [style, setStyle] = useState("funny"); | ||
|
||
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => { | ||
e.preventDefault(); | ||
// Here you would typically send the data to an API | ||
console.log({ crush, style }); | ||
// For now, we'll just simulate a redirect | ||
redirect("/result"); | ||
}; | ||
|
||
return ( | ||
<div className="min-h-screen bg-gradient-to-br from-pink-100 to-white p-4"> | ||
<div className="max-w-md mx-auto"> | ||
<header className="flex justify-between items-center mb-8"> | ||
<h1 className="text-3xl font-bold text-pink-600 font-pacifico"> | ||
Pickup Line Generator | ||
</h1> | ||
<SignOutButton /> | ||
</header> | ||
<form onSubmit={handleSubmit} className="space-y-6"> | ||
<div> | ||
<label | ||
htmlFor="crush" | ||
className="block text-lg font-medium text-pink-700 mb-2" | ||
> | ||
Tell us about your crush | ||
</label> | ||
<textarea | ||
id="crush" | ||
value={crush} | ||
onChange={(e) => setCrush(e.target.value)} | ||
className="w-full p-3 border border-pink-300 rounded-lg focus:ring-2 focus:ring-pink-500 focus:border-transparent" | ||
rows={4} | ||
placeholder="What makes them special?" | ||
></textarea> | ||
</div> | ||
<div> | ||
<label | ||
htmlFor="style" | ||
className="block text-lg font-medium text-pink-700 mb-2" | ||
> | ||
Style | ||
</label> | ||
<select | ||
id="style" | ||
value={style} | ||
onChange={(e) => setStyle(e.target.value)} | ||
className="w-full p-3 border border-pink-300 rounded-lg focus:ring-2 focus:ring-pink-500 focus:border-transparent" | ||
> | ||
<option value="funny">Funny</option> | ||
<option value="romantic">Romantic</option> | ||
<option value="cheesy">Cheesy</option> | ||
</select> | ||
</div> | ||
<button | ||
type="submit" | ||
className="w-full py-3 px-6 bg-pink-500 text-white rounded-full text-lg font-semibold hover:bg-pink-600 transition-colors" | ||
> | ||
♥ Generate for me ♥ | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default PickupLineInputForm; |
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
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 @@ | ||
import * as React from "react" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
export interface TextareaProps | ||
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {} | ||
|
||
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( | ||
({ className, ...props }, ref) => { | ||
return ( | ||
<textarea | ||
className={cn( | ||
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", | ||
className | ||
)} | ||
ref={ref} | ||
{...props} | ||
/> | ||
) | ||
} | ||
) | ||
Textarea.displayName = "Textarea" | ||
|
||
export { Textarea } |
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