First commit of wedding-rsvp-rs
This commit includes a fully functional template and Rust backend. The website is able to send e-mails, displays strings in multiple languages, include attachments, and has basic protection again spam (IP based).
This commit is contained in:
535
templates/css/main.css
Executable file
535
templates/css/main.css
Executable file
@@ -0,0 +1,535 @@
|
||||
|
||||
|
||||
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////
|
||||
[ FONT ]*/
|
||||
|
||||
@font-face {
|
||||
font-family: Montserrat-Regular;
|
||||
src: url('../fonts/montserrat/Montserrat-Regular.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Montserrat-Bold;
|
||||
src: url('../fonts/montserrat/Montserrat-Bold.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Montserrat-ExtraBold;
|
||||
src: url('../fonts/montserrat/Montserrat-ExtraBold.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Montserrat-Medium;
|
||||
src: url('../fonts/montserrat/Montserrat-Medium.ttf');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////
|
||||
[ RESTYLE TAG ]*/
|
||||
|
||||
* {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body, html {
|
||||
height: 100%;
|
||||
font-family: Montserrat-Regular, sans-serif;
|
||||
}
|
||||
|
||||
/*---------------------------------------------*/
|
||||
a {
|
||||
font-family: Montserrat-Regular;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
color: #666666;
|
||||
margin: 0px;
|
||||
transition: all 0.4s;
|
||||
-webkit-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
-moz-transition: all 0.4s;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
color: #57b846;
|
||||
}
|
||||
|
||||
/*---------------------------------------------*/
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: Montserrat-Regular;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
color: #666666;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
ul, li {
|
||||
margin: 0px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------*/
|
||||
input {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
textarea:focus, input:focus {
|
||||
border-color: transparent !important;
|
||||
}
|
||||
|
||||
input::-webkit-input-placeholder { color: #999999; }
|
||||
input:-moz-placeholder { color: #999999; }
|
||||
input::-moz-placeholder { color: #999999; }
|
||||
input:-ms-input-placeholder { color: #999999; }
|
||||
|
||||
textarea::-webkit-input-placeholder { color: #999999; }
|
||||
textarea:-moz-placeholder { color: #999999; }
|
||||
textarea::-moz-placeholder { color: #999999; }
|
||||
textarea:-ms-input-placeholder { color: #999999; }
|
||||
|
||||
/*---------------------------------------------*/
|
||||
button {
|
||||
outline: none !important;
|
||||
border: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////
|
||||
[ Contact 1 ]*/
|
||||
|
||||
.contact1 {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
padding: 15px;
|
||||
|
||||
background: url(../images/wedding_wallpaper_1920.jpg) no-repeat top center;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.container-contact1 {
|
||||
width: 1163px;
|
||||
background: #fffffff0;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
padding: 75px 110px 75px 170px;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
[ ]*/
|
||||
.contact1-pic {
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
background: url(../images/LD.gif) no-repeat top center;
|
||||
-webkit-background-size: contain;
|
||||
-moz-background-size: contain;
|
||||
-o-background-size: contain;
|
||||
background-size: contain;
|
||||
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.contact1-pic img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
[ ]*/
|
||||
.contact1-form {
|
||||
width: 460px;
|
||||
}
|
||||
|
||||
.contact1-form-title {
|
||||
display: block;
|
||||
font-family: Montserrat-ExtraBold;
|
||||
font-size: 24px;
|
||||
color: #333333;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.contact1-form-title-small {
|
||||
display: block;
|
||||
font-family: Montserrat-Medium;
|
||||
font-size: 13px;
|
||||
color: #999999;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
|
||||
input.input1 {
|
||||
height: 50px;
|
||||
border-radius: 25px;
|
||||
padding: 0 30px;
|
||||
}
|
||||
input.input1 + .shadow-input1 {
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
textarea.input1 {
|
||||
min-height: 150px;
|
||||
border-radius: 25px;
|
||||
padding: 12px 30px;
|
||||
}
|
||||
textarea.input1 + .shadow-input1 {
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
/*---------------------------------------------*/
|
||||
.wrap-input1 {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.wrap-text-radioinput {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
color: #bdbdbd;
|
||||
margin-bottom: 11px;
|
||||
margin-left: 30px;
|
||||
font-family: Montserrat-Bold;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wrap-radioinput {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
color: #bdbdbd;
|
||||
margin-left: 15px;
|
||||
font-family: Montserrat-Bold;
|
||||
}
|
||||
|
||||
.input1 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
background: #e6e6e6;
|
||||
font-family: Montserrat-Bold;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.shadow-input1 {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0px 0px 0px 0px;
|
||||
color: rgba(189,78,97, 0.3);
|
||||
}
|
||||
|
||||
.radio-input {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.input1:focus + .shadow-input1 {
|
||||
-webkit-animation: anim-shadow 0.5s ease-in-out forwards;
|
||||
animation: anim-shadow 0.7s ease-in-out forwards;
|
||||
}
|
||||
|
||||
@-webkit-keyframes anim-shadow {
|
||||
to {
|
||||
box-shadow: 0px 0px 80px 30px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes anim-shadow {
|
||||
to {
|
||||
box-shadow: 0px 0px 80px 30px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*---------------------------------------------*/
|
||||
.container-contact1-form-btn {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.contact1-form-btn {
|
||||
min-width: 193px;
|
||||
height: 50px;
|
||||
border-radius: 25px;
|
||||
background: #bd4e61;
|
||||
font-family: Montserrat-Bold;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
color: #fff;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0 50px;
|
||||
margin-top: 20px;
|
||||
|
||||
-webkit-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
-moz-transition: all 0.4s;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.contact1-form-btn i {
|
||||
margin-left: 7px;
|
||||
|
||||
-webkit-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
-moz-transition: all 0.4s;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.contact1-form-btn:hover {
|
||||
background: #333333;
|
||||
}
|
||||
|
||||
.contact1-form-btn:hover i {
|
||||
-webkit-transform: translateX(10px);
|
||||
-moz-transform: translateX(10px);
|
||||
-ms-transform: translateX(10px);
|
||||
-o-transform: translateX(10px);
|
||||
transform: translateX(10px);
|
||||
}
|
||||
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
[ Message page ] */
|
||||
.container-message {
|
||||
line-height:23px;
|
||||
}
|
||||
|
||||
.container-message h1 {
|
||||
margin-bottom: 10px;
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
[ Responsive ]*/
|
||||
|
||||
@media
|
||||
((-webkit-min-device-pixel-ratio: 1.5) or
|
||||
(min-resolution: 144dpi)) and
|
||||
(min-width: 1000px) {
|
||||
.contact1 {
|
||||
background: url(../images/wedding_wallpaper_3840.jpg) no-repeat top center;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.contact1-pic {
|
||||
width: 33.5%;
|
||||
}
|
||||
|
||||
.contact1-form {
|
||||
width: 44%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.container-contact1 {
|
||||
padding: 90px 80px 88px 90px;
|
||||
}
|
||||
|
||||
.contact1-pic {
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
.contact1-form {
|
||||
width: 55%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container-contact1 {
|
||||
padding: 90px 80px 88px 80px;
|
||||
}
|
||||
|
||||
.contact1-pic {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.contact1-form {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.container-contact1 {
|
||||
padding: 80px 15px 78px 15px;
|
||||
}
|
||||
.container-message {
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.container-contact1 {
|
||||
padding: 40px 15px 38px 15px;
|
||||
}
|
||||
|
||||
.wrap-radioinput {
|
||||
width: 120px;
|
||||
}
|
||||
.fa-long-arrow-right {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
[ Alert validate ]*/
|
||||
|
||||
.validate-input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.alert-validate::before {
|
||||
content: attr(data-validate) !important;
|
||||
position: absolute;
|
||||
max-width: 70%;
|
||||
background-color: white;
|
||||
border: 1px solid #c80000;
|
||||
border-radius: 13px;
|
||||
padding: 4px 35px 4px 10px;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-moz-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
-o-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
right: 8px;
|
||||
pointer-events: none;
|
||||
|
||||
font-family: Montserrat-Medium;
|
||||
color: #c80000;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
text-align: left;
|
||||
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
-webkit-transition: opacity 0.4s;
|
||||
-o-transition: opacity 0.4s;
|
||||
-moz-transition: opacity 0.4s;
|
||||
transition: opacity 0.4s;
|
||||
}
|
||||
|
||||
.alert-validate::after {
|
||||
content: "\f06a";
|
||||
font-family: FontAwesome;
|
||||
display: block;
|
||||
position: absolute;
|
||||
color: #c80000;
|
||||
font-size: 20px;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-moz-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
-o-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
.alert-validate:hover:before {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.alert-validate::before {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
109
templates/css/select.css
Normal file
109
templates/css/select.css
Normal file
@@ -0,0 +1,109 @@
|
||||
.select-box {
|
||||
font-family: Montserrat-Bold;
|
||||
font-size: 14px;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
color: #60666d;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.select-box {
|
||||
width: 100%;
|
||||
border-radius: 25px;
|
||||
}
|
||||
}
|
||||
.select-box__current {
|
||||
position: relative;
|
||||
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
.select-box__list li label {
|
||||
margin-bottom: 0px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
.select-box__current:focus + .select-box__list {
|
||||
opacity: 1;
|
||||
-webkit-animation-name: none;
|
||||
animation-name: none;
|
||||
}
|
||||
.select-box__current:focus .shadow-input1 {
|
||||
-webkit-animation: anim-shadow 0.5s ease-in-out forwards;
|
||||
animation: anim-shadow 0.7s ease-in-out forwards;
|
||||
}
|
||||
.select-box__value {
|
||||
display: flex;
|
||||
}
|
||||
.select-box__input {
|
||||
display: none;
|
||||
}
|
||||
.select-box__input:checked + .select-box__input-text {
|
||||
display: block;
|
||||
font-family: Montserrat-Bold;
|
||||
font-size: 14px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
.select-box__input-text {
|
||||
display: none;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 15px;
|
||||
border-radius: 25px;
|
||||
background: #e6e6e6;
|
||||
color: #666666;
|
||||
}
|
||||
.select-box__default-text {
|
||||
color: #bcbcbc;
|
||||
}
|
||||
.select-box__list {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
opacity: 0;
|
||||
-webkit-animation-name: HideList;
|
||||
animation-name: HideList;
|
||||
-webkit-animation-duration: 0.5s;
|
||||
animation-duration: 0.5s;
|
||||
-webkit-animation-delay: 0.5s;
|
||||
animation-delay: 0.5s;
|
||||
-webkit-animation-fill-mode: forwards;
|
||||
animation-fill-mode: forwards;
|
||||
-webkit-animation-timing-function: step-start;
|
||||
animation-timing-function: step-start;
|
||||
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.select-box__option {
|
||||
display: block;
|
||||
padding: 15px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.select-box__option:hover, .select-box__option:focus {
|
||||
color: #546c84;
|
||||
background-color: #fbfbfb;
|
||||
}
|
||||
|
||||
@-webkit-keyframes HideList {
|
||||
from {
|
||||
-webkit-transform: scaleY(1);
|
||||
transform: scaleY(1);
|
||||
}
|
||||
to {
|
||||
-webkit-transform: scaleY(0);
|
||||
transform: scaleY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes HideList {
|
||||
from {
|
||||
-webkit-transform: scaleY(1);
|
||||
transform: scaleY(1);
|
||||
}
|
||||
to {
|
||||
-webkit-transform: scaleY(0);
|
||||
transform: scaleY(0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user