modifier / baburnama

Home Page:https://baburnama.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Baburnama

This project uses Svelte as a framework. If you're not familiar with it, you might want to check its website: https://svelte.dev

Project structure

The project is structured as follows:

  • src
    • main.ts - the entry point of the app
    • App.svelte - the entry point of the Svelte app
    • stores.ts - public stores of the application (see svelte/store)
    • types.ts - typescript types
    • assets - static assets, like the background or the font
    • components - reusable components
      • Book.svelte - manages the page turn effect
      • Codex.svelte - contains the visual representation of the book and its cover
      • CodexToolbar.svelte - contains links to the table of contents and the language picker
      • LanguagePicker.svelte - allows the user to switch between the languages
      • Page.svelte - contains the contents of the page
      • pages
        • Regular.svelte - represents a regular page that can have an image, a text, or both
        • Credits.svelte - represents the credits page
        • TableOfContents.svelte - represents the table of contents
        • Titular.svelte - represents the very first page with the book name, and the last page with "to be continued"
      • content - folder with the static content of the book
        • content.ts - the contents of Baburnama itself
        • static-lang.ts - some static strings that are used in the app that are not the part of the book itself
        • appendix.ts - the contents of the book appendix (not implemented yet)
      • lib
        • language.ts - contains the language detection utility function
        • page.ts - contains utility class "Page" related to the pages
        • preload.ts - contains the utility function that preloads images
        • transition.ts - contains the action "fallbackTransition" used for the browsers that do not support "transitionend" event

Sources

Page turn effect: https://codepen.io/diemoritat/pen/LKROYZ

Paper: https://codepen.io/TheMOZZARELLA/pen/pormjbw

Background: https://www.pexels.com/photo/desert-during-nighttime-847402/ by Walid Ahmad

Font: https://www.andrewmarcus.ru/projects/fonts/pehlevi/

Additional links

Book effects: https://blog.avada.io/css/book-effects

About

https://baburnama.vercel.app

License:MIT License


Languages

Language:TypeScript 67.9%Language:Svelte 29.1%Language:SCSS 1.8%Language:HTML 0.8%Language:JavaScript 0.4%