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.
- 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.
To use the Greetings Web Part, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/greetings-webpart.git
- Navigate to the project directory:
cd greetings-webpart - Install dependencies:
npm install
- Build the project:
gulp build
- Bundle the project:
gulp bundle --ship
- Package the solution:
gulp package-solution --ship
To deploy the web part, upload the generated .sppkg file from the sharepoint/solution folder to your SharePoint App Catalog.
- Add the Greetings Web Part to a SharePoint page.
- 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.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/your-feature). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
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.



