-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contact form added #37
Open
samarth-1729
wants to merge
10
commits into
devlup-labs:vue
Choose a base branch
from
samarth-1729:vue
base: vue
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1d79870
contact form added
samarth-1729 126ad03
applied the changes
samarth-1729 c3abfa1
form url modified
samarth-1729 bae25ac
modification in line 165
samarth-1729 2ca99ab
unnecessary dependancy removed
samarth-1729 da03cd8
length of phone number changed to 13 digits
samarth-1729 63c2d87
contact button added to footer and fixed videoCard issue
samarth-1729 055120f
footer size decresed
samarth-1729 acc5855
changes made
samarth-1729 0eb7fd6
page wasn't reloading due to small error, fixed that
samarth-1729 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,51 @@ v-container(fluid='' style='margin: 0px; padding: 0px; width: 100%;') | |
h1.font-weight-medium.pa-3(style="text-align: center;color:#000") {{item.heading}} | ||
h3.font-weight-light.mb-n.pa-3(style="text-align: center;color:#000") {{item.subheading}} | ||
v-flex(xs12='',sm12='', md4='',lg4='',xl4='') | ||
v-img.mt-5.ml-n3.mr-3(:src="item.src" contain aspect-ratio='2.5') | ||
v-img.mt-5.ml-n3.mr-3(:src="item.src" contain aspect-ratio='2.5') | ||
|
||
|
||
samarth-1729 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
div(align='center', class="form-container" justify='center') | ||
div.Form(name="formSection" id="formComponent") | ||
div.container.col-sm-10(class="my-5" name="") | ||
v-row(class="no-gutters pb-5" id="formRow") | ||
div.col-md-5(class="pt-11 pl-7 pb-0" align="center" justify="center") | ||
v-img.img-fluid.mt-40(src="../assets/contactUs.png" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. margin does not have sizes more than 16 in vuetify, why 40? |
||
max-height='300' max-width='400' | ||
align="center" justify="center") | ||
div.col-md-7( justify='center' class='px-5') | ||
div.col-lg-9(align="center" justify="left") | ||
iframe(name="hiddenFrame" width="0" height="0" border="0" style="display: none;" | ||
onload="if(submitted){location.reload()}") | ||
v-form(class="login my-3" id="user_info_submit" name="form" | ||
action="https://docs.google.com/forms/d/e/1FAIpQLSeyQ2dD8L6DkyYjL_3JzWyZUD1IhOelzgEO8O4kVcdySFVehA/formResponse" | ||
method="POST" target="hiddenFrame" | ||
v-model="validForm" | ||
onsubmit="submitted=true;" | ||
) | ||
h1(style="color: #1b65c4; font-size: 2.5rem" class="font-weight-bold py-3") Contact Us | ||
v-text-field(lable="Email: " id="email" name="entry.785378515" color='#1b65c4' | ||
type="email" placeholder="Email" | ||
v-model="emailAddress" | ||
:rules="emailRules") | ||
|
||
v-text-field(lable="full name: " id="name" name="entry.2032351164" color='#1b65c4' | ||
type="text" placeholder="Full Name" | ||
counter=50 | ||
:rules="[required('Name'), minLength('Name', 4), maxLength('Name', 50)]") | ||
|
||
v-text-field(lable="phone" color='#1b65c4' id="phone" name="entry.1442733485" | ||
type="phone" placeholder="Contact Number" | ||
counter=true | ||
v-model="mobileNo" | ||
:rules="numberRules") | ||
|
||
v-text-field(lable="comments" color='#1b65c4' | ||
name="entry.1558155518" type="textarea" | ||
placeholder="What can we do for you?" | ||
id="suggestion" | ||
counter=true) | ||
|
||
v-btn(color='#1b65c4' class='my-3' type="submit" :disabled="!validForm").white--text Submit | ||
</template> | ||
<script> | ||
export default { | ||
|
@@ -100,7 +143,34 @@ export default { | |
subheading: | ||
"Self Learning sits at the heart of devlup labs, we believe in proper utilization of resources and peer guidance to propel self learning." | ||
} | ||
] | ||
], | ||
validForm: false, | ||
submitted: false, | ||
emailAddress: "", | ||
emailRules: [ | ||
v => !!v || "E-mail is required", | ||
v => /.+@.+\..+/.test(v) || "E-mail must be valid" | ||
], | ||
mobileNo: "", | ||
numberRules: [ | ||
v => !!v || "Mobile number is required", | ||
v => | ||
(/^[0-9]{10}/.test(v) && v.length <= 13) || | ||
"Mobile number must be valid" | ||
], | ||
required(propertyType) { | ||
return v => !!v || `You must input a ${propertyType}`; | ||
}, | ||
minLength(propertyType, minLength) { | ||
return v => | ||
(v && v.length >= minLength) || | ||
`${propertyType} must be atleast ${minLength} characters!`; | ||
}, | ||
maxLength(propertyType, maxLength) { | ||
return v => | ||
(v && v.length <= maxLength) || | ||
`${propertyType} must be less than ${maxLength} characters!`; | ||
} | ||
}) | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
text='Primary'
necessary? what does it do?