-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
274 lines (237 loc) · 7.88 KB
/
index.html
File metadata and controls
274 lines (237 loc) · 7.88 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reuben Portfolio</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
chat-container {
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
width: 300px;
margin: auto;
padding: 10px;
}
.messages {
max-height: 300px;
overflow-y: auto;
}
.user-message {
background-color: #f0f0f0;
border-radius: 5px;
padding: 5px 10px;
margin-bottom: 5px;
}
.bot-message {
background-color: #d9edf7;
border-radius: 5px;
padding: 5px 10px;
margin-bottom: 5px;
}
body {
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
background: linear-gradient(45deg, #3498db, #8e44ad);
color: #fff;
scroll-behavior: smooth; /* Smooth scrolling for the entire page */
}
header {
text-align: center;
padding: 50px;
}
h1 {
font-size: 3em;
margin: 0;
}
p {
font-size: 1.2em;
margin: 0;
}
section {
display: flex;
justify-content: space-around;
align-items: center;
height: 80vh;
}
.card {
background: linear-gradient(45deg, #3498db, #9b59b6);
padding: 20px;
border-radius: 10px;
width: 300px;
text-align: center;
transition: transform 0.3s ease-in-out;
}
.card:hover {
transform: scale(1.05);
}
.card h2 {
font-size: 28px;
}
.arrow-down {
text-align: center;
margin-top: 20px;
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
}
.arrow-down i {
font-size: 2em;
color: #fff;
}
footer {
text-align: center;
padding: 20px;
}
/* Navigation Animation */
nav {
background: rgba(52, 73, 94, 0.8);
padding: 10px;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
transition: background 0.3s ease-in-out;
}
nav a {
color: #fff;
text-decoration: none;
margin: 0 10px;
font-size: 18px;
transition: color 0.3s ease-in-out;
}
nav a:hover {
color: #3498db;
}
/* Interactive Background */
.interactive-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
overflow: hidden;
}
.background-layer {
position: absolute;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
opacity: 0.5;
animation: backgroundAnimation 30s linear infinite;
}
/* Responsive Design */
@media (max-width: 768px) {
header {
padding: 30px;
}
h1 {
font-size: 2em;
}
p {
font-size: 1em;
}
section {
flex-direction: column;
height: auto;
}
.card {
margin-bottom: 20px;
}
}
</style>
</head>
<body>
<div class="interactive-background">
<div class="background-layer" style="background-image: url('https://images.squarespace-cdn.com/content/v1/5769fc401b631bab1addb2ab/1541580611624-TE64QGKRJG8SWAIUS7NS/ke17ZwdGBToddI8pDm48kPoswlzjSVMM-SxOp7CV59BZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZamWLI2zvYWH8K3-s_4yszcp2ryTI0HqTOaaUohrI8PI6FXy8c9PWtBlqAVlUS5izpdcIXDZqDYvprRqZ29Pw0o/coding-freak.gif');"></div>
</div>
<nav>
<a href="#about">About</a>
<a href="#hobbies">Hobbies</a>
<a href="#games">Games</a>
<a href="#things">Other Things</a>
<a href="#contact">Contact</a>
</nav>
<header id="about">
<h1>Reuben</h1>
<p>Day Dreaming Dev
<br>
</header>
<section>
<div class="card" id="hobbies">
<h2>Hobbies</h2>
<p>I love Programming/Coding in Python, Html, CSS, Javascript Learning-Java
</p>
</div>
<div class="card" id="games">
<h2>Games I Play</h2>
<p>I enjoy playing games
</p>
</div>
<div class="card" id="things">
<h2>Other Things</h2>
<p>I love soccer and playing guitar, Metallica is my favorite band
Fanático del Real Madrid
</p>
</div>
</section>
<div class="arrow-down">
<a href="#contact"><i class="fas fa-arrow-down"></i></a>
</div>
<footer id="contact">
<p>Discord-@reubendisc</p>
<div class="h2">
<h4><a href="https://github.com/ReubenStill" target="_blank">My GitHub profile</a></h4>
<h4><a href="https://replit.com/@susanlijy7" target="_blank">My Replit profile</a></h4>
</div>
</footer>
<script>
// Add smooth scroll to anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Change navigation background on scroll
window.addEventListener('scroll', function () {
const nav = document.querySelector('nav');
const header = document.querySelector('header');
if (window.scrollY > header.offsetHeight) {
nav.style.background = '#34495e';
} else {
nav.style.background = 'rgba(52, 73, 94, 0.8)';
}
});
<div class="chat-container">
<div class="messages" id="messages">
<div class="bot-message">Welcome! How can I assist you today?</div>
</div>
<input type="text" id="user-input" placeholder="Type your message...">
<button onclick="sendMessage()">Send</button>
</div>
<script>
function sendMessage() {
var userInput = document.getElementById('user-input').value;
var messagesContainer = document.getElementById('messages');
var userMessage = '<div class="user-message">' + userInput + '</div>';
var botMessage = '<div class="bot-message">Sorry, I am just a demo chatbot. I cannot respond.</div>';
messagesContainer.innerHTML += userMessage;
setTimeout(function() {
messagesContainer.innerHTML += botMessage;
messagesContainer.scrollTop = messagesContainer.scrollHeight;
}, 1000);
document.getElementById('user-input').value = '';
}
</script>
</body>
</html>