Skip to content

Commit

Permalink
Merge pull request #74 from canopas/fix-styles-and-other-changes-in-w…
Browse files Browse the repository at this point in the history
…ebsite

Fixes in website and changed images
  • Loading branch information
cp-sumi-k authored Mar 1, 2022
2 parents a8fda31 + 579b723 commit c275052
Show file tree
Hide file tree
Showing 24 changed files with 104 additions and 112 deletions.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_1.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_2.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_3.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_4.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_5.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/life/jobs_canopas_life_6.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_1.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_2.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_3.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_4.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_5.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_6.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_7.webp
Binary file not shown.
Binary file modified vue-frontend/src/assets/images/perks/jobs_canopas_perks_8.webp
Binary file not shown.
68 changes: 26 additions & 42 deletions vue-frontend/src/components/ApplyForCareer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,23 @@
<div>
<ScreenMeta v-bind:seoData="seoData" />
<ScreenHeader />
<div v-if="isLoading" class="loader-div">
<img :src="loader" />
</div>
<ScreenLoader v-if="isLoading" />
<div v-else>
<ScreenLoader v-if="isLoad" v-bind:loader="true" />
<div
class="container form-container"
:style="{
'pointer-events': isLoading ? 'none' : '',
filter: isLoading ? 'blur(1px)' : '',
'pointer-events': isLoad ? 'none' : '',
filter: isLoad ? 'blur(1px)' : '',
}"
>
<div class="job-application">
<div class="header-text text-center canopas-gradient-text">
<div class="header-2-text text-center canopas-gradient-text pb-3">
Applying For {{ title }}
</div>
<form class="contact-form-text pt-5 pb-5">
<div class="row">
<span class="required-field-msg mb-5"
>All fields marked with * are required.</span
>

<div class="col-lg-12 col-md-12 col-sm-12 mb-5">
<div class="col-lg-6 col-md-6 col-sm-12 mb-5">
<label class="required">Full Name</label>
<input
class="form-control custom"
Expand All @@ -38,7 +33,7 @@
>
</div>

<div class="col-lg-12 col-md-12 col-sm-12 mb-5">
<div class="col-lg-6 col-md-6 col-sm-12 mb-5">
<label class="required">Email</label>
<input
class="form-control custom"
Expand Down Expand Up @@ -91,9 +86,8 @@
<div>
<input
name="howdidyoufindcanopas"
class="reference-option-text"
type="text"
placeholder="choose any one"
placeholder="Choose anyone"
id="reference-option-text"
readonly
v-model="reference"
Expand Down Expand Up @@ -131,16 +125,17 @@
<textarea
class="form-control custom"
name="message"
rows="5"
rows="1"
v-model="message"
></textarea>
</div>

<div class="col-lg-5 col-md-5 col-sm-12">
<label class="required"
>Resume <br />
<label class="required">Resume </label>
<br />
<label>
<i>Supported formats:</i
><span class="black pdf-text">.PDF</span>
><span class="black pdf-text">PDF</span>
<i>only</i>
</label>
</div>
Expand Down Expand Up @@ -177,6 +172,9 @@
<span>Apply Now</span>
</button>
</div>
<div class="required-field-msg">
All fields marked with * are required.
</div>
</form>
</div>

Expand Down Expand Up @@ -348,10 +346,10 @@ import ScreenHeader from "./partials/ScreenHeader.vue";
import ScreenFooter from "./partials/ScreenFooter.vue";
import ScreenFooter2 from "./partials/ScreenFooter2.vue";
import ScreenMeta from "./partials/ScreenMeta.vue";
import ScreenLoader from "./utils/ScreenLoader.vue";
import axios from "axios";
import config from "@/config.js";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import loader from "@/assets/images/theme/loader.svg";
import { library } from "@fortawesome/fontawesome-svg-core";
import { faCheckCircle } from "@fortawesome/free-solid-svg-icons";
Expand Down Expand Up @@ -409,7 +407,6 @@ export default {
},
],
checkCircle: faCheckCircle,
loader: loader,
currentReferenceIndex: -1,
fullName: "",
email: "",
Expand All @@ -420,6 +417,7 @@ export default {
message: "",
file: "",
isLoading: true,
isLoad: false,
isShowingReferenceInput: false,
showValidationError: false,
showEmailValidationError: false,
Expand All @@ -441,6 +439,7 @@ export default {
ScreenFooter2,
ScreenMeta,
FontAwesomeIcon,
ScreenLoader,
},
mounted() {
this.$gtag.event("view_page_job_apply");
Expand All @@ -452,8 +451,7 @@ export default {
axios
.get(config.API_BASE + "/api/careers/" + this.$route.params.id)
.then((res) => {
setTimeout(() => (this.isLoading = false), 1000);
this.isLoading = false;
this.title = res.data.title;
this.prepareSEOdata(res.data);
})
Expand Down Expand Up @@ -525,9 +523,8 @@ export default {
},
submitApplication() {
this.$gtag.event("job_submit");
this.showReviewFormPopup = false;
this.isLoading = true;
this.isLoad = true;
const formData = new FormData();
formData.append("job_title", this.title);
formData.append("name", this.fullName);
Expand All @@ -551,14 +548,14 @@ export default {
axios
.post(config.API_BASE + "/api/send-career-mail", formData)
.then(() => {
this.isLoading = false;
this.isLoad = false;
this.showSuccessMessagePopup = true;
setTimeout(() => {
this.$router.push("/");
}, 2000);
})
.catch(() => {
this.isLoading = false;
this.isLoad = false;
this.showErrorMessagePopup = true;
});
},
Expand All @@ -572,7 +569,7 @@ export default {
}
.form-container {
margin: 80px auto;
margin: 80px auto 150px;
}
.job-application {
Expand Down Expand Up @@ -628,6 +625,7 @@ input:-webkit-autofill:active {
}
.required-field-msg {
margin-top: 48px;
color: #ff0000;
}
Expand Down Expand Up @@ -662,14 +660,6 @@ input:-webkit-autofill:active {
justify-content: center;
}
.loader-div {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 100;
}
/* for dropdown list */
.reference-option-list {
Expand Down Expand Up @@ -710,7 +700,6 @@ input:-webkit-autofill:active {
height: 100%;
cursor: pointer;
background: #fff;
font-size: 1.2em;
border: none;
outline: none;
padding: 12px 0;
Expand Down Expand Up @@ -795,18 +784,13 @@ input:-webkit-autofill:active {
padding: 16px 80px;
}
.header-text {
font-size: 2.5rem;
line-height: 2.729rem;
}
.contact-form-text,
.contact-form-text:hover {
font-size: 1.125rem;
}
.job-application {
padding: 48px;
padding: 48px 48px 0;
}
}
Expand Down
21 changes: 5 additions & 16 deletions vue-frontend/src/components/CareerDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
/>
<ScreenHeader />
<div v-if="isLoading" class="loader-div">
<img :src="loader" />
</div>
<ScreenLoader v-if="isLoading" />
<div v-else-if="showErrorMessagePopup">
<transition name="modal">
<div class="modal-mask">
Expand Down Expand Up @@ -76,10 +74,10 @@ import ScreenHeader from "./partials/ScreenHeader.vue";
import ScreenFooter from "./partials/ScreenFooter.vue";
import ScreenFooter2 from "./partials/ScreenFooter2.vue";
import ScreenMeta from "./partials/ScreenMeta.vue";
import ScreenLoader from "./utils/ScreenLoader.vue";
import axios from "axios";
import config from "@/config.js";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import loader from "@/assets/images/theme/loader.svg";
import router from "@/router";
import { library } from "@fortawesome/fontawesome-svg-core";
import moment from "moment";
Expand All @@ -97,7 +95,6 @@ export default {
details: null,
description: "",
checkCircle: faCheckCircle,
loader: loader,
isLoading: true,
showErrorMessagePopup: false,
showJobs: config.IS_SHOW_JOBS,
Expand All @@ -117,6 +114,7 @@ export default {
ScreenFooter2,
ScreenMeta,
FontAwesomeIcon,
ScreenLoader,
},
mounted() {
this.getCareerDetails();
Expand All @@ -129,8 +127,7 @@ export default {
axios
.get(config.API_BASE + "/api/careers/" + id)
.then((res) => {
setTimeout(() => (this.isLoading = false), 1000);
this.isLoading = false;
this.details = res.data;
this.jobLink = "/jobs/apply/" + this.details.unique_id;
this.description = this.details.description;
Expand Down Expand Up @@ -317,14 +314,6 @@ export default {
</script>

<style lang="scss" scoped>
.loader-div {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 100;
}
.container {
padding: 48px 16px;
}
Expand Down Expand Up @@ -431,7 +420,7 @@ export default {
@include media-breakpoint-up(md) {
.container {
padding: 96px;
padding: 96px 96px 150px;
}
.canopas-gradient-text {
Expand Down
18 changes: 4 additions & 14 deletions vue-frontend/src/components/ContactScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<div ref="contactScreen">
<ScreenMeta v-bind:seoData="seoData" />
<ScreenHeader />
<div v-if="isLoading" class="loader-div">
<img :src="loader" />
</div>
<ScreenLoader v-if="isLoading" v-bind:loader="true" />
<div
:style="{
'pointer-events': isLoading ? 'none' : '',
Expand All @@ -24,10 +22,10 @@ import ScreenHeader from "./partials/ScreenHeader.vue";
import ScreenFooter from "./partials/ScreenFooter.vue";
import ScreenFooter2 from "./partials/ScreenFooter2.vue";
import ScreenMeta from "./partials/ScreenMeta.vue";
import ScreenLoader from "./utils/ScreenLoader.vue";
import ContactLanding from "./contact/ContactLanding.vue";
import ContactForm from "./contact/ContactForm.vue";
import Config from "@/config.js";
import loader from "@/assets/images/theme/loader.svg";
export default {
components: {
Expand All @@ -37,12 +35,12 @@ export default {
ScreenFooter2,
ScreenMeta,
ContactForm,
ScreenLoader,
},
data() {
return {
showJobs: Config.IS_SHOW_JOBS,
isLoading: false,
loader: loader,
seoData: Config.SEO_META_DATA,
};
},
Expand All @@ -61,12 +59,4 @@ export default {
};
</script>

<style scoped>
.loader-div {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 100;
}
</style>
<style scoped></style>
2 changes: 1 addition & 1 deletion vue-frontend/src/components/contact/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export default {

<style lang="scss" scoped>
.container {
margin: 48px auto;
margin: 48px auto 150px;
padding: 0 5%;
}
Expand Down
Loading

0 comments on commit c275052

Please sign in to comment.