# hoanghunganh/how-to-live-like-a-creative architecture

> Architecture diagram of the GitHub repository hoanghunganh/how-to-live-like-a-creative, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hoanghunganh/how-to-live-like-a-creative
- Repository: https://github.com/hoanghunganh/how-to-live-like-a-creative

## Overview

##### Project Type and Purpose
- The project is a simple, static website used for personal coding practice.
- Its purpose is educational, involving basic HTML, CSS (with Tailwind CSS configured), and JavaScript. It isn’t a large-scale full-stack application but focuses on front-end development and experimenting with modern styling frameworks.

##### File Structure
- Top-Level Files/Folders:
– README.md: Provides a brief project description in Vietnamese.
– index.html: The main web page that serves as the entry point.
– css folder: Contains styling files (input.css and style.css). Tailwind likely processes input.css to produce the final styles.
– js folder: Contains Script.js where your JavaScript logic resides.
– font folder: Houses any fonts used in the project.
– node_modules, package.json, package-lock.json, tailwind.config.js: These indicate the use of npm for package management and Tailwind CSS configuration.
- The structure shows a clear separation between content (HTML), presentation (CSS and Tailwind), and behavior (JavaScript).

##### Architectural Insights from the README
- The README briefly states that this project is used for practicing coding. This implies that the project is not meant for production, but serves as a sandbox to apply and test various front-end techniques.

a. Main Components to Include:
– Frontend (Static Website):
- index.html: The main entry point.
- CSS: In the css folder, both the raw Tailwind input (input.css) and the compiled output (style.css).
- JavaScript: In the js/Script.js file which manipulates DOM or provides interactive behavior.
– Build/Styling Configuration:
- tailwind.config.js: Customizes Tailwind’s configuration to control styling.

b. Relationships and Interactions:
– Show that index.html links to the CSS files and includes the JavaScript file.
– Indicate that tailwind.config.js affects how Tailwind processes input.css to generate style.css.
– If any external fonts are loaded, show that the font directory feeds into the styling of index.html.

c. Architectural Patterns/Design Principles:
– Emphasize separation of concerns: Mark clearly the distinctions between markup (HTML), styling (CSS with Tailwind), and behavior (JavaScript).

d. Relevant Technologies:
– HTML for content and structure.
– CSS enhanced by Tailwind CSS (configured by tailwind.config.js).
– JavaScript for interactions.
– Node.js/npm (package.json, node_modules) for managing dependencies.

##### Elements
- HTML (index.html)
- CSS (css folder with input.css and style.css)
- JavaScript (js/Script.js)
- Fonts (font folder)
- Tailwind Config (tailwind.config.js) and Associated Dependencies (package.json, node_modules)
- From index.html to css/ style.css and js/ Script.js.
- From tailwind.config.js & package.json to css/input.css indicating the build process.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Project Documentation"
        DOC["README.md"]:::documentation
    end

    subgraph "Dependency Management"
        DEP1["package.json"]:::dependency
        DEP2["node_modules"]:::dependency
        DEP3["package-lock.json"]:::dependency
    end

    subgraph "Configuration"
        CONFIG["tailwind.config.js"]:::config
    end

    subgraph "CSS Build Process"
        INPUT["css/input.css"]:::frontend
        OUTPUT["css/style.css"]:::frontend
    end

    subgraph "Frontend Assets"
        HTML["index.html"]:::frontend
        JS["js/Script.js"]:::frontend
        FONTS["font"]:::frontend
    end

    DEP1 -->|"npm"| CONFIG
    DEP2 -->|"npm"| CONFIG
    DEP3 -->|"npm"| CONFIG
    CONFIG -->|"processes"| INPUT
    INPUT -->|"builds"| OUTPUT
    OUTPUT -->|"styles"| HTML
    HTML -->|"includes"| JS
    FONTS -->|"fonts"| HTML
    DOC -->|"docs"| HTML

    click HTML "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/index.html"
    click INPUT "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/css/input.css"
    click OUTPUT "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/css/style.css"
    click JS "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/js/Script.js"
    click FONTS "https://github.com/hoanghunganh/how-to-live-like-a-creative/tree/master/font"
    click CONFIG "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/tailwind.config.js"
    click DEP1 "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/package.json"
    click DEP2 "https://github.com/hoanghunganh/how-to-live-like-a-creative/tree/master/node_modules"
    click DEP3 "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/package-lock.json"
    click DOC "https://github.com/hoanghunganh/how-to-live-like-a-creative/blob/master/README.md"

    class HTML,INPUT,OUTPUT,JS,FONTS frontend
    class CONFIG config
    class DEP1,DEP2,DEP3 dependency
    class DOC documentation

classDef frontend fill:#ADD8E6,stroke:#333,stroke-width:2px;
classDef config fill:#90EE90,stroke:#333,stroke-width:2px;
classDef dependency fill:#FDD835,stroke:#333,stroke-width:2px;
classDef documentation fill:#FFB6C1,stroke:#333,stroke-width:2px;
```
