<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Đăng Tú</title>
    <description>The latest articles on DEV Community by Đăng Tú (@ngdangtu).</description>
    <link>https://dev.to/ngdangtu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F488609%2F6c65a527-0f4a-4587-a04a-13f983008196.jpg</url>
      <title>DEV Community: Đăng Tú</title>
      <link>https://dev.to/ngdangtu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ngdangtu"/>
    <language>en</language>
    <item>
      <title>Glam Up My Markup » Earth Day Celebration Landing Page</title>
      <dc:creator>Đăng Tú</dc:creator>
      <pubDate>Sat, 27 Apr 2024 14:13:46 +0000</pubDate>
      <link>https://dev.to/ngdangtu/glam-up-my-markup-earth-day-celebration-landing-page-4nnp</link>
      <guid>https://dev.to/ngdangtu/glam-up-my-markup-earth-day-celebration-landing-page-4nnp</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4"&gt;Frontend Challenge v24.04.17&lt;/a&gt;, Glam Up My Markup: Earth Day Celebration Landing Page&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;An ordinary landing page like every other landing page you've ever seen with simple mindset. It ain't much but an honest work :]&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Source code&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://gitlab.com/ndt-challenge/dev.to/frontend-240417/-/tree/bcca5c5840eb487af7378ea20f84016bcd02e443/Glam%20Up%20My%20Markup"&gt;https://gitlab.com/ndt-challenge/dev.to/frontend-240417/-/tree/bcca5c5840eb487af7378ea20f84016bcd02e443/Glam%20Up%20My%20Markup&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://ndt-challenge.gitlab.io/dev.to/frontend-240417/glam-up-my-markup"&gt;https://ndt-challenge.gitlab.io/dev.to/frontend-240417/glam-up-my-markup&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Dev.to image upload has too many restriction that I couldn't upload my website screenshot. Quite disappointed but there is nothing I can do, here is the image from imgbox.com site: &lt;a href="https://imgbox.com/LTZBlO3R"&gt;https://imgbox.com/LTZBlO3R&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H-VBiY_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://images2.imgbox.com/68/ee/LTZBlO3R_o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H-VBiY_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://images2.imgbox.com/68/ee/LTZBlO3R_o.png" alt="Site demo screenshot" width="800" height="1216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;I'm not really good in design and my ideas inverse to my age as programmer. So in short, this landing page may not be the finest in the contest but at least I did my best. With that in mind, I didn't expect to loot anything this time. However the goddam unexpected thing always be there right in the corner to do you a goddam jump scare. This time, it was a good jump scare, or jump happy 🤔 excited jump 🤔 hmn...&lt;/p&gt;

&lt;p&gt;At first start this challenge, I admitted I'd been pretty negative about the challenge. Look at the glamup HTML code make me want to murder whoever come up with. The part of content supposed to use semantic tag didn't, class name spilled everywhere. However, after work, once I'd calmed down, I found  out it was intentional from the staff. All the tags have class name was actually hints on missing information that the staff may want us, participators, to look further more. Yep, I firmly believed it was a minor challenge on encouraging us to research and understand more about earthday project. Yup yup, it was all about spreading message. That's tight 'n I like it. → lesson learnt: &lt;strong&gt;early judgment is usually bad, don't let it become conclusion&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After I understood the real assigment, or that what I thought, I start with the logic task first and complete it quite fast. Learning from the last time mistake, I don't want to do complex structure. So I focused on the kind of struct that can delivery well content to visitor, the classic flexbox layout. During the research, I found a few more fun/cool quotes about the earth or environment and I decide to collect a few of them to share it on the site. That make the spirit of the challenge make more sense right? Yet, my features greed refuses to leave me along. I want to add more feature that can actually put people awareness on the weather around them. And that is how my trailing cursor came in the play. If it's hot, you'll see fire and snow for being cold. From there I know what I should do next for my site design. → lesson learnt: &lt;strong&gt;Ideas don't always come at once. It is one thing after another. If you couldn't find an idea for your work. Do something easy, or something else. You may surprise what you got later on&lt;/strong&gt;. (maybe)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Tip&lt;br&gt;
To enjoy different &lt;del&gt;harassment&lt;/del&gt; from trailing cursor, you can modify localstorage directly by update/create &lt;code&gt;temperature&lt;/code&gt; key. The value can be any float number.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With the weather trailing cursor idea, I decided to make a website graphic design look like an outdoor zone. Instead using minimalism concerpt, I use a lot of texture and multiple color to bring out the nature element onto the website. At first I want to draw the tree and stuff content on each leafs brush on the tree. But it's too complicated and not very responsive. I gave up. I'm not an artist and the plan is unrealistic. I decide to come back to minimalism, still I only took the layout concept of it. Colorful textures didn't go elsewhere. As result, it won't look good under the eyes of professional but it surely not too horrible. → lesson learnt: &lt;strong&gt;Never forget these 3 things, your goal, your time 'n your skills. Know enemies (time in this case) as much as you know yourself is the key to success.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The rest is tiny elements that doesn't play big impact in the site. Those can be an animation title on the browser tab, header background moving, custom unorder list bullets, the small arrow in the quote bubble, hilarious photo in events section and footer title. They ain't much, some are not even noticable. Yet, once you remove them out, it definitely feels something's missing. Espcially the bubble arrow, at first I used the famous border trick to make the arrow. However, with border I couldn't blur the backdrop so I decided to scrap the code and go with the clip-path way. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;❗Known Bug&lt;br&gt;
In Firefox on Linux, even if you click allow, the &lt;code&gt;geolocation&lt;/code&gt; API still return permission denied. Since it happens on Linux, I'm not sure if it's just me or other people got the same problem. Please lemme know if you got the same like me.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;I kinda like the trailing cursor so I properly build a library backed by custom element. Not sure when I could release it, tomorrow or tomorrow. Who knows 🙃&lt;/p&gt;

&lt;p&gt;There ain't much to say so I put a period here. Hope you guys found my trailing cursor is &lt;del&gt;annoying&lt;/del&gt; fun. I swear I didn't built that feature to share my thought about the goddam hot weather in Vietnam atm 🫠 Really, I've no intention to convert the frustration of hot onto painful look of the website... 🙃&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>frontendchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>A Half-baked Work at Glam Up My Markup</title>
      <dc:creator>Đăng Tú</dc:creator>
      <pubDate>Sun, 31 Mar 2024 17:38:26 +0000</pubDate>
      <link>https://dev.to/ngdangtu/a-half-baked-work-at-glam-up-my-markup-4a5m</link>
      <guid>https://dev.to/ngdangtu/a-half-baked-work-at-glam-up-my-markup-4a5m</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for DEV Challenge v24.03.20, Glam Up My Markup: Camp Activities&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Base on the skeleton, I add CSS to make it looks a bit fancy and use Js to improve UX (More specific, turn a whole form into multiple sections for focusing purpose)&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://ndt-challenge.gitlab.io/dev.to/1st/glam-up-my-markup"&gt;https://ndt-challenge.gitlab.io/dev.to/1st/glam-up-my-markup&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8sot0etchu4x64rnwve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8sot0etchu4x64rnwve.png" alt="sample screenshot of the work" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
      &lt;div class="c-embed__cover"&gt;
        &lt;a href="https://gitlab.com/ndt-challenge/dev.to/1st/-/tree/main/Glam%20Up%20My%20Markup?ref_type=heads" class="c-link s:max-w-50 align-middle" rel="noopener noreferrer"&gt;
          &lt;img alt="" src="https://res.cloudinary.com/practicaldev/image/fetch/s--3ZLRETNu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://gitlab.com/assets/twitter_card-570ddb06edf56a2312253c5872489847a0f385112ddbcd71ccfa1570febab5d2.jpg" height="800" class="m-0" width="800"&gt;
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;div class="c-embed__body"&gt;
      &lt;h2 class="fs-xl lh-tight"&gt;
        &lt;a href="https://gitlab.com/ndt-challenge/dev.to/1st/-/tree/main/Glam%20Up%20My%20Markup?ref_type=heads" rel="noopener noreferrer" class="c-link"&gt;
          Glam Up My Markup · main · Challenges Accepted / DEV.to / 1st - 20Mar2024 · GitLab
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;p class="truncate-at-3"&gt;
          on2024(20 Mar, 31 Mar) | demo: Glam-up My Markup
        &lt;/p&gt;
      &lt;div class="color-secondary fs-s flex items-center"&gt;
          &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://res.cloudinary.com/practicaldev/image/fetch/s--VTiLbz4S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://gitlab.com/assets/favicon-72a2cad5025aa931d6ea56c3201d1f18e68a8cd39788c7c80d5b2b82aa5143ef.png" width="32" height="32"&gt;
        gitlab.com
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;A lot of fun during working but due to deadline, I cannot polish my work any longer. The main reason behind this mess is because I want to play with Solid. I always like it but rarely have a good chance to use it. So I decied to use it on this simple challenge.&lt;/p&gt;

&lt;p&gt;At first, every looks nice enough with just simple 2 nav buttons, go forward or fallback, easy peasy. But then, me being stupidly greedy decided to add 1 tiny feature. Just like a client used to say, only a tiny button, what could go wrong? Yep, only a tiny "reset" button and I burn my whole cute little project into ash.&lt;/p&gt;

&lt;p&gt;So till now, at the moment I'm writing in the middle of the night (GTM+7), my code has been through at least 2 refactoring times and I still have no idea what I did. Many problems are still there and many other features will never see the sun light...&lt;/p&gt;

&lt;p&gt;So, technically, this work isn't worth to submit. But I still want to submit with a hope that somebody can give me a few advices to improve my code. Right now, I'm stuck with the fact that &lt;code&gt;createEffect&lt;/code&gt; of SolidJs doesn't seems to work in &lt;code&gt;change&lt;/code&gt; event of select. Oh, suggestions for clean code are welcome too.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>History API in One Byte Explanation</title>
      <dc:creator>Đăng Tú</dc:creator>
      <pubDate>Fri, 22 Mar 2024 05:53:05 +0000</pubDate>
      <link>https://dev.to/ngdangtu/history-api-in-one-byte-explanation-3o5k</link>
      <guid>https://dev.to/ngdangtu/history-api-in-one-byte-explanation-3o5k</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;Browser session history is managed by states and this API helps us to modify and query it. Along pushing, replacing states and tracking it with popstate event, we can navigate visitors to go back, forward or jump to specific point of the history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/History_API"&gt;MDN reference&lt;/a&gt; | &lt;a href="https://unsplash.com/photos/brown-paper-and-black-pen-B6yDtYs2IgY"&gt;cover credit to Joanna Kosinska&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm a simple old-school guy who just tried to munch a lot information in a bite, yes pun intend &amp;gt;:) Hopefully it won't choke any reader ;)&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
