enzostvs HF staff commited on
Commit
459e9a5
1 Parent(s): a7f8fd9

responsiveness

Browse files
app/page.tsx CHANGED
@@ -3,7 +3,7 @@ import Image from "next/image";
3
 
4
  export default function Home() {
5
  return (
6
- <section className="min-h-screen p-12 lg:p-24 bg-stone-950">
7
  <Form>
8
  <header>
9
  <h1 className="text-white font-bold text-3xl">
@@ -14,6 +14,7 @@ export default function Home() {
14
  </h2>
15
  </header>
16
  </Form>
 
17
  </section>
18
  );
19
  }
 
3
 
4
  export default function Home() {
5
  return (
6
+ <section className="min-h-screen p-12 lg:p-24 bg-stone-950 relative z-[1]">
7
  <Form>
8
  <header>
9
  <h1 className="text-white font-bold text-3xl">
 
14
  </h2>
15
  </header>
16
  </Form>
17
+ <div className="w-[400px] h-[400px] bg-gradient-to-br from-amber-300 to-amber-600 absolute left-0 top-0 -z-[1] blur-[230px]" />
18
  </section>
19
  );
20
  }
components/form.tsx CHANGED
@@ -129,10 +129,8 @@ export const Form = ({ children }: { children: React.ReactNode }) => {
129
  setStatusText("Done!");
130
  };
131
 
132
- console.log("track is", track);
133
-
134
  return (
135
- <main className="grid grid-cols-2 gap-20">
136
  <div className="grid grid-cols-1 gap-10">
137
  {children}
138
  <Prompt
 
129
  setStatusText("Done!");
130
  };
131
 
 
 
132
  return (
133
+ <main className="grid grid-cols-1 gap-20 lg:grid-cols-2 lg:gap-20">
134
  <div className="grid grid-cols-1 gap-10">
135
  {children}
136
  <Prompt
components/moods.tsx CHANGED
@@ -16,7 +16,7 @@ export const Moods = ({
16
  return (
17
  <div>
18
  <p className="text-white font-semibold text-base mb-4">Select a mood</p>
19
- <div className="grid grid-cols-4 gap-2 relative z-[1]">
20
  {MOODS.slice(viewAll ? 0 : 0, viewAll ? MOODS.length : 12).map(
21
  (style) => {
22
  return (
 
16
  return (
17
  <div>
18
  <p className="text-white font-semibold text-base mb-4">Select a mood</p>
19
+ <div className="grid grid-cols-2 lg:grid-cols-4 gap-2 relative z-[1]">
20
  {MOODS.slice(viewAll ? 0 : 0, viewAll ? MOODS.length : 12).map(
21
  (style) => {
22
  return (
components/styles.tsx CHANGED
@@ -16,13 +16,13 @@ export const Styles = ({
16
  return (
17
  <div>
18
  <p className="text-white font-semibold text-base mb-4">Select a style</p>
19
- <div className="grid grid-cols-3 gap-2 relative z-[1]">
20
  {STYLES.slice(viewAll ? 0 : 0, viewAll ? STYLES.length : 9).map(
21
  (style) => (
22
  <div
23
  key={style.label}
24
  className={classNames(
25
- "w-full cursor-pointer transition-all duration-200 opacity-40 hover:opacity-100 rounded-xl bg-cover bg-center relative px-5 py-8 bg-gray-700 text-center font-bold text-white text-xl z-[1] overflow-hidden",
26
  {
27
  "!opacity-100 ring-[4px] ring-white/50":
28
  style.value === value,
 
16
  return (
17
  <div>
18
  <p className="text-white font-semibold text-base mb-4">Select a style</p>
19
+ <div className="grid grid-cols-2 lg:grid-cols-3 gap-2 relative z-[1]">
20
  {STYLES.slice(viewAll ? 0 : 0, viewAll ? STYLES.length : 9).map(
21
  (style) => (
22
  <div
23
  key={style.label}
24
  className={classNames(
25
+ "w-full cursor-pointer transition-all duration-200 opacity-40 hover:opacity-100 rounded-xl bg-cover bg-center relative px-2 py-8 bg-gray-700 text-center font-bold text-white text-xl z-[1] overflow-hidden",
26
  {
27
  "!opacity-100 ring-[4px] ring-white/50":
28
  style.value === value,