Harry Potter Book Buddy
- 6 Devlogs
- 15 Total hours
A Harry Potter Reading Companion website, designed to make reading the books more fun and keep you engaged, away from your phone.
A Harry Potter Reading Companion website, designed to make reading the books more fun and keep you engaged, away from your phone.
Heyyy there! Since the last devlog, I worked on turning the books page into a journal, instead of the books checklist it had before, so I can finally publish and ship the website!
First of all, I changed the “Books” page to “Journal”, and added a journal where the user can make entries categorized on book and date, which get saved using localStorage. The user can now switch between writing a new entry and viewing all their previous ones. I used AI to write the javascript code behind the journal, since I really wanted to ship this before stardance ends. Everything is saved using on the user’s pc using localStorage, so they don’t disappear when they close the website.
I also finally deployed it using GitHub Pages! This basically means the reading companion can now be accessed by ANYONE (haha kinda scary tho ;D), instead of only running just on my computer.
So that;s basically it for this project! I think it turned out great! I really loved Stardance, and I hope we do it again next year! Love you guys!
Heyyy there! Since the last devlog, I’ve been working on the Settings page and giving the Books page the final touches!
First of all, I finally started working on the Settings page! You can now see what Hogwarts house you’ve selected and also change it if you want. I also used AI to make sure the daily reading goal gets saved using localStorage, so the user does’nt have to set it again every time they open the website.
While working on this, I ran into a pretty annoying JavaScript bug where I had accidentally declared two variables with the same name, which caused all the buttons to stop working. I oped up the console on chrome while running the website and after chekcing the error statement, I founf the problem and fixed it!
I also spent some time on the books page! I added the checklist for all seven Harry Potter books, same as the one in the home screen (it syncs too, using localstorage). I also trying to change the css a little bit, so the cards’ styling is the same in all pages, cause I really want all the pages to feel like they’re part of the same app, and not look like completely different websites.
There’s still some things left before I can call the project finished, such as makeing sure the statistics are correct, test that all the achievements unlock automatically when you do what they ask for, and connect the daily reading goal with the rest of the app.
That’s it for this update! Hopefully, I’ll have even more to show you next time. See you in the next devlog!!
Devlog #4: Achievements Page!!
Heyyy there! Since the last devlog, I’ve been working on making the achievements page and stats page actually work, instead of just looking cool and aesthetic.
First of all, I worked on the achievements system! I used ChatGPT to write 8 different achievements, that the user unlocks based on how much time they’ve spent reading, how many reading sessions they’ve completed, and how many of the seven books you’ve marked as read. For example, you can unlock achievements for completing your first reading session, reading for one hour, or completing all the 7 books.
I also added a reading streak feature, which tracks how many days in a row the user has logged at least one reading session. I think this would be a really nice way to encourage myself to read more every day instead of just doomscrolling on my phone, kinda like duolingo!
Along the way, I fixed some JavaScript bugs with the help of AI and connected everything with localStorage, so the website can keep track of your progress even if you close the tab, or even the whole app, and come back later.
There’s still some testing to do to make sure everything works as intended, and I also still need to add the “Books” and “Settings” pages, but I think it’s turning into something that I, and I hope also other HP fans would use, and not just a Harry Potter themed website with a nice design.
That’s it for this now! Hopefully, I’ll have even more to show you next time. See you in the next devlog!
Heyyy there! Since the last devlog, I’ve been working on making the reading companion feel more cozy, by adding the background ambient sounds (rain, campfire, etc.) and also building out the stats page to basically just show some stats about your reading progress.
First of all, I added a background music player on the right side of the home screen! I set up a custom audio element with a dropdownmenu so you can switch between the different background sounds that are available. I also wrote some JavaScript to handle the play/pause button, and also to manually lower the volume on each track so they sound relatively the same, since some where louder than others.
I also built and styled the stats.html page! I used javascript in the html code by wrapping it in <script> tags, to connect with localStorage and pull your total reading time, how many books out of the seven you’ve completed, and also add a dynamic progress bar (this was made by AI) that fills up based on your progress.
Along the way, I made some CSS bugs and erros (I;m new in web devekopement), like some mismatched card class names and ids which I located and fixed. Moreover, I used AI to fix the grid margins on the book tracker so it fits inside the card without goinf over the border, and to also fix some javascript errors.
There’s still a lot to do, but in my opinion it’s kinda coming together into a complete and working reading companion. Hopefully, there will be more to show you next! That’s it for now, see you on the next devlog!
Heyy there! Second devlog for this project! Since the last one, I’ve been working on turning my website from jsut a nice looking website into something that’s actually useful to track my reading.
First of all, I continued working on the home screen and added a section where you can track which ones of the books you’ve read. It has checkboxes for all the books, and I also added a counter element that shows how many out of seven you’ve completed.
I used localStorage so your choices are saved instead of being lost when you refresh the page. I also worked on the reading timer, which lets you start, pause, resume, reset and finish a reading session. They aren’t all separate buttons, the main button changes between start, pause and resume depending on what you’re doing, and reset and finish have their own buttons that appear only once you start the timer. When you finish a session, the time gets saved, and the timer resets so you can start another one.
There were quite a few errors/bugs along the way, but what can we do, that’s part of building stuff! I used ChatGPT to help me with parts of the JavaScript, especially with the reading timer and the book-tracking feature. It helped me understand how localStorage works and some functions about it and also helped me fix some bugs in my code. I also used it to help me understand what was going wrong when some of my features weren’t working as expected.
There’s still a lot left to do, mostly adding the other pages, and some more elements fo the home screen. I also want to make sure everything works as intended and that the website remembers your progress. Hopefully, I’ll have more to show you next! That’s it for now, see you on the next devlog!
Heyy there! This took a little more time that it should’ve, cause I’m new to web development. So, I started working on a new project, which basically is a Harry Potter Reading Companion website! I am a HUGEEE Harry Potter fan (have read the books AND seen the movies multiple times each)!!! However, I often find myself scrolling on my phone when I could be reading one of the books. That’s why I decided to build something that makes reading more fun, with a really magical Hogwarts/Harry-Potter aesthetic.
First, I built the house selection page using HTML. It was pretty basic at first, having just a title, the four houses, their descriptions, and an OK button to confirm your choice. Then I started working on the CSS, adding the Harry Potter font, Cinzel font for the headings, house colors, gradients (made with the help of Claude), rounded cards and shadows. What really changed the whole aesthetic was adding an Hogwarts(-inspired) background I made with Nano Banana, which imho made everything come together and turned out so great!
After that, I started building the main website/home screen. First of all, I created a side menu with “Home”, “Books”, “Stats”, “Achievements” and “Settings”. I also worked on little details like the borders, hover effects, and a decorative divider, which took a bit of tweaking to get right. Finally, I started adding actual features, beginning with a reading timer using javascript. It has start, pause and reset controls, styled with the selected house’s colours.
I also wanted to add “Hedwig’s Theme” as background music, but I’m a little intimidated to do it because of copyright, so I’m trying to find other ways to include it, without getting sued. If anyone has any ideas, I’d really appreciate it.
There’s still a lot to do, including the actual reading features, stats and achievements, but I’m happy with how the design is coming together. That’s it for now, see you in the next devlog!