Skip to content

Repository files navigation

Greetings Web Part for SharePoint SPFx

Overview

The Greetings Web Part is a custom SharePoint Framework (SPFx) web part designed to display personalized greeting messages based on the time of day. It allows customization of font properties and includes the capability to add a custom message alongside the greeting.

Features

  • Dynamic Greetings: Automatically displays "Good Morning", "Good Afternoon", or "Good Evening" based on the current time.
  • Custom Message: Add a personalized message to accompany the greeting.
  • Customizable Text: Modify the font color, size, weight, and position through the property pane.

Screenshots

1

2

3

4

Installation

To use the Greetings Web Part, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/greetings-webpart.git
  2. Navigate to the project directory:
    cd greetings-webpart
  3. Install dependencies:
    npm install
  4. Build the project:
    gulp build
  5. Bundle the project:
    gulp bundle --ship
  6. Package the solution:
    gulp package-solution --ship

Deployment

To deploy the web part, upload the generated .sppkg file from the sharepoint/solution folder to your SharePoint App Catalog.

Usage

  1. Add the Greetings Web Part to a SharePoint page.
  2. Use the property pane to customize the greeting message:
    • Greeting Text: Enter a custom message.
    • Text Position: Select the position (left, center, right).
    • Font Size: Set the font size.
    • Font Weight: Choose the font weight (e.g., normal, bold).
    • Text Color: Pick a color for the text.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a Pull Request.

License

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

Contact

If you have any questions or feedback, please open an issue or contact me at [your email address].


Thank you for using the Greetings Web Part! We hope it enhances your SharePoint experience.

About

The Greetings Web Part for SharePoint SPFx provides personalized greetings (Good Morning, Good Afternoon, Good Evening) based on the time of day. Users can customize the message, font size, weight, and color, as well as the text position. This project uses SharePoint Framework and React, and is designed for SharePoint Online

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors