create account

webDev() { working on my portfolio; } / [#4] by xves

View this thread on: hive.blogpeakd.comecency.com
· @xves · (edited)
$7.74
webDev() { working on my portfolio; } / [#4]
<div class="pull-right">https://files.peakd.com/file/peakd-hive/xves/zleoFg61-yx.jpg</div><br>

It's been two weeks and I've changed quite a few things about my portfolio. 

First, I added the ''wave'' divider... Only it's not a wave, it's a curve. And it's buggy. 

How exactly? Well, viewed from my laptop it looks fine, viewed on other screen sizes through Edge's DevTools it looks fine aswell, but as I open the site on my actual phone and scroll down a little, the divider appears to float a bit and the background of the #welcome section continues for about a height of the browser's address bar.

The reason for this is that I have the #welcome section's height set as 100vh (100% of the viewport height) which is afraid of the black sheep of the family - the forementioned address bar which appears when a site is loaded and disappears when a user scrolls down.

So how can I fix it? After Googling a while I found out that the best way to fix such a thing is to use JavaScript (specifically window.innerHeight). I made a couple of tests based on a few tutorials and for some reason it did not work out (kept pushing commits (so I could open the site on mobile through Netlify) and later reverting them). I guess I need some more time for research and figuring things out or a helping hand. For now I set the display to be none on the dividers for mobile screen width. (I wonder how it looks like on tablets - do they have the same issue?)

``` 
EDIT: Fixed it by setting the heights of html, body and #welcome to 100%. Thanks, ILGE!
 ```

https://files.peakd.com/file/peakd-hive/xves/IhzbhfBW-kax.png

The next thing I did was make the container of the projects showcase a bit more distinctable by adding a background color to both the container itself and the heading(s). I also made the projects horizontally scrollable on tablets aswell in addition to them being so for mobile. 

And as you've probably been spoiled already by the screenshot above, I decided to add my Github Contributions chart to my portfolio to show that I am in fact working on things other than the three projects I have displayed. Sadly Github doesn't have an official way of embedding the chart from one's profile but I found this [Bloggify's repository](https://github.com/Bloggify/github-calendar) that makes it possible to do so.

https://files.peakd.com/file/peakd-hive/xves/rSbcP8wJ-kolm.png

To top it all off, here's something I'm sure you guys will appreciate.

<div class="pull-left">https://files.peakd.com/file/peakd-hive/xves/bJoMlDzL-neli.png</div>

<div>https://files.peakd.com/file/peakd-hive/xves/Sj4csuV4-viis.png</div>

That's right, not even one, but TWO links to Hive.

<hr>

I've been teasing you enough, now it's time to actually let you play with my site. [Here's](https://xves.eu/) the link to my portfolio and [here's](https://github.com/x-ves/personal-portfolio) the link to the portfolio's Github repo.
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 125 others
properties (23)
authorxves
permlinkwebdev-working-on-my-portfolio-4
categoryhive-169321
json_metadata"{"app":"peakd/2020.09.5","format":"markdown","description":"Probably the last post about my portfolio unless there will be a huge do-over.","tags":["webdev","front-end","development","portfolio","programming","it"],"links":["/trending/welcome","/trending/welcome","https://github.com/Bloggify/github-calendar","https://xves.eu/","https://github.com/x-ves/personal-portfolio"],"image":["https://files.peakd.com/file/peakd-hive/xves/IhzbhfBW-kax.png","https://files.peakd.com/file/peakd-hive/xves/zleoFg61-yx.jpg","https://files.peakd.com/file/peakd-hive/xves/rSbcP8wJ-kolm.png","https://files.peakd.com/file/peakd-hive/xves/bJoMlDzL-neli.png","https://files.peakd.com/file/peakd-hive/xves/Sj4csuV4-viis.png"]}"
created2020-09-12 18:14:18
last_update2020-10-11 09:53:54
depth0
children5
last_payout2020-09-19 18:14:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value7.735 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,915
author_reputation12,295,059,905,546
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,592,076
net_rshares51,165,930,520,725
author_curate_reward""
vote details (189)
@cadawg ·
$0.03
> EDIT: Fixed it by setting the heights of html, body and #welcome to 100%. Thanks, ILGE!

I don't want to admit how many times I've forgotten to do this.

I recognise this button, where'dya get it from? πŸ˜‚

![image.png](https://files.peakd.com/file/peakd-hive/cadawg/cl1kqdXK-image.png)

You're portfolio looks great (mine really needs some love, but idk when it'll ever get it) and I just noticed a little something odd at desktop resolution:

![image.png](https://files.peakd.com/file/peakd-hive/cadawg/HtIIZ9Jp-image.png)

I might be wrong, but it seems if you were to swap out `height` for `min-height` in the css rule `.cards`, this would solve the issue (I tried it in devtools):

![image.png](https://files.peakd.com/file/peakd-hive/cadawg/DgDLGb1P-image.png)

After: 

![image.png](https://files.peakd.com/file/peakd-hive/cadawg/voeE8VkL-image.png)

Many thanks. It's a shame your series has come to an end, because you were providing a steady stream of content to #programming πŸ˜‚ I hope to see more series' from you in the programming community.
πŸ‘  ,
properties (23)
authorcadawg
permlinkre-xves-qgq3g0
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2020.09.4"}
created2020-09-15 23:19:12
last_update2020-09-15 23:19:12
depth1
children2
last_payout2020-09-22 23:19:12
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,053
author_reputation100,771,927,095,688
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,649,480
net_rshares166,429,838,815
author_curate_reward""
vote details (2)
@xves ·
Oh, oops! Totally forgot to give you the credit on that button. My brain's been smoking ang burning lately :D You're right, I got it from your Github README!

Thanks for telling me about the bug, it looks absolutely fine on my screen so I would've never known! Going to fix that right now.

Sure, my portfolio series has come to an end, but I'm still working on the heavy music festival website... and man, I've been raging for 2-3 days already because how the heck do I get a custom styled Google Maps embed map into my Vue project?! πŸ˜‚ 
I've read several different documentations and tutorials and nothing works. I've yet to find the right tutorial.
properties (22)
authorxves
permlinkre-cadawg-qgqk7p
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2020.09.4"}
created2020-09-16 05:21:27
last_update2020-09-16 05:21:27
depth2
children1
last_payout2020-09-23 05:21:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length650
author_reputation12,295,059,905,546
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,653,059
net_rshares0
@cadawg ·
$0.03
> Oh, oops! Totally forgot to give you the credit on that button. My brain's been smoking ang burning lately :D You're right, I got it from your Github README!

No need to credit me. I'm just happy someone is using it lol

> Thanks for telling me about the bug, it looks absolutely fine on my screen so I would've never known! Going to fix that right now.

The joys of web development!

> Sure, my portfolio series has come to an end, but I'm still working on the heavy music festival website... and man, I've been raging for 2-3 days already because how the heck do I get a custom styled Google Maps embed map into my Vue project?! πŸ˜‚

Yeah, I've only ever embedded basic styled google maps. I didn't even know that was a thing but it doesn't sound like fun!
πŸ‘  ,
properties (23)
authorcadawg
permlinkre-xves-qgqt69
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2020.09.4"}
created2020-09-16 08:34:33
last_update2020-09-16 08:34:33
depth3
children0
last_payout2020-09-23 08:34:33
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length758
author_reputation100,771,927,095,688
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,654,889
net_rshares162,031,457,303
author_curate_reward""
vote details (2)
@trumpikas ·
I have also made some easier websites over 10 years ago, but now I don't remember much about it. πŸ˜€
πŸ‘  
properties (23)
authortrumpikas
permlinkre-xves-qgwvt6
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2020.09.4"}
created2020-09-19 15:17:33
last_update2020-09-19 15:17:33
depth1
children0
last_payout2020-09-26 15:17:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length98
author_reputation71,693,404,508,719
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,711,483
net_rshares15,130,314,880
author_curate_reward""
vote details (1)
@xves ·
So I got the curved divider issue fixed thanks to a Discord pal of mine (aitΓ€h, ILGE!). 
I had to set the heights of html, body and #welcome to 100%. (Edited the post too).
properties (22)
authorxves
permlinkre-xves-qgl4gb
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2020.09.4"}
created2020-09-13 06:53:00
last_update2020-09-13 06:53:00
depth1
children0
last_payout2020-09-20 06:53:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation12,295,059,905,546
root_title"webDev() { working on my portfolio; } / [#4]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,599,984
net_rshares0