Skip to content

Commit

Permalink
Issues #54,#55
Browse files Browse the repository at this point in the history
  • Loading branch information
sittichai-santiworakul committed Nov 4, 2020
1 parent 5438729 commit b6b8982
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 77 deletions.
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ link_company: #to show company list in homepage footer section.
url: "https://www.google.com/"

# Contact Us
action_url: "https://formspree.io/xknqrlvg"
redirect_url: "http://127.0.0.1:4000/contactus/"
google_form_url: "https://docs.google.com/forms/d/e/1FAIpQLScc9brLXKpBQKZf2hMhGif3XnrTeMcY4zGVcCtbE_WMfVg8wA/viewform?embedded=true"

# Google services
google_analytics: UA-178009148-1
Expand Down
51 changes: 5 additions & 46 deletions _includes/block_contactus_mascot.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,14 @@
<div class="row">
<div class="col-lg-6 col-xl-6 offset-xl-1">
<div class="search-wrapper">
<form class="search-form needs-validation was-validated text-left" action="{{ site.action_url }}"
method="POST">
{% for item in include.form_input %}
{% case item.type %}
{% when "text" %}
<div class="form-group">
<label for="validationCustom{{ forloop.index }}">{{ item.label }}*</label>
<div class="input-group">
<input type="text" class="form-control" id="validationCustom{{ forloop.index }}" placeholder="{{ item.label }}" required name="{{ item.label }}">
</div>
</div>
{% when "textarea" %}
<div class="form-group">
<label for="validationCustom{{ forloop.index }}">{{ item.label }}*</label>
<div class="input-group">
<textarea type="text" class="form-control" id="validationCustom{{ forloop.index }}" placeholder="....." rows="3" required name="Message" style="height: 75px;"></textarea>
</div>
</div>
{% when "select" %}
<div class="form-group">
<select name="{{ item.label }}" id="{{ item.label }}">
<option value="disabled" disabled selected>{{ item.label }}</option>
{% for is_option in item.option %}
<option value="{{ is_option.value}}">{{ is_option.key}}</option>
{% endfor %}
</select>
<br />
<br />
</div>
{% when "checkbox" %}
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="{{ item.label }}" name="{{ item.label }}">
<label class="form-check-label text-dark" for="{{ item.label }}">
{{ item.label }}
</label>
</div>
</div>
{% endcase %}
{% endfor %}
<div class="form-group text-right">
<button class="button border-0 mt-3" type="submit">{{ include.button_label }}</button>
</div>
<input type="hidden" name="_next" value="{{ site.redirect_url }}" />
</form>
<iframe
src="{{ site.google_form_url }}"
width="100%" height="900" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>

</div>
</div>
<div class="col-lg-6 col-xl-5">
<div class="search-content contactus-logo" >
<div class="search-content contactus-logo">
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/block_image_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2>{{include.header.title}}</h2>
<div class="col-md-6 {{ divConClassName }} mb-4 mb-lg-4">
{% if item.button_label %}
<div class="card-blog h-100">
<img class="card-img rounded-0" src="{{item.image}}" alt="" />
<img class="card-img rounded-0 card-profile-image" src="{{item.image}}" alt="" />
<div class="card-blog-body">
<h4>{{item.title}}</h4>
<p>{{ item.paragraph }}</p>
Expand All @@ -33,7 +33,7 @@ <h4>{{item.title}}</h4>
{% else %}
<a href="{{item.button_url}}">
<div class="card-blog h-100">
<img class="card-img rounded-0" src="{{item.image}}" alt="" />
<img class="card-img rounded-0 card-profile-image" src="{{item.image}}" alt="" />
<div class="card-blog-body">
<h4>{{item.title}}</h4>
<p>{{ item.paragraph }}</p>
Expand Down
7 changes: 5 additions & 2 deletions _sass/modules/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@
}
/* Testimonial section end
============================================================================================ */

.card-profile-image{
height: 255px;
object-fit: cover;
}

.card-blog{
background: $white;
Expand All @@ -328,7 +331,7 @@
}

p{
margin-bottom: 0;
margin-bottom: 1rem;
}
}

Expand Down
7 changes: 6 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,11 @@ h3, .h3 {

/* Testimonial section end
============================================================================================ */
.card-profile-image{
height: 255px;
object-fit: cover;
}

.card-blog {
background: #fff;
}
Expand All @@ -1279,7 +1284,7 @@ h3, .h3 {
}

.card-blog .card-blog-body p {
margin-bottom: 0;
margin-bottom: 1rem;
}

.card-blog:hover {
Expand Down
25 changes: 1 addition & 24 deletions contactus.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,4 @@ blocks_before:
title: About Standard Hub
paragraph: The Standard Hubs Work Program (WP) employs a lightweight, working group-focused process where members can create a new work item in less than a week. Working Groups (WGs) define their own process, tools, partnerships and cadence.
- layout: "block_contactus_mascot"
form_input:
- label: "Name"
type: "text"
- label: "Surname"
type: "text"
- label: "Telephone number"
type: "text"
- label: "Function"
type: "text"
- label: "Company"
type: "text"
- label: "Your message"
type: "textarea"
- label: "How do you hear about us ..."
type: "select"
option:
- key: "ex 1"
value: "1"
- key: "ex 2"
value: "2"
- label: "Subscriber to our mailing list"
type: "checkbox"
button_label: "Submit form"
---
---

0 comments on commit b6b8982

Please sign in to comment.