-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
242 lines (242 loc) · 9.95 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
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
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div className="container">
<header className="section hero">
<h2 className="section__heading">Designer and Full-stack Developer</h2>
<p className="section__subheading">
I design and code beautifully simple things, and I do it with care.
</p>
<img src="./img/profile.jpg" className="profile" alt="my-profile" /> <br />
<img
src="./img/hero-illustration.svg"
className="illustration"
alt="main-illustration"
/>
</header>
<section id="about" className="section colored">
<h2 className="section__heading">Hi, I’m Janvier. Nice to meet you.</h2>
<p className="section__subheading">
It has been more than three years now that I help businesses grow through
well presented and simply functional and tested web applictions,
amazing websites that attract customers through powerful SEO process
and I am so confident that your problems will be solved through the
software we’ll build together.
</p>
<div className="card straight">
<div className="card__column">
<img src="./img/designer.svg" alt="designer-icon" />
<h3>Designer</h3>
<p>
Amazing designs with a simplistic touch of well thought
interactions that provide unforgettable experience
</p>
<h4>Things I enjoy designing:</h4>
<p>UX, UI, Web, Mobile, Apps, Logos</p>
<h4>Design Tools</h4>
<ul>
<li>Figma</li>
<li>Invision</li>
<li>AdobeXD</li>
<li>Pen & Paper</li>
<li>Sketch</li>
</ul>
</div>
<div className="card__column">
<img src="./img/frontend.svg" alt="frontend-icon" />
<h3>Frontend Developer</h3>
<p>
I enjoy taking your beautiful ideas from a beautiful design to an
amazing functional site for your business
</p>
<h4>Languages I speak:</h4>
<p>HTML, CSS, Sass, React, PWA, EJS, HBS</p>
<h4>Dev Tools</h4>
<ul>
<li>Git & Github</li>
<li>Reactjs & Vuejs</li>
<li>React Native, Nextjs and Nuxtjs</li>
<li>Apollo GraphQL</li>
<li>Redux, Vuex & MobX </li>
</ul>
</div>
<div className="card__column">
<img src="./img/mentor.svg" alt="backend-icon" />
<h3>Backend Developer</h3>
<p>
Advance your business even further with impressive control on your
data highly scalable and modification ease
</p>
<h4>Experiences I have:</h4>
<p>Node, Express, HeadlessCMS, Severless, Docker, TypeScript</p>
<h4>Amazing Tools</h4>
<ul>
<li>REST & GRAPHQL</li>
<li>Postgres & MySQL</li>
<li>MongoDB & CouchDB</li>
<li>Terminal & CLI apps</li>
<li>GCP, AWS, Digital Ocean & Heroku</li>
</ul>
</div>
</div>
</section>
<hr className="section-separator" />
<section id="portfolio" className="section">
<h2 className="section__heading">My Recent Work</h2>
<p className="section__subheading">
Here are a few design projects I've worked on recently. Want to see
yours?
<a href="#contact" className="active">Email me.</a>
</p>
<div className="slides-container">
<div className="lds-ring purple" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
<p className="purple">Loading Projects...</p>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<br />
<div className="section__action">
<a href="https://github.com/RedJanvier" className="btn" target="_blank"
><i className="fa fa-github"></i> More on Github</a
>
</div>
</section>
<section id="blog" className="section colored">
<h2 className="section__heading">Blog</h2>
<p className="section__subheading">Latest posts from my blog.</p>
<div className="blogs grid">
<div className="lds-ring white">
<span className="white">Loading Blogs...</span>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div className="section__action">
<a href="#" className="btn">Read more here</a>
</div>
</section>
<hr className="section-separator" />
<section id="contact" className="section">
<h2 className="section__heading">Contact Me</h2>
<p className="section__subheading">
Interested in my work?
<a href="#" className="active">Don’t leave without saying hi!</a>
</p>
<form className="form contact-form">
<div id="error-panel" className="error fade"></div>
<div className="form__field">
<label for="name">Name:</label>
<input type="text" name="name" id="name" onchange="validate(this)" onkeyup="validate(this)" placeholder="Your full name" />
</div>
<div className="form__field">
<label for="email">Email:</label>
<input type="email" name="email" id="email" onchange="validate(this)" onkeyup="validate(this)" placeholder="Your Email" />
</div>
<div className="form__field">
<label for="message">Message:</label>
<textarea
name="message"
id="message"
placeholder="Your message" onchange="validate(this)" onkeyup="validate(this)"
></textarea>
</div>
<div className="form__field">
<button type="submit" name="submit" className="btn">Send Message</button>
</div>
</form>
</div>
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-analytics.js"></script>
<script src="./js/init.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/index.js"></script>
<script src="./js/subscribe.js"></script>
<script>
db.collection('projects').orderBy("createdAt", "desc").get().then(docs => {
let html = '';
docs.forEach(doc => {
const project = doc.data();
let links = project.live && `<a href="${project.live}" rel="external nofollow" className="btn">Visit Site</a>`;
links += project.code && `<a href="${project.code}" rel="external nofollow" className="btn">View Source</a>`;
html += `<div className="slides fade">
<div className="card straight">
<div className="card__column">
<img src="${project.image}" />
</div>
<div className="card__column">
<h4>${project.title}</h4>
<p>
${project.body}
</p>
${links}
</div>
</div>
</div>`;
html += `<a className="prev" onclick="changeSlide(-1)">❮</a>
<a className="next" onclick="changeSlide(1)">❯</a>`
document.querySelector('.slides-container').innerHTML = html;
initSlides();
})
}).catch(console.log);
const {displayName, uid:userUid, providerData: [ { providerId: provider }]} = JSON.parse(localStorage.getItem("user")) || {uid: null, providerData: [ { providerId: null }]};
const logBtns = document.getElementsByClassName("logBtn");
for(let i = 0; i<logBtns.length; i++){
if(provider) {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
}
logBtns[i].textContent = "Logout";
logBtns[i].addEventListener("click", () => {
disableButton(logBtns[i]);
localStorage.clear();
firebase.auth().signOut().catch(console.log);
});
} else {
logBtns[i].textContent = "Login"
logBtns[i].addEventListener("click", () => {
disableButton(logBtns[i]);
redirectTo("/admin")
});
}
}
const blogs = document.querySelector(".blogs");
db.collection("posts").orderBy("createdAt", "desc").limit(6).get().then(docs => {
let html = '';
docs.forEach(doc => {
const blog = doc.data();
html += `<a href="./pages/blog.html?id=${doc.id}" className="card">
<div className="card__column-top">
<div className="card__image">
<img src="${blog.image}" alt="post-image" />
</div>
<h3>
${blog.title}
</h3>
</div>
<div className="card__column-footer">
<span><i className="fa fa-heart-o"></i> ${blog.likes || 0}</span>
<span><i className="fa fa-commenting-o"></i> ${blog.comments || 0}</span>
<span><i className="fa fa-eye"></i> ${blog.views || 0}</span>
</div>
</a>`
});
blogs.innerHTML = html;
}).catch(err => {
console.log(err);
showErrorIn(document.querySelector('#error-panel'), err.message);
});
function showPosition(position) {
firebase.firestore().collection("visitors").doc(userUid).set({ name: displayName, longitude: position.coords.longitude, latitude: position.coords.latitude }).catch(console.log)
}
</script>
</body>
</html>