Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cb6b3b

Browse files
committed
add terminal JS
1 parent344983e commit1cb6b3b

File tree

4 files changed

+60
-9
lines changed

4 files changed

+60
-9
lines changed

‎97-terminal style landing page/index.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,21 @@ <h3>Find me online:</h3>
4242
</div>
4343
<divclass="hidden">
4444
<divid="about-content">
45-
<h2>about-me:$</h2>
45+
<h2>about-me:$<spanclass="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
<divid="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:$<spanclass="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>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
constabout=document.querySelector("#about");
2+
constcontact=document.querySelector("#contact");
3+
constaboutContent=document.querySelector("#about-content");
4+
constcontactContent=document.querySelector("#contact-content");
5+
6+
about.addEventListener("click",()=>{
7+
constaboutBox=newWinBox({
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+
constcontactBox=newWinBox({
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+
});

‎97-terminal style landing page/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ a {
7171
display: none;
7272
}
7373

74+
.wb-body {
75+
background-color:#111;
76+
padding:20px;
77+
}
78+
79+
p {
80+
margin:20px0;
81+
}
82+
7483
.cursor {
7584
font-weight:700;
7685
animation:1s blink step-end infinite;

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
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

107107
This repository is mostly based on 2 courses by Brad Traversy (2020):
108108

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp