LifeDots-Blazor

A Blazor application that visualizes the remaining weeks of life as colored dots. This project is part of a portfolio, showcasing skills in .NET, Blazor, and deploying.

MIT License

Stars
1
Committers
2

LifeDots Blazor Application

Overview

The LifeDots project is a Blazor application designed to visualize the remaining weeks of a user's estimated lifespan as colored dots. This application is built using Blazor (.NET-Platform).

DEMO

Project Structure

The project is structured into several key components:

Interfaces

  • ICounterHandler.cs: Interface for handling counter logic.
  • IDotColorizer.cs: Interface for managing the logic of coloring dots based on user data.
  • IDotGenerator.cs: Interface responsible for generating the dot visualization.
  • IHomeService.cs: Interface for managing home page services.
  • IMessageService.cs: Interface for handling message services within the application.

Pages

  • Home.razor: The main page of the application, where the dot visualization is rendered.
  • Home.razor.cs: Code-behind for Home.razor handling logic and interactions.

Services

  • CounterHandler.cs: Implementation of the ICounterHandler interface, managing the counting logic.
  • DotColorizer.cs: Implementation of the IDotColorizer interface, providing the logic for coloring dots.
  • DotGenerator.cs: Implementation of the IDotGenerator interface, responsible for generating the dots based on user input.
  • HomeService.cs: Implementation of the IHomeService interface, managing services related to the home page.
  • MessageService.cs: Implementation of the IMessageService interface, providing messaging capabilities within the app.

Main Program

  • Program.cs: The entry point of the application, configuring services and the app's request pipeline.

Setup and Deployment

Prerequisites

Running Locally

  1. Create a new directory and navigate into it:

    mkdir LifeDotsProject
    cd LifeDotsProject
    
  2. Clone the repository:

    git clone https://github.com/rudolphreti/LifeDots-Blazor
    cd LifeDots-Blazor
    
  3. Open the project in Visual Studio:

  • Open Visual Studio.
  • Click on Open a project or solution.
  • Navigate to the cloned repository folder LifeDots-Blazor and open the .sln file.
  1. Press F5 to run the project.

To do

  • Service for loading message content, e.g. from a JSON file
  • Support for multiple languages

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Thanks to the Blazor and .NET communities for their support and resources!