-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
210 lines (204 loc) · 9.96 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<link href="./meyerweb.com_eric_tools_css_reset_reset.css" rel="stylesheet" />
<link href="./styles.css" rel="stylesheet" />
</head>
<body>
<section class="dashboard">
<h1>Dashboard</h1>
<div class="links">
<a href="">Home</a>
<a href="">Profile</a>
<a href="">Messages</a>
<a href="">History</a>
<a href="">Tasks</a>
</div>
<div class="links">
<a href="#">Settings</a>
<a href="#">Profile</a>
</div>
</section>
<header>
<p class="search-bar">
<label for="site_search">
<img src="./imgs/magnify.svg" alt="search for something"/>
</label>
<input type="search" id="site_search" name="search_item" spellcheck="true" />
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<title>bell-outline</title>
<path
d="M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z" />
</svg>
<img src="./imgs/purple-profile.png" class="profile" style="width: 38px; margin-left:10px;" alt="profile picture" />
<span style="font-family: 'caviar_dreamsbold'; margin-left: 5px;">Vatsal</span>
</p>
<img src="./imgs/purple-profile.png" class="profile" style="width: 75px;" alt="profile picture smaller" />
<span class="hello-message">
<h4>Hi there,</h4>
<h2>vavyVatsal (@vatsal)</h2>
</span>
<p class="second-header-bar" style="display: flex; flex-wrap: wrap; justify-content: flex-end;">
<button>New</button>
<button>Share</button>
<button>Upload</button>
</p>
</header>
<section class="content">
<main>
<section class="your-projects">
<h2>Your projects</h2>
<div class="content">
<div>
<h4>Library-app</h4>
<p>Create your own digital library and keep track of how many books you have read.</p>
<p id="page-links">
<a href="https://rajvatsal.github.io/library-app/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/library-app" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Sign Up</h4>
<p>This is a sign-up page</p>
<p id="page-links">
<a href="https://rajvatsal.github.io/sign-up-form/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/sign-up-form" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Arithmatix</h4>
<p>Checkout this calculator</p>
<p id="page-links">
<a href="https://rajvatsal.github.io/calculator/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/calculator" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Rock Paper Scissors</h4>
<p>Play a game of rock paper and scissors against the computer</p>
<p id="page-links">
<a href="https://rajvatsal.github.io/rock-Paper-Scissors/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/rock-Paper-Scissors" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Etch a sketch</h4>
<p>Draw away in a Digital Stylus</p>
<p id="page-links">
<a href="https://rajvatsal.github.io/etch-a-sketch/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/etch-a-sketch" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Landing Page</h4>
<p>My first every landing page<p>
<p id="page-links">
<a href="https://rajvatsal.github.io/landing-page/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/landing-page" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
<div>
<h4>Odin recipes</h4>
<p>Read about delicious recipes<p>
<p id="page-links">
<a href="https://rajvatsal.github.io/odin-recipes/" target="_blank"><img src="./imgs/open-in-new.svg" alt="Go to live page"/></a>
<a href="https://github.com/rajvatsal/odin-recipes" target="_blank"><img src="./imgs/github.svg" alt="Go to code repository"/></a>
</p>
</div>
</div>
</section>
<div class="side-panel-main">
<section class="announcements">
<h2>Announcements</h2>
<div class="content">
<div>
<h4>Site Maintenance</h4>
<p>please keep maintaining your site</p>
</div>
<div>
<h4>Community Share Day</h4>
<p>share your code</p>
</div>
<div>
<h4>Updated Privacy Policy</h4>
<p>checkout new updated policy</p>
</div>
</div>
</section>
<section class="trending">
<h2>Trending</h2>
<div class="content">
<div>
<img src="imgs/ostrich.png" alt="ostrich">
<div>
<h4>@tegan</h4>
<p>world peace builder</p>
</div>
</div>
<div>
<img src="imgs/bear.png" alt="bear">
<div>
<h4>@morgan</h4>
<p>super cool project</p>
</div>
</div>
<div>
<img src="imgs/bull.png" alt="bull">
<div>
<h4>@kendall</h4>
<p>life changing app</p>
</div>
</div>
<div>
<img src="imgs/penguin.png" alt="penguin">
<div>
<h4>@alex</h4>
<p>no traffic maker</p>
</div>
</div>
</div>
</section>
</div>
</main>
</section>
<footer>
<p>Icons made by Freepik from</p>
<a href="https://www.flaticon.com/" target="_blank">www.flaticon.com</a>
</footer>
<script>
/*const divs = document.querySelectorAll('.your-projects .content div');
let target = 0;
divs.forEach(div => div.addEventListener('mouseover', changeColor));
function changeColor(e) {
if(e.target.tagName !== 'DIV') return
target = e.target;
let git = e.target.querySelector('a:last-child>img');
let link = e.target.querySelector('a:first-child>img')
git.src = './imgs/github-white.svg';
link.src = './imgs/link-white.svg';
}
divs.forEach(div => div.addEventListener('mouseleave', revertColor));
function revertColor(e) {
if(e.target.tagName !== 'DIV') return
let git = target.querySelector('a:nth-child(2)>img')
let link = e.target.querySelector('a:first-child>img')
git.src = './imgs/github.svg';
link.src = './imgs/open-in-new.svg';
}
*/
const projects = document.querySelectorAll('.your-projects div:not(.content)');
projects.forEach(project => project.addEventListener('pointermove', (pos) => {
let rect = pos.currentTarget.getBoundingClientRect(); //Get the position and size of the element relative to view port
let x = pos.clientX - rect.left - 20; // -20 cuz it's a little too right from the center of the cursor
let y = pos.clientY - rect.top;
x = (x / pos.currentTarget.offsetWidth * 100); // Divide by width of the element to get in percent
y = (y / pos.currentTarget.offsetHeight * 100);
project.style.setProperty('--mouse-x', x + '%');
project.style.setProperty('--mouse-y', y + '%');
}));
</script>
</body>
</html>