<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fajar Ghifari Nugroho on Medium]]></title>
        <description><![CDATA[Stories by Fajar Ghifari Nugroho on Medium]]></description>
        <link>https://medium.com/@fajarghifar?source=rss-8070dcb57ce3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7ShA2QgLQ7VeMbVJf73lEA.jpeg</url>
            <title>Stories by Fajar Ghifari Nugroho on Medium</title>
            <link>https://medium.com/@fajarghifar?source=rss-8070dcb57ce3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:51:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fajarghifar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Membuat Website Ucapan Happy Birthday dengan HTML, CSS dan JS]]></title>
            <link>https://fajarghifar.medium.com/membuat-website-ucapan-happy-birthday-dengan-html-css-dan-js-665f8c2a6f00?source=rss-8070dcb57ce3------2</link>
            <guid isPermaLink="false">https://medium.com/p/665f8c2a6f00</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[greensock]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[happy-birthday]]></category>
            <dc:creator><![CDATA[Fajar Ghifari Nugroho]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 04:06:06 GMT</pubDate>
            <atom:updated>2026-03-08T18:45:29.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XyVGBMF-lPuerXi5HxU6BA.jpeg" /></figure><p>Berikut adalah cara membuat website ucapan ulang tahun atau happy birthday dengan HTML, CSS dan JavaScript. Pada versi terbaru ini, project sudah menggunakan arsitektur <strong>config-driven</strong> sehingga kamu hanya perlu mengedit satu file config.js tanpa perlu menyentuh kode HTML, CSS, atau JavaScript lainnya.</p><h3>Fitur</h3><ul><li>🎬 Animasi halus menggunakan GSAP (typing effect, balon, confetti, fireworks, dll)</li><li>🧩 Sistem komponen modular — tambah, hapus, atau ubah urutan section cukup dari satu file</li><li>🌙 Dark / Light mode toggle</li><li>📱 Responsive dan mobile-friendly</li><li>🎵 Background music opsional</li><li>⚡ Tanpa build step, tanpa framework, tanpa server</li></ul><h3>Persiapan</h3><p>Sebelum memulai, download atau clone repository berikut:</p><pre>git clone https://github.com/fajarghifar/happybirthday.git</pre><p>Setelah selesai, buka folder project.</p><h3>Struktur Folder</h3><pre>happybirthday/<br>├── config.js                ← ✨ EDIT FILE INI SAJA<br>├── index.html               ← Template halaman (jangan diedit)<br>├── script/<br>│   ├── main.js              ← Engine (jangan diedit)<br>│   └── components/          ← Komponen animasi<br>│       ├── greeting.js<br>│       ├── announcement.js<br>│       ├── chatbox.js<br>│       ├── countdown.js<br>│       ├── ideas.js<br>│       ├── quote.js<br>│       ├── stars.js<br>│       ├── fireworks.js<br>│       ├── balloons.js<br>│       ├── profile.js<br>│       ├── confetti.js<br>│       └── closing.js<br>├── style/<br>│   └── main.css             ← Stylesheet (jangan diedit)<br>├── img/                     ← Letakkan foto di sini<br>└── music/                   ← Letakkan musik di sini</pre><blockquote><strong>Catatan:</strong> Kamu hanya perlu mengedit config.js. File lain berfungsi sebagai engine dan tidak perlu diubah.</blockquote><h3>Cara Menjalankan</h3><ol><li>Buka folder project di <strong>VS Code</strong></li><li>Install extension <a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer">Live Server</a></li><li>Klik kanan pada index.html → pilih <strong>”Open with Live Server”</strong></li></ol><p>Atau cukup buka index.html langsung di browser.</p><h3>Melakukan Kustomisasi</h3><p>Semua kustomisasi dilakukan di dalam file config.js.</p><p><strong>A. Merubah Nama Penerima</strong></p><p>Buka file config.js, cari bagian berikut:</p><pre>name: &quot;Irene&quot;,<br><br><br>// Ganti `&quot;Irene&quot;` dengan nama yang diinginkan:<br><br><br>name: &quot;Andi&quot;,</pre><p>Nama ini akan otomatis tampil di bagian greeting dan semua section yang menggunakannya.</p><p><strong>B. Mengubah Musik</strong></p><ol><li>Siapkan file musik (.mp3, .mpeg, dll)</li><li>Letakkan file musik ke dalam folder music/</li><li>Di config.js, ubah bagian berikut:</li></ol><pre><br>music: &quot;./music/hbd.mpeg&quot;,<br><br>// Menjadi:<br><br>music: &quot;./music/example.mp3&quot;,</pre><blockquote><strong>Catatan</strong>: Pastikan nama file dan extension-nya sesuai.</blockquote><p><strong>C. Mengubah Foto</strong></p><ol><li>Siapkan foto dengan rasio <strong>1:1 </strong>(crop ke persegi)</li><li>Letakkan foto ke dalam folder img/</li><li>Di config.js, ubah bagian berikut:</li></ol><pre>photo: &quot;./img/irene.jpg&quot;,<br><br>// Menjadi:<br><br>photo: &quot;./img/example.jpg&quot;,<br></pre><blockquote><strong>Catatan:</strong><em> Pastikan nama file dan extension-nya sesuai.</em></blockquote><p><strong>D. Mengubah Tema Warna</strong></p><pre>colors: {<br>  primary: &quot;#f472b6&quot;,           // Warna aksen utama (pink)<br>  accent: &quot;#60a5fa&quot;,            // Warna aksen sekunder (biru)<br>  dark: {<br>    background: &quot;#0f172a&quot;,      // Background dark mode<br>    text: &quot;#f1f5f9&quot;,            // Teks dark mode<br>  },<br>  light: {<br>    background: &quot;#fafaf9&quot;,      // Background light mode<br>    text: &quot;#1e293b&quot;,            // Teks light mode<br>  },<br>},<br>defaultMode: &quot;dark&quot;,            // &quot;dark&quot; atau &quot;light&quot;</pre><p>Viewer juga bisa toggle antara dark dan light mode menggunakan tombol ☀️/🌙 di pojok kanan atas.</p><p><strong>E. Mengatur Section (Bagian Animasi)</strong></p><p>Section didefinisikan dalam array sections. Urutan tampilan sesuai urutan di array.</p><ul><li><strong>Menghapus Section</strong></li></ul><p>Cukup hapus atau comment objek section-nya:</p><pre>sections: [<br>  { type: &quot;greeting&quot;, title: &quot;Hi&quot;, subtitle: &quot;...&quot; },<br>  // { type: &quot;announcement&quot;, text: &quot;...&quot; },  ← dihapus<br>  { type: &quot;chatbox&quot;, message: &quot;...&quot; },<br>]</pre><ul><li><strong>Menduplikasi Section</strong></li></ul><p>Copy-paste objek section:</p><pre><br>{ type: &quot;balloons&quot;, count: 25 },<br>{ type: &quot;balloons&quot;, count: 15 }, // tampil dua kali!</pre><ul><li><strong>Mengubah Urutan</strong></li></ul><p>Cukup pindahkan posisi objek ke atas atau ke bawah di dalam array.</p><p><a href="https://gist.github.com/fajarghifar/3329de5c1b197d50c524cab19ea94da6">https://gist.github.com/fajarghifar/3329de5c1b197d50c524cab19ea94da6</a></p><ul><li><strong>Contoh Konfigurasi Lengkap</strong></li></ul><pre>const CONFIG = {<br>  name: &quot;Andi&quot;,<br>  photo: &quot;./img/andi.jpg&quot;,<br>  music: &quot;./music/hbd.mpeg&quot;,<br><br>  colors: {<br>    primary: &quot;#f472b6&quot;,<br>    accent: &quot;#60a5fa&quot;,<br>    dark:  { background: &quot;#0f172a&quot;, text: &quot;#f1f5f9&quot; },<br>    light: { background: &quot;#fafaf9&quot;, text: &quot;#1e293b&quot; },<br>  },<br>  defaultMode: &quot;dark&quot;,<br><br>  sections: [<br>    { type: &quot;greeting&quot;, title: &quot;Halo&quot;, subtitle: &quot;Ini spesial untukmu!&quot; },<br>    { type: &quot;countdown&quot;, from: 3, goText: &quot;🎉&quot; },<br>    { type: &quot;announcement&quot;, text: &quot;Selamat Ulang Tahun!! 🎂&quot; },<br>    {<br>      type: &quot;chatbox&quot;,<br>      message: &quot;Semoga panjang umur, sehat selalu, dan semua harapanmu tercapai!&quot;,<br>      buttonText: &quot;Kirim&quot;,<br>    },<br>    {<br>      type: &quot;quote&quot;,<br>      text: &quot;The more you praise and celebrate your life, the more there is in life to celebrate.&quot;,<br>      author: &quot;Oprah Winfrey&quot;,<br>    },<br>    { type: &quot;stars&quot;, count: 40 },<br>    { type: &quot;balloons&quot;, count: 25 },<br>    {<br>      type: &quot;profile&quot;,<br>      wishTitle: &quot;Happy Birthday!&quot;,<br>      wishText: &quot;Semoga tahun ini penuh kebahagiaan!&quot;,<br>    },<br>    { type: &quot;fireworks&quot;, count: 24 },<br>    { type: &quot;confetti&quot;, count: 9 },<br>    {<br>      type: &quot;closing&quot;,<br>      text: &quot;Semoga kamu suka ya!&quot;,<br>      replayText: &quot;Klik untuk menonton lagi.&quot;,<br>    },<br>  ],<br>};</pre><h3>Cara Deploy atau Hosting</h3><p>Agar website bisa diakses secara online, berikut beberapa opsi gratis:</p><ul><li><strong>GitHub Pages (Rekomendasi)</strong></li></ul><ol><li>Push project ke repository GitHub</li><li>Buka <strong>Settings</strong> → <strong>Pages</strong></li><li>Pilih source: branch <strong>main </strong>, folder /(root)</li><li>Klik <strong>Save</strong></li><li>Website akan tersedia di https://username.github.io/happybirthday/</li></ol><ul><li><strong>Netlify</strong></li></ul><ol><li>Buka <a href="https://www.netlify.com/">netlify.com</a></li><li>2. Drag and drop folder project</li><li>3. Website langsung online!</li></ol><h3>Source Code</h3><p>Untuk kode program secara keseluruhan bisa diakses melalui link berikut:</p><p><a href="https://github.com/fajarghifar/happybirthday">GitHub - fajarghifar/happybirthday: 🎈Build a birthday page with HTML, CSS, JS.</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Freplit.com%2F%40fajarghifar%2Fhappybirthday%3Fembed%3Dtrue&amp;display_name=replit&amp;url=https%3A%2F%2Freplit.com%2F%40fajarghifar%2Fhappybirthday%3Fembed%3Dtrue&amp;image=https%3A%2F%2Freplit.com%2Fpublic%2Fimages%2Freplit-logo-800x600.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=replit" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/89db11f652ff810854d4dcc3fcff012b/href">https://medium.com/media/89db11f652ff810854d4dcc3fcff012b/href</a></iframe><h3>Akhir Kata</h3><p>Cukup sekian pembahasan mengenai <strong>Cara Membuat Website Ucapan Happy Birthday dengan HTML, CSS dan JS</strong>.</p><p>Pada versi terbaru ini, kamu tidak perlu lagi mengedit file HTML, CSS, atau JavaScript secara langsung. Cukup edit config.js dan semua perubahan akan otomatis diterapkan.</p><p>Apabila memiliki pertanyaan, kritik dan saran bisa disampaikan melalui kolom komentar.</p><p><em>Find me on:<br></em><a href="https://github.com/fajarghifar"><em>GitHub</em></a><em> </em>| <a href="https://www.youtube.com/@fajarghifar"><em>YouTube</em></a><em> </em>| <a href="https://instagram.com/fajarghifar"><em>Instagram </em></a><em>| </em><a href="https://www.linkedin.com/in/fajarghifar/"><em>LinkedIn</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=665f8c2a6f00" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>