File tree Expand file tree Collapse file tree 4 files changed +60
-9
lines changed
97-terminal style landing page Expand file tree Collapse file tree 4 files changed +60
-9
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,21 @@ <h3>Find me online:</h3>
4242 </ div >
4343 < div class ="hidden ">
4444 < div id ="about-content ">
45- < h2 > about-me:$</ h2 >
45+ < h2 > about-me:$< span class =" cursor " > | </ span > < /h2 >
4646 < p >
47- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam, soluta?
47+ My name is Dagny Taggart and I have been programming for 14 years.
4848 </ p >
4949 < p >
50- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam, soluta?
50+ Some of the languages that I am fluent in include JavaScript, Python
51+ and PHP.
5152 </ p >
5253 </ div >
5354 < div id ="contact-content ">
54- < h2 > contact-me:$</ h2 >
55- < p >
56- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam, soluta?
57- </ p >
55+ < h2 > contact-me:$< span class ="cursor "> |</ span > </ h2 >
56+ < p > You can contact me at the email and phone number below</ p >
5857 < ul >
5958 < li > Phone: 555-555-5555</ li >
60- < li > Email: brad@email .com</ li >
59+ < li > Email: dagny@taggart .com</ li >
6160 </ ul >
6261 </ div >
6362 </ div >
Original file line number Diff line number Diff line change 1+ const about = document . querySelector ( "#about" ) ;
2+ const contact = document . querySelector ( "#contact" ) ;
3+ const aboutContent = document . querySelector ( "#about-content" ) ;
4+ const contactContent = document . querySelector ( "#contact-content" ) ;
5+
6+ about . addEventListener ( "click" , ( ) => {
7+ const aboutBox = new WinBox ( {
8+ title : "About Me" ,
9+ // modal: true,
10+ width : "400px" ,
11+ height : "400px" ,
12+ top : 50 ,
13+ right : 50 ,
14+ bottom : 50 ,
15+ left : 50 ,
16+ mount : aboutContent ,
17+ onfocus : function ( ) {
18+ this . setBackground ( "var(--text-color)" ) ;
19+ } ,
20+ onblur : function ( ) {
21+ this . setBackground ( "#777" ) ;
22+ } ,
23+ } ) ;
24+ } ) ;
25+
26+ contact . addEventListener ( "click" , ( ) => {
27+ const contactBox = new WinBox ( {
28+ title : "Contact Me" ,
29+ width : "400px" ,
30+ height : "400px" ,
31+ top : 100 ,
32+ right : 50 ,
33+ bottom : 50 ,
34+ left : 150 ,
35+ mount : contactContent ,
36+ onfocus : function ( ) {
37+ this . setBackground ( "var(--text-color)" ) ;
38+ } ,
39+ onblur : function ( ) {
40+ this . setBackground ( "#777" ) ;
41+ } ,
42+ } ) ;
43+ } ) ;
Original file line number Diff line number Diff line change 7171 display : none;
7272}
7373
74+ .wb-body {
75+ background-color : # 111 ;
76+ padding : 20px ;
77+ }
78+
79+ p {
80+ margin : 20px 0 ;
81+ }
82+
7483.cursor {
7584 font-weight : 700 ;
7685 animation : 1s blink step-end infinite;
Original file line number Diff line number Diff line change 102102| 94 | [ Laptop UI] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/94-laptop%20UI ) | [ Live Demo] ( https://codepen.io/solygambas/full/eYgoxMo ) |
103103| 95 | [ Headphones Product Page] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/95-headphones%20product%20page ) | [ Live Demo] ( https://codepen.io/solygambas/full/KKaLmEr ) |
104104| 96 | [ Cloud Hosting Service] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/96-cloud%20hosting%20service ) | [ Live Demo] ( https://codepen.io/solygambas/full/oNBrXYr ) |
105- | 97 | [ Terminal Style Landing Page] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/97-terminal%20style%20landing%20page ) | [ Live Demo] ( # ) |
105+ | 97 | [ Terminal Style Landing Page] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/97-terminal%20style%20landing%20page ) | [ Live Demo] ( https://codepen.io/solygambas/full/BaWvXLG ) |
106106
107107This repository is mostly based on 2 courses by Brad Traversy (2020):
108108
You can’t perform that action at this time.
0 commit comments