<?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: Ghala Hnad</title>
    <description>The latest articles on DEV Community by Ghala Hnad (@nft_treasures_5a88d928d17).</description>
    <link>https://dev.to/nft_treasures_5a88d928d17</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%2F3277617%2F7b8589df-a92c-41e1-abf7-11a6d0e334ff.png</url>
      <title>DEV Community: Ghala Hnad</title>
      <link>https://dev.to/nft_treasures_5a88d928d17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nft_treasures_5a88d928d17"/>
    <language>en</language>
    <item>
      <title>How I Built a Cement Price Tracker Using HTML, CSS &amp; JS (No Framework, No API)</title>
      <dc:creator>Ghala Hnad</dc:creator>
      <pubDate>Sun, 06 Jul 2025 07:45:30 +0000</pubDate>
      <link>https://dev.to/nft_treasures_5a88d928d17/how-i-built-a-cement-price-tracker-using-html-css-js-no-framework-no-api-gde</link>
      <guid>https://dev.to/nft_treasures_5a88d928d17/how-i-built-a-cement-price-tracker-using-html-css-js-no-framework-no-api-gde</guid>
      <description>&lt;p&gt;In the construction industry, timing and budgeting are everything. But there's one surprisingly frustrating issue that affects millions of builders, contractors, and homeowners across countries like India and Pakistan — there’s no simple way to check updated cement prices online.&lt;/p&gt;

&lt;p&gt;Yes, you read that right.&lt;/p&gt;

&lt;p&gt;If you’ve ever tried to build a home or manage a construction project, you’ve probably noticed how cement prices vary wildly from region to region, and even between local dealers in the same city. You’ll find prices on WhatsApp, through word of mouth, or by calling up suppliers one by one — but rarely in a structured, updated, and trustworthy format.&lt;/p&gt;

&lt;p&gt;This gave me an idea:&lt;/p&gt;

&lt;p&gt;“What if I built a tool that simply tracked cement prices in one place — fast, clean, and easy to use?”&lt;/p&gt;

&lt;p&gt;As someone with an interest in both technology and local business, I saw this as a chance to apply basic web development skills to solve a real-world, underserved problem.&lt;/p&gt;

&lt;p&gt;So, I created a simple, beginner-friendly web app that displays cement price listings, lets you compare brands, and even calculate costs per bag, ton, or truckload — all using basic HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;In this post, I’ll show you:&lt;/p&gt;

&lt;p&gt;Why this problem needed solving&lt;/p&gt;

&lt;p&gt;How I approached it with zero frameworks or APIs&lt;/p&gt;

&lt;p&gt;What I learned while building it&lt;/p&gt;

&lt;p&gt;And how even small tools can create real value for niche communities.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: Price Confusion in the Cement Market
&lt;/h2&gt;

&lt;p&gt;When people think of construction challenges, they imagine material shortages, labor issues, or design changes. But few realize one of the most basic and ongoing problems is simply this:&lt;/p&gt;

&lt;p&gt;“What is the actual price of cement today — and is that price fair?”&lt;/p&gt;

&lt;p&gt;In India, Pakistan, and many developing regions, cement prices are highly volatile. They can change weekly — sometimes even daily — depending on:&lt;/p&gt;

&lt;p&gt;Brand (UltraTech, ACC, Dalmia, Ambuja, etc.)&lt;/p&gt;

&lt;p&gt;Location (metro cities vs. rural districts)&lt;/p&gt;

&lt;p&gt;Dealer margins and transport costs&lt;/p&gt;

&lt;p&gt;Bulk purchase quantity&lt;/p&gt;

&lt;p&gt;Yet there's no centralized system where a contractor or homeowner can quickly check accurate rates across different brands and regions.&lt;/p&gt;

&lt;p&gt;Instead, people rely on:&lt;/p&gt;

&lt;p&gt;Dealer calls and SMS messages&lt;/p&gt;

&lt;p&gt;WhatsApp forwards and voice notes&lt;/p&gt;

&lt;p&gt;Visiting hardware shops in person&lt;/p&gt;

&lt;p&gt;Old websites with outdated info&lt;/p&gt;

&lt;p&gt;This isn't just inconvenient — it’s costly.&lt;/p&gt;

&lt;p&gt;A price difference of even ₹10–₹20 per 50kg bag can mean a loss of thousands of rupees over a full construction project. And for contractors or daily buyers, this lack of price visibility makes it harder to plan, negotiate, or budget correctly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;A Simple Tool Can Help&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
I realized that even a basic, transparent cement price listing website could solve this for thousands of people.&lt;br&gt;
Not a big database. Not a full marketplace.&lt;br&gt;
Just a clean, easy-to-use dashboard with regularly updated prices by brand and region.&lt;/p&gt;

&lt;p&gt;That’s where it started — with a simple question:&lt;/p&gt;

&lt;p&gt;“Why isn’t anyone doing this yet?”&lt;/p&gt;
&lt;h2&gt;
  
  
  The Solution I Built: A Simple, Frontend-Based Cement Price Tracker
&lt;/h2&gt;

&lt;p&gt;Once I understood the pain point — that people simply couldn't find updated, reliable cement prices online — I decided to build something simple, clean, and useful.&lt;/p&gt;

&lt;p&gt;The result?&lt;br&gt;
👉 a lightweight web tool that helps users:&lt;/p&gt;

&lt;p&gt;📌 Check the latest cement prices&lt;/p&gt;

&lt;p&gt;🧱 Compare different brands&lt;/p&gt;

&lt;p&gt;💰 Calculate the total cost based on quantity&lt;/p&gt;

&lt;p&gt;💱 Convert prices with a currency selector&lt;/p&gt;

&lt;p&gt;🛠️ Why I Chose a Frontend-Only Approach&lt;br&gt;
As a beginner in web development, I didn't want to get lost in server-side code, APIs, or databases just yet. So I asked myself:&lt;/p&gt;

&lt;p&gt;“What’s the simplest possible version of this tool that still delivers real value?”&lt;/p&gt;

&lt;p&gt;I settled on using just:&lt;/p&gt;

&lt;p&gt;HTML for structure&lt;/p&gt;

&lt;p&gt;CSS for styling and layout&lt;/p&gt;

&lt;p&gt;JavaScript for interactivity and calculations&lt;/p&gt;

&lt;p&gt;No frameworks, no libraries, no backend.&lt;/p&gt;

&lt;p&gt;🧪 Features I Implemented&lt;br&gt;
Here’s what the site currently does (and how it helps):&lt;/p&gt;

&lt;p&gt;✅ Manual Price Listings&lt;br&gt;
Users can view manually updated cement prices for popular brands like UltraTech, Ambuja, ACC, Dalmia, and more.&lt;/p&gt;

&lt;p&gt;💹 Total Cost Calculator&lt;br&gt;
Enter the price per bag and quantity — the site instantly shows the total amount. Great for quick budgeting.&lt;/p&gt;

&lt;p&gt;🌍 Currency Selector&lt;br&gt;
Since construction costs are tracked in multiple currencies (especially by NRIs), I added a simple currency selector to convert costs.&lt;/p&gt;

&lt;p&gt;📱 Mobile-Friendly UI&lt;br&gt;
The layout is responsive and clean — accessible on mobile devices where most contractors do their browsing.&lt;/p&gt;

&lt;p&gt;🎯 Focus on Simplicity, Not Perfection&lt;br&gt;
I didn’t try to build a full-scale cement marketplace. I focused on solving just one problem well:&lt;br&gt;
“Let users view and calculate cement prices quickly.”&lt;/p&gt;

&lt;p&gt;The goal was usability, not complexity.&lt;/p&gt;

&lt;p&gt;And to my surprise, early users — even non-tech people — appreciated the clarity and speed of the site. That alone validated the effort.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Tech Stack (Beginner-Friendly)
&lt;/h2&gt;

&lt;p&gt;One of the best parts of building website and especially &lt;a href="https://cementsprice.com/cement-calculator/" rel="noopener noreferrer"&gt;Cement calculator&lt;/a&gt; was realizing that I didn’t need a complex tech stack to solve a real-world problem.&lt;/p&gt;

&lt;p&gt;As a beginner, I stuck to just the basics — and they worked surprisingly well.&lt;/p&gt;

&lt;p&gt;🧰 Tools I Used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML – for the structure and layout of the website&lt;/li&gt;
&lt;li&gt;CSS – for styling, spacing, fonts, and responsiveness&lt;/li&gt;
&lt;li&gt;Vanilla JavaScript – for all the interactivity (calculations, dropdowns, updates)&lt;/li&gt;
&lt;li&gt;No React. No Node.js. No backend framework.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Just pure frontend code, hosted on a static site.&lt;br&gt;
📦 Key Functionalities I Coded&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Here are a few practical things I built using only JavaScript:&lt;br&gt;
✅ Price Calculator&lt;br&gt;
Let users input cement price per bag and number of bags — then instantly calculate the total cost:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const price = document.getElementById("price").value;
const qty = document.getElementById("qty").value;
const total = price * qty;
document.getElementById("result").innerText = `Total Cost: ₹${total}`;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;✅ Currency Selector&lt;br&gt;
I created a dropdown menu that lets users switch between INR, PKR, and USD for approximate conversion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const currency = document.getElementById("currency").value;
const rates = { INR: 1, PKR: 3.3, USD: 0.012 };
const converted = total * rates[currency];

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Responsive UI with CSS Flexbox&lt;br&gt;
No framework needed — I used Flexbox for mobile and desktop layout adjustments. Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧠 &lt;a href="https://www.googleadservices.com/pagead/aclk?sa=L&amp;amp;ai=DChsSEwjs5PC036eOAxUnm2gJHUiBBEUYACICCAEQARoCd2Y&amp;amp;ae=2&amp;amp;aspm=1&amp;amp;co=1&amp;amp;ase=5&amp;amp;gclid=Cj0KCQjwvajDBhCNARIsAEE29WrAdHqtt1OMaCviKD0iWvaVPeNxNuzHgoDnKufuMeuia2IzVZBLn6MaAhzvEALw_wcB&amp;amp;ohost=www.google.com&amp;amp;cid=CAESVuD2D3rq0UD4102Fd2MceLccUR468FV8qOinHVj30PHJpa5aa07GZc_94aq3MYMPbLcfSaRgY_duHcO-nBGzIwMOssG5qN82xcdGKAl1guCavxt1If9d&amp;amp;category=acrcp_v1_43&amp;amp;sig=AOD64_0w8zOOk5uwb3c-ifBdA7pMXnJgUg&amp;amp;q&amp;amp;adurl&amp;amp;ved=2ahUKEwik_uu036eOAxXtTaQEHRCIN04Q0Qx6BAgMEAE" rel="noopener noreferrer"&gt;Hosting &lt;/a&gt;&amp;amp; Deployment&lt;br&gt;
I deployed the site using GitHub Pages for free.&lt;/p&gt;

&lt;p&gt;Simple, fast-loading, and easy to maintain.&lt;/p&gt;

&lt;p&gt;Building CementsPrice.com taught me that:&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Simplicity matters – I didn’t need React or a backend to create value.&lt;/li&gt;
&lt;li&gt;Real problems &amp;gt; fancy code – A basic price calculator solved a real need.&lt;/li&gt;
&lt;li&gt;Niche tools work – Focusing on cement buyers helped reach a specific audience.&lt;/li&gt;
&lt;li&gt;SEO isn’t optional – Launching is just the start; indexing and sharing matter.&lt;/li&gt;
&lt;li&gt;Small wins feel big – Watching users interact with something I built was incredibly rewarding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What’s Next / Roadmap
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Automated Updates
 Integrate a small scraper/&lt;a href="https://en.wikipedia.org/wiki/API" rel="noopener noreferrer"&gt;API &lt;/a&gt;so prices refresh daily without manual edits.&lt;/li&gt;
&lt;li&gt;Location Filter
 Let users select their city/region and instantly see local dealer rates.&lt;/li&gt;
&lt;li&gt;Alert System
 Email/WhatsApp pings when a chosen brand’s price drops or rises beyond a set threshold.&lt;/li&gt;
&lt;li&gt;Open‑Source Release
  Publish the code on &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub &lt;/a&gt;so others can add brands, currencies, and improvements.&lt;/li&gt;
&lt;li&gt;Mobile‑First UI Polish
 Tighten up touch targets and offline caching for contractors on‑site.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Ghala Hnad</dc:creator>
      <pubDate>Sun, 06 Jul 2025 07:19:10 +0000</pubDate>
      <link>https://dev.to/nft_treasures_5a88d928d17/-3oo9</link>
      <guid>https://dev.to/nft_treasures_5a88d928d17/-3oo9</guid>
      <description></description>
      <category>vibecoding</category>
    </item>
  </channel>
</rss>
