Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Added welcome page UI to product details
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzimon committed May 6, 2021
1 parent 8bc50c1 commit e3f9e32
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
10 changes: 5 additions & 5 deletions app/styles/layouts/products.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@
margin-bottom: 3vw;
}

.gh-product-details .max-width {
max-width: 620px;
}

.gh-product-details-form {
display: flex;
align-items: flex-start;
Expand Down Expand Up @@ -106,7 +102,11 @@
width: 100%;
}

.gh-product-description-container {
.gh-product-details-fields .max-width {
max-width: 840px;
}

.gh-product-details-fields .form-group:last-of-type {
padding-bottom: 0;
margin-bottom: 0;
}
Expand Down
46 changes: 25 additions & 21 deletions app/templates/settings/product.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,34 @@
</GhCanvasHeader>

<form>
<div class="gh-product-details">
<section class="gh-product-config">
<h4 class="gh-main-section-header small bn">Product details</h4>
<div class="gh-main-section-content grey gh-product-details-form">
{{!-- <GhFormGroup @property="name" @class="gh-product-icon-container">
<label for="member-name">ICON</label>
<div class="gh-product-icon whitegrey">Icon</div>
</GhFormGroup> --}}
<div class="gh-product-details-fields">
<GhFormGroup @property="name" @classNames="max-width">
<label for="product-name">Product name</label>
<GhTextInput data-test-input="product-name" @id="product-name" @value={{product.name}}/>
<GhErrorMessage @property="name" />
</GhFormGroup>

<GhFormGroup @property="description" @classNames="max-width gh-product-description-container">
<label for="product-description">Description</label>
<GhTextInput data-test-input="product-description" @value={{product.description}} />
<GhErrorMessage @property="description" />
</GhFormGroup>
</div>
<section class="gh-main-section">
<div class="gh-main-section-block">
<h4 class="gh-main-section-header small bn">Product details</h4>
<div class="gh-main-section-content grey gh-product-details-form">
<div class="gh-product-details-fields">
<GhFormGroup @property="name" @classNames="max-width">
<label for="product-name">Product name</label>
<GhTextInput data-test-input="product-name" @id="product-name" @value={{product.name}}/>
<GhErrorMessage @property="name" />
</GhFormGroup>

<GhFormGroup @property="description" @classNames="max-width">
<label for="product-description">Description</label>
<GhTextInput data-test-input="product-description" @value={{product.description}} />
<GhErrorMessage @property="description" />
</GhFormGroup>

<GhFormGroup @property="_welcome-page" @classNames="max-width">
<label for="_welcome-page">Welcome page</label>
<GhTextInput data-test-input="_welcome-page" @value="" />
<p>Redirect to this URL after signup for this product</p>
<GhErrorMessage @property="_welcome-page" />
</GhFormGroup>
</div>
</section>
</div>
</div>
</section>
</form>

<div class="gh-main-section">
Expand Down

0 comments on commit e3f9e32

Please sign in to comment.