My Digital Card is a modern, React-based application designed to create a personalized and interactive digital business card. This project makes it simple for professionals to share their contact information, social media profiles, and personal branding in a digital format that is accessible anywhere.
https://weisser-dev.github.io/my-digital-card/
- Features
- Installation
- Usage
- Configuration
- Folder Structure
- Using Font Awesome Icons
- Contributing
- License
- Forking and Deployment
- Screenshots
- Profile Image: Display a headshot or logo to represent yourself or your brand.
- Background Image: Set a backdrop that captures your professional persona.
- Social Media Profiles: Link out to your professional social media pages with ease.
- Customizable Elements: Add custom card elements tailored to your business needs.
- Theme Support: Switch between light and dark mode or apply a custom theme to match your style.
- Simple Configuration: Update your digital card using a straightforward
config.json
file. - Data Privacy: Encode your personal data to keep it secure when your card is shared publicly.
To get started with My Digital Card:
-
Clone the repository:
bash git clone https://github.com/weisser-dev/my-digital-card.git
-
Navigate to the project directory:
cd my-digital-card
-
Install the necessary dependencies:
npm install
Begin by starting the development server to see your card in action: npm start
This launches the card at http://localhost:3000
. Before you do this, create a profileData.json
based on the
provided template.json
to ensure all your information is displayed correctly.
The config.json
file controls various aspects of your digital card:
- Themes: Choose 'auto' for system preference, 'light' or 'dark' for fixed themes, or 'default' for a custom theme.
- SEO: Enable or disable search engine indexing based on your visibility preferences.
- Encoding: Opt to encode your profile data for an extra layer of privacy.
Refer to the config.json
file and update the settings as needed for your use case.
Each part of the application is neatly contained within specific folders:
src/
: The heart of the React application.components/
: Reusable UI pieces.data/
: Home forprofileData.json
.config/
: Whereconfig.json
file live.colorThemes/
: Different stylesheet options for theming.
public/
: Houses static files like images and the main HTML file.build/
: The output directory for production-ready builds.
Font Awesome icons enhance the visual appeal of your card. Here's how to use them:
- Find the icon on Font Awesome.
- Copy the class name (e.g.,
fa-github
). - Insert it into
profileData.json
for the appropriate element.
I encourage contributions! To contribute:
- Fork the repo.
- Create a feature branch:
git checkout -b new-feature
- Commit changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin new-feature
- Submit a pull request.
My Digital Card is under the MIT License.
Feel free to fork this project and make it your own. Here's how to deploy your version:
- Fill out
profileData.json
with your details. - Customize images to avoid using the default ones, such as my dog's photo.
- Prepare your data for deployment with
npm run prebuild
. - Commit the base64 encoded data file.
- Deploy to your preferred service, like GitHub Pages (Works out of the box, just enable Actions and give them the correct permissions: Actions -> General -> Workflow -> Read and write permissions ).
- Enable GH Pages -> Pages -> "Deploy from a branch" -> "gh-pages" Happy sharing of your professional digital business card!
- Pls also check, if you use a custom domain, that this is in the .env File as PUBLIC_URL