-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
171 lines (167 loc) · 6.79 KB
/
Copy pathindex.html
File metadata and controls
171 lines (167 loc) · 6.79 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="256.png" type="image/png">
<title>Eggy115</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1a1a1a; /* Dark background color */
color: #e0e0e0; /* Light text color */
display: flex;
flex-direction: column;
min-height: 100vh; /* Make the body take up at least the full viewport height */
}
header, footer {
background-color: #4caf50; /* Green header and footer background color */
padding: 10px;
color: #fff;
text-align: center;
animation: changeHue 10s infinite alternate; /* Apply the hue animation */
}
@keyframes changeHue {
0% {
filter: hue-rotate(0deg); /* Starting hue rotation value */
}
100% {
filter: hue-rotate(360deg); /* Ending hue rotation value (360deg for a full cycle) */
}
}
main {
display: flex; /* Use flexbox to create a two-column layout */
max-width: 1000px;
margin: 20px auto;
flex-wrap: wrap; /* Allow elements to wrap within the flex container */
justify-content: space-between; /* Align items at the edges */
}
.profile {
flex: 1 0 250px; /* Allow the profile to grow, but not shrink below 250px */
display: flex;
flex-direction: column;
}
.profile-inner,
.blog {
padding: 20px;
background-color: #292929; /* Darker content background color */
border: 1px solid #444;
border-radius: 5px;
}
.profile-picture {
max-width: 150px;
border-radius: 50%;
display: block;
margin: 0 auto 20px;
}
.info {
text-align: left;
}
.info p {
margin: 5px 0;
}
.description {
font-size: 1.1em;
line-height: 1.6;
text-align: justify; /* Justified text alignment */
}
.blogs-container {
flex: 1 0 600px; /* Allow the blogs to grow, but not shrink below 600px */
max-width: 600px; /* Limit the width of the blog container */
margin-left: 20px; /* Add some space between the profile and blogs */
display: flex;
flex-direction: column;
}
.blog {
background-color: #292929; /* Use the same background color as the profile */
color: #e0e0e0;
padding: 20px;
margin-bottom: 20px;
border: 1px solid #444;
border-radius: 5px;
}
footer {
text-align: center;
padding: 10px;
background-color: #4caf50; /* Green footer background color */
color: #fff;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
display: block; /* Initially show the footer */
transition: transform 0.3s ease-in-out; /* Add smooth transition when showing/hiding */
}
.footer-hidden {
transform: translateY(100%); /* Move the footer outside the viewport */
}
</style>
</head>
<body>
<header>
<h1>Eggy115</h1>
</header>
<main>
<div class="profile">
<div class="profile-inner">
<img class="profile-picture" src="mainpfp.png" alt="Profile Picture"> <!-- Update the path to the profile picture -->
<div class="info">
<p>Name: Eggy115</p>
<p>Location: New York, USA</p>
<p>Email: eggy115@example.com</p>
</div>
<div class="description">
<p>Hello! Welcome to my website. Here is some text. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
</div>
</div>
</div>
<div class="blogs-container">
<div class="blog">
<h2>Blog Post 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel ultricies est.</p>
</div>
<div class="blog">
<h2>Blog Post 2</h2>
<p>Phasellus ac felis tincidunt, volutpat nunc a, bibendum libero.</p>
</div>
<div class="blog">
<h2>Blog Post 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel ultricies est.</p>
</div>
<div class="blog">
<h2>Blog Post 2</h2>
<p>Phasellus ac felis tincidunt, volutpat nunc a, bibendum libero.</p>
</div>
<div class="blog">
<h2>Blog Post 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel ultricies est.</p>
</div>
<div class="blog">
<h2>Blog Post 2</h2>
<p>Phasellus ac felis tincidunt, volutpat nunc a, bibendum libero.</p>
</div>
<!-- Add more blog posts as needed -->
</div>
</main>
<footer class="show-footer">
<p>© 2023 Eggy115. All rights reserved.</p>
</footer>
<script>
let prevScrollPos = window.pageYOffset;
const footer = document.querySelector('footer');
window.addEventListener('scroll', () => {
const currentScrollPos = window.pageYOffset;
if (currentScrollPos > prevScrollPos && currentScrollPos > 50) {
// Scrolling down and not near the top, hide the footer
footer.classList.add('footer-hidden');
} else {
// Scrolling up or near the top, show the footer
footer.classList.remove('footer-hidden');
}
prevScrollPos = currentScrollPos;
});
</script>
</body>
</html>