|
1 | | -<!-- app/views/better_together/setup_wizard_step_definitions/host_setup/platform_details.html.erb --> |
| 1 | +<!-- Hero Section --> |
| 2 | +<div class="container-fluid p-0"> |
| 3 | + <div class="hero-section" style="background: url(<%= asset_path('better_together/unsplash-community-1.jpeg') %>) no-repeat center center; background-size: cover; height: 50vh;"> |
| 4 | + <div class="overlay" style="background: rgba(0, 0, 0, 0.15); height: 100%; width: 100%;"> |
| 5 | + <div class="container h-100 d-flex align-items-center justify-content-center"> |
| 6 | + <div class="text-center text-white"> |
| 7 | + <h1 class="display-4 fw-bold">Welcome to the Community Engine!</h1> |
| 8 | + <p class="lead">Let’s build something meaningful together.</p> |
| 9 | + </div> |
| 10 | + </div> |
| 11 | + </div> |
| 12 | + </div> |
| 13 | +</div> |
2 | 14 |
|
| 15 | +<!-- Form Section --> |
3 | 16 | <div class="container my-5"> |
4 | 17 | <div class="row justify-content-center"> |
5 | 18 | <div class="col-md-6"> |
6 | | - <h1 class="text-center mb-4">Setup Your Better Together Community Platform</h1> |
7 | | - <p class="text-center mb-4">Fill out the platform details below to set up your platform.</p> |
| 19 | + <!-- Progress Indicator --> |
| 20 | + <div class="mb-4"> |
| 21 | + <div class="progress"> |
| 22 | + <div class="progress-bar" role="progressbar" style="width: 50%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"> |
| 23 | + Step 1 of 2 |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + |
| 28 | + <p class="text-center mb-4"> |
| 29 | + You’re about to create a space where your community can connect, collaborate, and thrive. |
| 30 | + Let’s begin by setting up the essential details of your platform — this is the foundation for everything to come. |
| 31 | + </p> |
8 | 32 |
|
9 | 33 | <% if @form.errors.any? %> |
10 | 34 | <div class="alert alert-danger"> |
|
20 | 44 | <%= form_for @form, url: setup_wizard_step_create_host_platform_path, method: :post, class: 'needs-validation', novalidate: true do |f| %> |
21 | 45 | <div class="mb-3"> |
22 | 46 | <%= f.label :name, class: 'form-label' %> |
23 | | - <%= f.text_field :name, autofocus: true, class: "form-control#{' is-invalid' if @form.errors[:name].any?}", required: true %> |
| 47 | + <%= f.text_field :name, autofocus: true, placeholder: 'Enter your platform name', class: "form-control#{' is-invalid' if @form.errors[:name].any?}", required: true %> |
| 48 | + <small class="form-text text-muted"> |
| 49 | + This will be the name displayed on your platform. |
| 50 | + </small> |
24 | 51 | </div> |
25 | 52 |
|
26 | 53 | <div class="mb-3"> |
27 | 54 | <%= f.label :description, class: 'form-label' %> |
28 | | - <%= f.text_area :description, class: "form-control#{' is-invalid' if @form.errors[:description].any?}", rows: 3, required: true %> |
| 55 | + <%= f.text_area :description, placeholder: 'Provide a brief description of your platform', class: "form-control#{' is-invalid' if @form.errors[:description].any?}", rows: 3, required: true %> |
| 56 | + <small class="form-text text-muted"> |
| 57 | + A short description helps users understand your platform's purpose. |
| 58 | + </small> |
29 | 59 | </div> |
30 | 60 |
|
31 | 61 | <div class="mb-3"> |
32 | 62 | <%= f.label :url, class: 'form-label' %> |
33 | | - <%= f.text_field :url, class: "form-control#{' is-invalid' if @form.errors[:url].any?}", required: true %> |
| 63 | + <%= f.text_field :url, placeholder: 'https://yourplatform.com', class: "form-control#{' is-invalid' if @form.errors[:url].any?}", required: true %> |
| 64 | + <small class="form-text text-muted"> |
| 65 | + This will be the web address of your platform. |
| 66 | + </small> |
34 | 67 | </div> |
35 | 68 |
|
36 | 69 | <div class="mb-3"> |
37 | 70 | <%= f.label :privacy, class: 'form-label' %> |
38 | 71 | <%= f.select :privacy, BetterTogether::Platform.privacies.keys.map { |privacy| [privacy.humanize, privacy] }, {}, { class: 'form-select', required: true } %> |
| 72 | + <small class="form-text text-muted"> |
| 73 | + Choose the privacy setting that best fits your platform. |
| 74 | + </small> |
39 | 75 | </div> |
40 | 76 |
|
41 | 77 | <div class="mb-3"> |
42 | 78 | <%= f.label :time_zone, class: 'form-label' %> |
43 | 79 | <%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.all, {}, { class: 'form-select', id: 'time_zone_select', required: true } %> |
| 80 | + <small class="form-text text-muted"> |
| 81 | + Set your platform's time zone for accurate scheduling. |
| 82 | + </small> |
44 | 83 | </div> |
45 | 84 |
|
46 | | - <%= f.submit 'Next Step', class: 'btn btn-primary' %> |
| 85 | + <div class="mb-3"> |
| 86 | + <%= f.submit 'Next Step', class: 'btn btn-primary w-100' %> |
| 87 | + </div> |
47 | 88 | <% end %> |
| 89 | + |
| 90 | + <!-- <div class="mt-4 text-center"> |
| 91 | + <small class="text-muted"> |
| 92 | + Need help? Check our <a href="/help/setup-guide" target="_blank">Setup Guide</a> for more details. |
| 93 | + </small> |
| 94 | + </div> --> |
48 | 95 | </div> |
49 | 96 | </div> |
50 | 97 | </div> |
|
0 commit comments