@@ -783,13 +783,96 @@ section#features-content > div:last-child{
783
783
784
784
section # features-text {
785
785
background-color : var (--color-secondary );
786
+
786
787
}
787
788
788
789
section # testimonials {
789
- background-color : var (--color-secondary );
790
+ /* background-color: var(--color-primary); */
790
791
grid-column : center-start / center-end;
792
+ padding : var (--padding-section );
793
+
794
+ display : grid;
795
+ grid-template-columns : repeat (auto-fit, 28rem );
796
+ gap : 5rem ;
797
+ place-content : center;
798
+ }
799
+
800
+ .testimonials__card {
801
+ width : 28rem ;
802
+ height : 50rem ;
803
+ position : relative;
804
+ }
805
+
806
+ .testimonials__card--front ,
807
+ .testimonials__card--back {
808
+ background-repeat : no-repeat;
809
+ background-size : cover;
810
+ background-position : center;
811
+
812
+ position : absolute;
813
+ top : 0 ;
814
+ left : 0 ;
815
+ width : 100% ;
816
+ height : 100% ;
817
+ transition : all var (--transition-duration ) ease-in-out;
818
+ backface-visibility : hidden;
819
+ transform : perspective (100rem );
820
+
821
+ display : grid;
822
+ justify-items : center;
823
+ align-items : start;
824
+ padding : 3rem ;
825
+ }
826
+
827
+ .testimonials__card--front h2 {
828
+ background-color : var (--color-secondary-m-light );
829
+ padding : 1rem ;
830
+ border-bottom-left-radius : 50% ;
831
+ border-bottom-right-radius : 50% ;
832
+ }
833
+
834
+ .testimonials__card--back p {
835
+ align-self : center;
836
+ font-size : 2rem ;
837
+ font-weight : 400 ;
838
+ }
839
+
840
+ .testimonials__card : first-child .testimonials__card--front {
841
+ background-image : url (img/Testimonials/testimonials-1.jpg);
842
+ }
843
+
844
+ .testimonials__card : nth-child (2 ) .testimonials__card--front {
845
+ background-image : url (img/Testimonials/testimonials-2.jpg);
846
+ }
847
+
848
+ .testimonials__card : nth-child (3 ) .testimonials__card--front {
849
+ background-image : url (img/Testimonials/testimonials-3.jpg);
791
850
}
792
851
852
+ .testimonials__card : nth-child (4 ) .testimonials__card--front {
853
+ background-image : url (img/Testimonials/testimonials-4.jpg);
854
+ }
855
+
856
+ .testimonials__card : nth-child (5 ) .testimonials__card--front {
857
+ background-image : url (img/Testimonials/testimonials-5.jpg);
858
+ }
859
+
860
+ .testimonials__card : nth-child (6 ) .testimonials__card--front {
861
+ background-image : url (img/Testimonials/testimonials-6.jpg);
862
+ }
863
+
864
+ .testimonials__card--back {
865
+ transform : perspective (100rem ) rotateY (0.5turn );
866
+ background-color : var (--color-secondary );
867
+ }
868
+
869
+ .testimonials__card : hover .testimonials__card--front {
870
+ transform : perspective (100rem ) rotateY (0.5turn );
871
+ }
872
+
873
+ .testimonials__card : hover .testimonials__card--back {
874
+ transform : perspective (100rem ) rotateY (1turn );
875
+ }
793
876
footer # footer {
794
877
background-color : var (--color-primary );
795
878
grid-column : container-start / container-end;
0 commit comments