Skip to content

Commit

Permalink
Merge pull request #16 from Viva-con-Agua/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
TobiKaestle authored Oct 12, 2020
2 parents 6f067bf + 9fb6a8c commit dd70d56
Show file tree
Hide file tree
Showing 10 changed files with 822 additions and 252 deletions.
513 changes: 265 additions & 248 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vca-ui",
"version": "0.0.8",
"version": "0.1.0",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --target lib --inline-vue --name vca-ui src/main.js",
Expand All @@ -16,7 +16,8 @@
],
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
"vue": "^2.6.11",
"vuejs-datepicker": "^1.6.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.4.0",
Expand Down
192 changes: 190 additions & 2 deletions src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

body {
font-family: arial, sans-serif;
}

.vca-form {
width: 100%;
max-width: 100%;
Expand All @@ -16,11 +21,47 @@
background-size: 100% 1px;
background-repeat: repeat-x;
background-position: center;
text-align: left;
margin: 1em;
}

/*
CSS Positioning
*/

.vca-right,
.vca-left,
.vca-center {
width: 100%;
display: flex;
}

.vca-right {
justify-content: flex-end;
}

.vca-left {
justify-content: flex-start;
}

.vca-center {
justify-content: center;
}

.card-input {
text-align: left;
}

.vca-border {
border: solid thin #008fc3;
}

.vca-field-label label {
background-color: white;
padding-right: 2em;
color: #008fc3;
font-size: 1.2em;
font-weight: bold;
}
.vca-field-content{
flex-direction: column;
Expand Down Expand Up @@ -140,7 +181,6 @@
}
.vca-input-container input {
width: 100%;
border-radius: 0em;
border-radius: 0.2rem;
padding: 0.6em 1em;
border: 1px solid #ccc;
Expand Down Expand Up @@ -237,7 +277,7 @@ ul li {

.vca-card {
/* Add shadows to create the "card" effect */
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
box-shadow: 0 4px 8px 2px rgba(0,0,0,0.2);
transition: 0.3s;
padding: 1.0em;
margin: 0.9em;
Expand All @@ -250,6 +290,21 @@ ul li {
flex: 1;
margin: 2vw;
}

.card-input-label {
font-size: .9em;
}

.card-input-sub {
font-size: .75em;
}

.card-input-label,
.card-input-sub {
color: #1f1b6e;
font-weight: bolder;
}

.stripe-payment-container, .paypal-payment-container {
padding-top: 10px;
}
Expand Down Expand Up @@ -291,6 +346,106 @@ ul li {
-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

/**
CSS vca-button
**/


.btn-center-container {
text-align: center;
}

.vca-button:hover {
background-color: #006ab1;
}

.vca-button {
cursor: pointer;
margin-top: 1em;
font-size: 1.3em;
margin-bottom: 1em;
height: 45px;
width: 100%;
background-color: #008fc3;
color: #FFFFFF;
padding: 0.5em 1.2em;
border: 0;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

.vca-button-small:hover {
background-color: #006ab1;
color: #ffffff;
}

.vca-button:disabled,
.vca-button-small:disabled {
opacity: 0.3;
cursor: default;
}

.vca-button-small {
cursor: pointer;
margin-top: 1.2em;
font-size: 1em;
margin-bottom: 1em;
width: auto;
background-color: #fff;
color: #008fc3;
padding: 0.7em 1em;
border: solid thin #008fc3;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

/*
CSS SELECTION BUTTON
*/
.selection-button {
background-color: #fff;
color: #008fc3;

cursor: pointer;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;

border: solid thin transparent;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;


width: auto;
margin: 1em 3em;
padding: 1.5em 2em;
}

.selection-button:hover {
border: solid thin #008fc3;
}

.selection-btn-selected {
background-color: #008fc3;
color: #fff;
}

.newsletter input[type=checkbox] {
border: none;
color: #ccc;
Expand All @@ -302,6 +457,39 @@ ul li {
.stripe-donation-button {
font-size: .9rem !important;
}

.card-input-label {
font-size: .8em;
}

.card-input-sub {
font-size: .6em;
}

/*
CSS SELECTION BUTTON
*/
.vca-button {
white-space: nowrap;
font-size: .8em;
}
.vca-button-small {
height: auto;
white-space: nowrap;
font-size: .7em;
}
/*
CSS SELECTION BUTTON
*/
.selection-button {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);

font-size: 12px;
margin: 10px;
padding: 5px;
}
.vca-input select,
.vca-input input,
.error span,
Expand Down
98 changes: 98 additions & 0 deletions src/form/VcaBorderedButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<template>
<div>
<div class="border-button">
<a @click.prevent="submit" target="_blank" class="button">{{ placeholder }}</a>
<div class="border-bottom"></div>
</div>
</div>
</template>
<script>
export default {
name: 'VcaBorderedButton',
props: {
placeholder: {
type: String,
default: ""
},
callback: {
type: String,
default: "submit"
}
},
methods: {
submit() {
this.$emit(this.callback)
}
}
}
</script>
<style type="text/css">
.border-bottom {
border-bottom: 1px solid #008fc3;
position: absolute;
bottom: 0px;
left: 0;
width: calc(100% - 15px);
z-index: 100;
}
.border-button {
display: flex;
position: relative;
margin-bottom: 10px;
}
.border-button:first-child {
margin-right: 10px;
}
.border-button:after {
content: "";
display: block;
position: absolute;
top: 0;
width: 10px;
height: 0px;
}
.border-button:first-child:after {
border-right: none;
background: linear-gradient(110deg, rgba(255,255,255,1) 47%, rgba(0,143,195,1) 48%, rgba(0,143,195,1) 52%, rgba(255,255,255,1) 53%);
width: 15px;
height: 40px;
right: 0px;
background-repeat: no-repeat;
top: 1px;
bottom: 0px;
cursor: pointer;
}
.border-button .button {
text-decoration: none;
background-color: #fff;
color: #008fc3;
border-left: solid thin #008fc3;
border-top: solid thin #008fc3;
font-weight: bold;
text-transform: uppercase;
outline: none;
line-height: 40px;
font-size: 18px;
cursor: pointer;
padding: 0 30px 0 20px;
width: 100%;
}
@media only screen and (max-width: 500px) {
.border-button .button {
font-size: 12px;
}
}
</style>
Loading

0 comments on commit dd70d56

Please sign in to comment.