File tree Expand file tree Collapse file tree 3 files changed +52
-8
lines changed Expand file tree Collapse file tree 3 files changed +52
-8
lines changed Original file line number Diff line number Diff line change 11< section id ="home " class ="hero ">
22 < div class ="hero-content ">
33 < h1 > Rohit Kumar</ h1 >
4- < p > AI Enginner | Deep Learning Engineer | Computer Vision </ p >
5- < div class ="profile-image ">
6- < img src ="images/rohit-in-berlin.jpg " alt ="Rohit Kumar ">
4+ < p > AI Engineer | Deep Learning Engineer | Computer Vision </ p >
5+ < div class ="profile-card ">
6+ < div class ="profile-card-inner ">
7+ < div class ="profile-card-front ">
8+ < img src ="images/rohit-in-berlin.jpg " alt ="Rohit Kumar ">
9+ </ div >
10+ < div class ="profile-card-back ">
11+ < img src ="images/coder.png " alt ="Code Sample ">
12+ </ div >
13+ </ div >
714 </ div >
815 < a href ="#about " class ="cta-button "> Learn More</ a >
916 </ div >
Original file line number Diff line number Diff line change @@ -79,21 +79,58 @@ body {
7979 color : # 2c3e50 ;
8080}
8181
82- .profile-image {
82+ .profile-card {
8383 width : 200px ;
8484 height : 200px ;
8585 margin : 2rem auto;
86+ perspective : 1000px ;
87+ cursor : pointer;
88+ }
89+
90+ .profile-card-inner {
91+ position : relative;
92+ width : 100% ;
93+ height : 100% ;
94+ text-align : center;
95+ transition : transform 0.8s ;
96+ transform-style : preserve-3d;
97+ }
98+
99+ .profile-card : hover .profile-card-inner {
100+ transform : rotateY (180deg );
101+ }
102+
103+ .profile-card-front ,
104+ .profile-card-back {
105+ position : absolute;
106+ width : 100% ;
107+ height : 100% ;
108+ backface-visibility : hidden;
86109 border-radius : 50% ;
87110 overflow : hidden;
88111 box-shadow : 0 4px 15px rgba (0 , 0 , 0 , 0.1 );
89112 border : 3px solid # fff ;
90113}
91114
92- .profile-image img {
115+ .profile-card-front {
116+ background-color : # fff ;
117+ }
118+
119+ .profile-card-back {
120+ background-color : # 2c3e50 ;
121+ transform : rotateY (180deg );
122+ }
123+
124+ .profile-card-front img ,
125+ .profile-card-back img {
93126 width : 100% ;
94127 height : 100% ;
95128 object-fit : cover;
96- object-position : center;
129+ }
130+
131+ .profile-card-back img {
132+ object-fit : cover;
133+ filter : brightness (0.9 ) contrast (1.1 );
97134}
98135
99136/* About Section */
@@ -283,7 +320,7 @@ footer {
283320 font-size : 2.5rem ;
284321 }
285322
286- .profile-image {
323+ .profile-card {
287324 width : 180px ;
288325 height : 180px ;
289326 }
@@ -336,7 +373,7 @@ footer {
336373 font-size : 0.95rem ;
337374 }
338375
339- .profile-image {
376+ .profile-card {
340377 width : 150px ;
341378 height : 150px ;
342379 }
You can’t perform that action at this time.
0 commit comments