-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPageEditorStudent2.html
149 lines (117 loc) Β· 4.3 KB
/
PageEditorStudent2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Editor</title>
<link rel="stylesheet" href="pageEditor.css">
<style>
*,
::before,
::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.go-top-btn {
position: fixed;
bottom: 35px;
right: 35px;
border-radius: 50%;
cursor: pointer;
height: 60px;
width: 60px;
background: #fff;
border: 3px solid #333;
display: none;
justify-content: center;
align-items: center;
}
.go-top-btn img {
width: 50px;
height: 50px;
}
</style>
</head>
<body>
<section class="home">
<div class="home-image">
<img src="images/Home/TPB.svg" alt="my picture" class="img1">
</div>
<div class="home-content">
<h1>
Pasindu Dilshan
</h1>
<br>
<h3>
IIT ID : 20230294
</h3>
<h3>
UoW ID : W2083184
</h3>
<br>
<p>Role : Student 2</p>
</div>
</section>
<div class="break"></div>
<section>
<div class="main-content">
<div class="card-heading">
<h2>The following pages were edited by me!</h2>
</div>
<div class="card-container">
<div class="card">
<img src="images/PageEditor/(10).jpg" alt="home">
<div class="card-content">
<h1>HOME</h1>
<P>I designed a homepage using HTML and enhanced its appearance by adding CSS for hover effects and other stylings.<P>
<br><a href="Home.html" class="card-button" target="_blank">LINK TO HOME</a>
</div>
</div>
<div class="card">
<img src="images/PageEditor/(8).jpg" alt="feedback">
<div class="card-content">
<h1>FEEDBACK</h1>
<P>I created a feedback page using HTML forms, CSS styling, and JavaScript. The user inputs are validated by using JavaScript.</P>
<br><a href="Feedback.html" class="card-button" target="_blank">LINK TO FEEDBACK</a>
</div>
</div>
<div class="card">
<img src="images/PageEditor/(9).jpg" alt="content">
<div class="card-content">
<h1>CONTENT</h1>
<P>I created a content page with HTML and used CSS to enhance its appearance. I also added links to the contents for easy navigation.</P>
<br><a href="contentPageStudent2.html" class="card-button" target="_blank">LINK TO CONTENT</a>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="footerContent">
<p>Designed by @Pasindu Dilshan</p>
<button class="go-top-btn">
<img src="images/PageEditor/arrow-up.png" alt="arrow up">
</button>
<script>
const goTopBtn = document.querySelector('.go-top-btn');
window.addEventListener('scroll', checkHeight)
function checkHeight(){
if(window.scrollY > 200) {
goTopBtn.style.display = "flex"
} else {
goTopBtn.style.display = "none"
}
}
goTopBtn.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: "smooth"
})
})
</script>
<br>
</div>
</footer>
</body>
</html>