added animations and pageLoad and preLoader

This commit is contained in:
Amir Mohamadi
2020-12-19 13:26:55 +03:30
parent bc5e617778
commit 9433eb84ac
57 changed files with 13099 additions and 494 deletions
+38 -1
View File
@@ -15,7 +15,6 @@
-moz-appearance: none;
}
%titleShape {
&::after {
content: '';
@@ -95,3 +94,41 @@
%defaultBoxShadow {
@include boxShadow(0 0px 20px rgba(0, 0, 0, 0.2))
}
%productHoverAnim {
position: relative;
&::before {
content: '';
display: block;
width: 100%;
height: 100%;
background: $red;
position: absolute;
top: 0;
left: 0;
z-index: 0;
@extend %defaultTransition;
}
&:hover {
&::before {
width: 108%;
height: 108%;
top: -4%;
left: -4%;
}
img {
@include transform(scale(0.9));
}
}
img {
width: 100%;
display: block;
position: relative;
z-index: 1;
@extend %defaultTransition;
}
}
+24 -24
View File
@@ -1,51 +1,51 @@
////// sahel
@font-face {
font-family: 'sahel';
src: url("../fonts/sahel/Sahel-FD.eot"),
url("../fonts/sahel/Sahel-FD.ttf"),
url("../fonts/sahel/Sahel-FD.woff") ;
src: url("../fonts/sahel/Sahel-FD.eot") format('embedded-opentype'),
url("../fonts/sahel/Sahel-FD.ttf") format('truetype'),
url("../fonts/sahel/Sahel-FD.woff") format('woff');
}
@font-face {
font-family: 'sahel-bold';
src: url("../fonts/sahel/Sahel-Bold-FD.eot"),
url("../fonts/sahel/Sahel-Bold-FD.ttf"),
url("../fonts/sahel/Sahel-Bold-FD.woff") ;
src: url("../fonts/sahel/Sahel-Bold-FD.eot") format('embedded-opentype'),
url("../fonts/sahel/Sahel-Bold-FD.ttf") format('truetype'),
url("../fonts/sahel/Sahel-Bold-FD.woff") format('woff');
}
@font-face {
font-family: 'sahel-black';
src: url("../fonts/sahel/Sahel-Black-FD.eot"),
url("../fonts/sahel/Sahel-Black-FD.ttf"),
url("../fonts/sahel/Sahel-Black-FD.woff");
src: url("../fonts/sahel/Sahel-Black-FD.eot") format('embedded-opentype'),
url("../fonts/sahel/Sahel-Black-FD.ttf") format('truetype'),
url("../fonts/sahel/Sahel-Black-FD.woff") format('woff');
}
////// diodrum
@font-face {
font-family: 'diodrum';
src: url("../fonts/diodrum/Diodrum-Regular.eot"),
url("../fonts/diodrum/Diodrum-Regular.otf"),
url("../fonts/diodrum/Diodrum-Regular.ttf"),
url("../fonts/diodrum/Diodrum-Regular.woff"),
url("../fonts/diodrum/Diodrum-Regular.woff2");
src: url("../fonts/diodrum/Diodrum-Regular.eot") format('embedded-opentype'),
url("../fonts/diodrum/Diodrum-Regular.otf") format('opentype'),
url("../fonts/diodrum/Diodrum-Regular.ttf") format('truetype'),
url("../fonts/diodrum/Diodrum-Regular.woff") format('woff'),
url("../fonts/diodrum/Diodrum-Regular.woff2") format('woff2');
}
@font-face {
font-family: 'diodrum-bold';
src: url("../fonts/diodrum/Diodrum-Semibold.eot"),
url("../fonts/diodrum/Diodrum-Semibold.otf"),
url("../fonts/diodrum/Diodrum-Semibold.ttf"),
url("../fonts/diodrum/Diodrum-Semibold.woff"),
url("../fonts/diodrum/Diodrum-Semibold.woff2");
src: url("../fonts/diodrum/Diodrum-Semibold.eot") format('embedded-opentype'),
url("../fonts/diodrum/Diodrum-Semibold.otf") format('opentype'),
url("../fonts/diodrum/Diodrum-Semibold.ttf") format('truetype'),
url("../fonts/diodrum/Diodrum-Semibold.woff") format('woff'),
url("../fonts/diodrum/Diodrum-Semibold.woff2") format('woff2');
}
////// anton
@font-face {
font-family: 'anton';
src: url("../fonts/Anton/Anton.eot"),
url("../fonts/Anton/Anton.otf"),
url("../fonts/Anton/Anton.ttf"),
url("../fonts/Anton/Anton.woff"),
url("../fonts/Anton/Anton.woff2");
src: url("../fonts/Anton/Anton.eot") format('embedded-opentype'),
url("../fonts/Anton/Anton.otf") format('opentype'),
url("../fonts/Anton/Anton.ttf") format('truetype'),
url("../fonts/Anton/Anton.woff") format('woff'),
url("../fonts/Anton/Anton.woff2") format('woff2');
}
+276 -4
View File
@@ -5,6 +5,10 @@ body {
&:lang(en) {
direction: ltr;
}
&.offCanvas-active {
overflow: hidden;
}
}
p, a, span, b {
@@ -63,9 +67,20 @@ section {
padding: 0 0 100px;
}
@keyframes loading {
0% {
@include transform(rotateZ(0));
}
100% {
@include transform(rotateZ(360deg));
}
}
/////// global classes
.page {
min-height: calc(100vh - 200px);
overflow: hidden;
}
.logo {
@@ -77,13 +92,76 @@ section {
}
}
.offCanvas {
width: 100%;
position: fixed;
top: 140px;
right: -100%;
height: calc(100vh - 140px);
background: #fff;
z-index: 10;
overflow: scroll;
padding-bottom: 100px;
@include boxSizing(border-box);
@extend %defaultTransition;
&:lang(en) {
right: auto;
left: -100%;
}
&.header-small {
top: 90px;
height: calc(100vh - 90px);
}
&.active {
right: 0;
&:lang(en) {
right: auto;
left: 0;
}
}
.links {
padding: 25px;
ul {
li {
margin-bottom: 10px;
&.active {
a {
@include borderRadius(10px);
background: $red;
color: #fff;
}
}
&.title {
&.t2 {
margin-top: 30px;
}
}
a {
display: inline-block;
padding: 5px 10px;
@extend %defaultTransition;
}
}
}
}
}
.header {
width: 100%;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 5;
z-index: 11;
@include boxShadow(0 4px 10px rgba(0, 0, 0, 0.07));
.lang-bar {
@@ -181,10 +259,40 @@ section {
li {
text-align: right;
padding: 30px 0;
width: auto;
@extend %defaultTransition;
&:not(:first-child) {
margin: 0 50px;
@media (max-width: 1400px) {
& {
margin: 0 30px;
}
}
@media (max-width: 1100px) {
& {
margin: 0 20px;
}
}
@media (max-width: 920px) {
& {
margin: 0 15px;
a {
font-size: 15px;
}
}
}
@media (max-width: 810px) {
a {
font-size: 14px;
&:lang(en) {
font-size: 13px;
}
}
}
}
&.active {
@@ -251,6 +359,14 @@ section {
display: none;
}
}
&.sub-menu-active {
background: $red;
a {
color: #fff;
}
}
}
}
}
@@ -290,6 +406,57 @@ section {
}
}
.mobile {
ul {
li {
margin: 0 !important;
&.menu {
display: flex;
justify-content: flex-end;
align-items: center;
#menuBtn {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 25px;
height: 20px;
direction: ltr;
cursor: pointer;
.bars {
width: 100%;
height: 3px;
background: #000;
margin-bottom: 3px;
@extend %defaultTransition;
}
&.close {
.bars {
background: $red;
&.b1 {
@include transform(rotate(45deg) translate(4px, 7px));
}
&.b2 {
width: 0;
opacity: 0;
}
&.b3 {
@include transform(rotate(-45deg) translate(3px, -6px));
}
}
}
}
}
}
}
}
&.header-small {
.links {
li {
@@ -473,13 +640,14 @@ section {
.hero {
position: relative;
overflow: hidden;
.bg {
width: 100%;
height: 90vh;
background-size: cover;
-webkit-background-size: cover;
background-repeat: no-repeat;
-webkit-background-size: cover;
}
.txt {
@@ -541,6 +709,12 @@ section {
border: 1px solid #fff;
background: #fff;
color: #000;
&:hover {
color: #fff;
background: $red;
border: 1px solid $red;
}
}
}
@@ -552,6 +726,14 @@ section {
margin-top: -80px;
z-index: 0;
@include boxSizing(border-box);
@media (max-width: 992px) {
padding: 100px 15px !important;
}
@media (max-width: 575px) {
margin-left: -15px;
margin-right: -15px;
}
}
.title {
@@ -623,6 +805,12 @@ section {
img {
width: 100%;
}
@media (max-width: 992px) {
& {
width: 100%;
}
}
}
}
@@ -655,6 +843,7 @@ section {
p {
color: red;
padding-right: 1%;
}
}
@@ -688,7 +877,9 @@ section {
input, textarea {
@extend %appearance;
@extend %defaultTransition;
width: 100%;
width: 95%;
display: block;
margin: 0 auto;
border: 2px solid transparent;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
outline: none;
@@ -746,14 +937,25 @@ section {
&:lang(en) {
right: auto;
left: -30px;
@media (max-width: 992px) {
left: 10%;
}
}
@media (max-width: 992px) {
right: 10%;
}
}
@media (max-width: 992px) {
width: 100%;
}
}
}
}
}
.filters {
margin: 0 auto 50px;
@@ -790,3 +992,73 @@ section {
}
}
}
.page-load {
width: 100vw;
height: 100vh;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 20;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
direction: ltr !important;
opacity: 0;
visibility: hidden;
svg {
width: 70px;
}
p {
color: $theme;
}
}
.pre-loader {
width: 100vw;
height: 100vh;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 20;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
direction: ltr !important;
#preLoadserLogo {
width: 100px;
opacity: 0;
}
#loadingCircle {
width: 60px;
@include animation(loading 1.5s infinite);
position: absolute;
top: calc(50% - 30px);
left: calc(50% - 30px);
opacity: 1;
}
p {
opacity: 0;
span {
display: inline-block;
color: $theme;
font-size: 30px;
font-family: 'diodrum-bold';
font-weight: bold;
}
.tsWords {
margin-left: 10px;
}
}
}
+516 -108
View File
@@ -27,63 +27,90 @@
///////////////////////////// home page
.home--page {
#slider {
.slider-container {
overflow: hidden;
.hero {
.bg {
//background-image: url("../img/home/hp-s1-i1.jpg");
}
#slider {
overflow: hidden;
.txt--home {
width: 400px;
height: 300px;
position: absolute;
bottom: 20%;
right: 200px;
.hero {
overflow: hidden;
&:lang(en) {
right: auto;
left: 200px;
.bg {
//background-image: url("../img/home/hp-s1-i1.jpg");
}
h1 {
color: #fff;
.txt--home {
width: 400px;
height: 300px;
position: absolute;
bottom: 20%;
right: 200px;
padding: 0 15px;
@media (max-width: 768px) {
right: 0;
}
@media (max-width: 400px) {
width: 100%;
}
&:lang(en) {
font-family: 'anton';
right: auto;
left: 200px;
@media (max-width: 768px) {
left: 0;
}
}
h1 {
color: #fff;
&:lang(en) {
font-family: 'anton';
}
}
p {
color: #fff;
}
}
}
.slick-dots {
bottom: 80px;
li {
button::before {
font-size: 10px;
color: $red;
}
}
}
.slick-arrow {
color: $red;
z-index: 5;
&.slick-prev {
left: 80px;
@media (max-width: 992px) {
left: 40px;
}
}
p {
color: #fff;
&.slick-next {
right: 80px;
@media (max-width: 992px) {
right: 40px;
}
}
}
}
.slick-dots {
bottom: 80px;
li {
button::before {
font-size: 10px;
color: $red;
}
}
}
.slick-arrow {
color: $red;
z-index: 5;
&.slick-prev {
left: 80px;
}
&.slick-next {
right: 80px;
}
}
}
.s1 {
@@ -104,6 +131,13 @@
em {
line-height: 80px;
font-size: 30px;
@extend %defaultTransition;
}
&:hover {
em {
color: $red;
}
}
}
@@ -112,11 +146,18 @@
}
}
.s1-2 {
.s2 {
text-align: center;
@media (max-width: 1200px) {
.section-bg {
height: 450px;
object-fit: cover;
}
}
}
.s2 {
.s3 {
overflow-x: hidden;
.panel {
@@ -124,7 +165,7 @@
}
.parts {
width: 100%;
//width: 100%;
&.p1 {
width: 100%;
@@ -153,9 +194,16 @@
align-items: baseline;
}
}
@media (max-width: 1200px) {
.section-bg {
height: 450px;
object-fit: cover;
}
}
}
.s3 {
.s4 {
.panel {
padding: 100px 100px 200px;
@@ -170,39 +218,59 @@
margin-top: -100px;
padding: 0 100px;
@media (max-width: 992px) {
& {
margin-top: 0;
padding: 0;
}
}
.parts {
&.p2 {
text-align: center;
.imgBox {
.product {
display: block;
background: #fff;
padding-bottom: 20px;
@extend %defaultBoxShadow;
margin-bottom: 30px;
height: 100%;
p {
margin-top: 20px;
}
img {
width: 100%;
@include boxShadow(none);
.imgBox {
@extend %productHoverAnim;
img {
width: 100%;
}
}
}
}
}
}
@media (max-width: 1200px) {
.section-bg {
height: 450px;
object-fit: cover;
}
}
}
.s4 {
.s5 {
position: relative;
padding-bottom: 0;
.txt {
max-width: 600px;
height: 300px;
//height: 300px;
position: absolute;
top: 20%;
top: 50%;
right: 200px;
@include transform(translateY(-50%));
&:lang(en) {
right: auto;
@@ -227,59 +295,27 @@
margin-top: $mt;
color: #fff;
}
}
}
.s5 {
.panel {
background: $theme;
margin-top: 0;
@media (max-width: 992px) {
//top: 50%;
right: 0;
//@include transform(translateY(-50%));
max-width: 100%;
//height: auto;
padding: 0 15px;
.p1 {
text-align: center;
.title {
color: #fff;
&::after {
background: #fff;
}
}
p {
color: #fff;
&:lang(en) {
right: auto;
left: 0;
}
}
.form {
margin-top: 50px;
input, textarea {
border-bottom: 2px solid rgba(255, 255, 255, 0.5);
color: #fff;
&::placeholder {
color: rgba(255, 255, 255, 0.8);
}
&:focus {
@include boxShadow(0 0 5px rgba(#fff, 0.05));
border: 2px solid rgba(#fff, 0.1);
}
}
}
}
.watermark {
text-align: center;
padding-top: 100px;
svg {
width: 100px;
path {
fill: rgba(0, 0, 0, 0.1);
@media (max-width: 1600px) {
& {
.section-bg {
height: 550px;
object-fit: cover;
}
}
}
@@ -325,10 +361,31 @@
color: $theme;
font-family: 'diodrum-bold';
font-size: 40px;
@media (max-width: 450px) {
font-size: 30px;
}
@media (max-width: 300px) {
font-size: 25px;
}
}
p {
margin-top: 50px;
direction: rtl;
&:lang(en) {
direction: ltr;
}
@media (max-width: 992px) {
text-align: right;
&:lang(en) {
text-align: left;
}
}
}
}
@@ -343,6 +400,14 @@
&.p4 {
margin-bottom: 0;
text-align: center;
@media (max-width: 992px) {
text-align: right;
&:lang(en) {
text-align: left;
}
}
}
}
}
@@ -370,6 +435,10 @@
&.active {
border: 1px solid $red;
background: $red;
span {
color: $red;
}
}
span {
@@ -378,6 +447,15 @@
bottom: -40px;
left: 50%;
@include transform(translateX(-50%));
@extend %defaultTransition;
}
&:hover {
border: 1px solid $red;
span {
color: $red;
}
}
}
@@ -403,6 +481,10 @@
justify-content: center;
text-align: right;
&:lang(en) {
text-align: left;
}
p {
margin-top: 30px;
}
@@ -451,6 +533,11 @@
p {
font-family: 'diodrum-bold';
}
@media (max-width: 992px) {
text-align: center;
margin-top: 30px;
}
}
.img {
@@ -512,9 +599,14 @@
justify-content: center;
align-items: center;
margin-top: 100px;
flex-wrap: wrap;
img {
margin: 0 20px;
@media (max-width: 768px) {
margin-bottom: 10px;
}
}
}
}
@@ -533,6 +625,13 @@
text-align: center;
}
}
@media (max-width: 1200px) {
.section-bg {
height: 450px;
object-fit: cover;
}
}
}
}
@@ -551,15 +650,25 @@
.s2 {
text-align: center;
.product {
display: block;
background: #fff;
padding-bottom: 30px;
text-align: right;
height: 100%;
@extend %defaultBoxShadow;
img {
width: 100%;
&:lang(en) {
text-align: left;
}
.imgBox {
@extend %productHoverAnim;
img {
width: 100%;
}
}
h4 {
@@ -569,12 +678,11 @@
p {
padding: 0 15px;
margin-top: 10px;
margin-top: 15px;
}
}
.no-product {
width: 100%;
background: $red;
color: #fff;
padding: 20px;
@@ -652,6 +760,7 @@
///////////////////////////// products page
.product-details--page {
.hero {
.bg {
background-image: url('../img/products/products-hero.jpg');
@@ -663,13 +772,24 @@
.image-preview {
background: $bg;
width: 100%;
//width: 100%;
padding: 100px;
@include transform(translateY(200px));
@extend %defaultBoxShadow;
@media (max-width: 768px) {
padding: 0;
}
img {
width: 50%;
@media (max-width: 1200px) {
width: 80%;
}
@media (max-width: 992px) {
width: 100%;
}
}
}
@@ -768,6 +888,7 @@
.files {
display: flex;
justify-content: center;
flex-wrap: wrap;
.file {
text-align: center;
@@ -874,6 +995,16 @@
}
.no-project {
p {
background: $red;
color: #fff;
padding: 20px;
margin-top: 80px;
text-align: center;
}
}
}
.s2 {
@@ -921,13 +1052,31 @@
padding-bottom: 30px;
margin-top: 0;
@media (max-width: 1200px) {
padding-left: 15px;
}
@media (max-width: 992px) {
flex-wrap: wrap;
padding-top: 15px !important;
padding-bottom: 15px !important;
}
.imgBox {
flex-basis: 30%;
@media (max-width: 992px) {
flex-basis: 100%;
}
.img {
width: 140%;
position: relative;
@media (max-width: 992px) {
width: 100%;
}
&::before {
content: '';
display: block;
@@ -940,6 +1089,13 @@
z-index: -1;
}
&:lang(en) {
&::before {
right: auto;
left: -15px;
}
}
img {
width: 100%;
height: 100%;
@@ -952,14 +1108,27 @@
flex-basis: 70%;
padding: 0 15px;
@media (max-width: 992px) {
flex-basis: 100%;
}
.date-category {
width: 100%;
text-align: right;
margin-bottom: 30px;
&:lang(en) {
text-align: left;
}
.category {
margin-left: 20px;
&:lang(en) {
margin-left: 0;
margin-right: 20px;
}
span {
display: inline-block;
}
@@ -969,6 +1138,14 @@
.btn {
float: left;
margin-top: 50px !important;
@media (max-width: 1400px) {
margin-top: 40px !important;
}
@media (max-width: 1200px) {
margin-top: 30px !important;
}
}
h4 {
@@ -979,7 +1156,6 @@
}
.no-post {
width: 100%;
background: $red;
color: #fff;
padding: 20px;
@@ -1036,6 +1212,52 @@
}
}
}
.content {
direction: rtl;
text-align: right;
&:lang(en) {
direction: ltr;
text-align: left;
}
a {
color: blue;
}
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
font-family: 'sahel', sans-serif;
direction: unset;
text-align: unset;
&:lang(en) {
font-family: 'diodrum';
direction: unset;
text-align: unset;
}
&[dir="ltr"] {
direction: ltr;
text-align: left;
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
direction: ltr;
text-align: left;
}
}
&[dir="rtl"] {
direction: rtl;
text-align: right;
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
direction: rtl;
text-align: right;
}
}
}
}
}
.s2 {
@@ -1071,6 +1293,11 @@
i {
color: $red;
margin-left: 5px;
&:lang(en) {
margin-left: 0;
margin-right: 5px;
}
}
}
}
@@ -1094,6 +1321,11 @@
display: inline-block;
margin-left: 20px;
&:lang(en) {
margin-left: 0;
margin-right: 20px;
}
a {
&:hover {
i {
@@ -1177,6 +1409,16 @@
}
}
}
.i1 {
width: 100%;
max-width: 325px;
}
.i2 {
width: 100%;
max-width: 768px;
}
}
h2 {
@@ -1225,3 +1467,169 @@
}
}
}
///////////////////////////// calculation page
.calculation--page {
.hero {
.bg {
background-image: url('../img/calculation/hero.jpg');
}
}
.s1 {
}
.s2 {
.app {
.appTitle {
text-align: center;
}
.appMethod {
text-align: center;
margin-bottom: 50px;
background: $red;
padding: 15px;
span {
color: #fff;
}
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
background-color: $darkGray;
border-color: $darkGray;
@include boxShadow(-1px 0 0 0 $darkGray);
}
.el-radio-button .el-radio-button__inner {
color: $red;
}
.el-radio-button.is-active .el-radio-button__inner {
color: #fff;
}
}
.appLayout {
padding: 55px;
background: $red;
height: 100%;
@include boxSizing(border-box);
@media (max-width: 1400px) {
padding: 55px 15px;
}
span, p, b, * {
color: #fff;
}
input {
color: $red;
}
button {
color: $red;
span {
color: $red;
}
}
.layoutTitle {
margin-bottom: 50px;
}
.class {
margin-bottom: 40px;
h4 {
margin-bottom: 15px;
}
}
.calculateBtn {
text-align: center;
.btn {
@include borderRadius(5px);
&:hover {
background: $darkGray;
color: #fff;
}
}
}
.el-radio {
margin-bottom: 15px;
}
.el-radio__input.is-checked .el-radio__inner {
background-color: $darkGray;
border-color: $darkGray;
}
.el-form-item__label {
@media (max-width: 600px) {
float: none !important;
&:lang(fa) {
float: none !important;
}
}
}
.el-form-item__content {
margin-left: 200px !important;
@media (max-width: 600px) {
margin-left: 0 !important;
}
&:lang(fa) {
margin-left: 0 !important;
margin-right: 200px !important;
@media (max-width: 600px) {
margin-right: 0 !important;
}
}
}
.el-input--suffix .el-input__inner {
padding-right: 15px;
}
.el-input__inner {
&::placeholder {
color: $darkGray;
}
}
}
.el-input {
//width: auto;
//
//@media (max-width: 600px) {
// width: 100%;
//}
}
.el-select {
width: 100%;
}
.el-radio {
margin-right: 20px;
&:lang(fa) {
margin-right: 0;
margin-left: 20px;
}
}
}
}
}