Skip to content

Commit 8700a1b

Browse files
committed
Improve the SetupWizard platform details page
1 parent 728680a commit 8700a1b

File tree

1 file changed

+54
-7
lines changed

1 file changed

+54
-7
lines changed

app/views/better_together/wizard_step_definitions/host_setup/platform_details.html.erb

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
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>
214

15+
<!-- Form Section -->
316
<div class="container my-5">
417
<div class="row justify-content-center">
518
<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>
832

933
<% if @form.errors.any? %>
1034
<div class="alert alert-danger">
@@ -20,31 +44,54 @@
2044
<%= form_for @form, url: setup_wizard_step_create_host_platform_path, method: :post, class: 'needs-validation', novalidate: true do |f| %>
2145
<div class="mb-3">
2246
<%= 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>
2451
</div>
2552

2653
<div class="mb-3">
2754
<%= 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>
2959
</div>
3060

3161
<div class="mb-3">
3262
<%= 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>
3467
</div>
3568

3669
<div class="mb-3">
3770
<%= f.label :privacy, class: 'form-label' %>
3871
<%= 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>
3975
</div>
4076

4177
<div class="mb-3">
4278
<%= f.label :time_zone, class: 'form-label' %>
4379
<%= 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>
4483
</div>
4584

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>
4788
<% 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> -->
4895
</div>
4996
</div>
5097
</div>

0 commit comments

Comments
 (0)