پیش‌نمایش زنده
کد HTML
<div class="mt-4 flex flex-col bg-gray-900 rounded-lg p-4">
  <h2 class="text-white font-bold text-2xl">AI Story Maker Dream Form</h2>

  <div class="mt-4">
    <label class="text-white" for="title">Title</label>
    <input placeholder="Enter a title for your dream" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1" type="text">
  </div>

  <div class="mt-4">
    <label class="text-white" for="description">Description</label>
    <textarea placeholder="Describe your dream in detail" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1" id="description"></textarea>
  </div>

  <div class="mt-4 flex flex-row space-x-2">
    <div class="flex-1">
      <label class="text-white" for="emotions">Emotions</label>
      <input placeholder="What emotions did you feel during your dream?" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1" id="emotions" type="text">
    </div>

    <div class="flex-1">
      <label class="text-white" for="symbols">Symbols</label>
      <input placeholder="Did you see any symbols in your dream?" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1" id="symbols" type="text">
    </div>
  </div>

  <div class="mt-4 flex flex-row space-x-2">
    <div class="flex-1">
      <label class="text-white" for="themes">Themes</label>
      <input placeholder="What themes do you think your dream might be about?" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1" id="themes" type="text">
    </div>
  </div>

  <div class="mt-4 flex justify-end">
    <button class="bg-teal-500 text-white rounded-md px-4 py-1 hover:bg-teal-600 hover:text-white" id="generate-button" type="button">Generate</button>
  </div>

  <div class="mt-4">
    <textarea placeholder="Your AI-generated story will appear here" class="w-full bg-gray-800 rounded-md border-gray-700 text-white px-2 py-1 h-48" id="story-output"></textarea>
  </div>
</div>
کد CSS
.mt-4 {
  margin-top: 1rem
}

.flex {
  display: flex
}

.h-48 {
  height: 12rem
}

.w-full {
  width: 100%
}

.flex-1 {
  flex: 1 1 0%
}

.flex-row {
  flex-direction: row
}

.flex-col {
  flex-direction: column
}

.justify-end {
  justify-content: flex-end
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
}

.rounded-lg {
  border-radius: 0.5rem
}

.rounded-md {
  border-radius: 0.375rem
}

.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity))
}

.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity))
}

.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity))
}

.bg-teal-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 184 166 / var(--tw-bg-opacity))
}

.p-4 {
  padding: 1rem
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem
}

.font-bold {
  font-weight: 700
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity))
}

.hover\:bg-teal-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(13 148 136 / var(--tw-bg-opacity))
}

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity))
}
نوع: form
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06