Giter Club home page Giter Club logo

profile-card's Introduction

Profile Card Component

This project demonstrates the implementation of a Profile Card component in a React TypeScript application. The component displays a user's name, profile picture, and bio.

Versions

There are two versions of the app, each with a different implementation of the Profile Card component.

Master Branch - Regular React App

In the master branch, the Profile Card component is a regular React component that includes the Profile Name, Profile Picture, and Profile Bio components directly inside it. The parent App component imports the ProfileCard component and uses it without passing any children to it.

With-Compound Branch - Compound Components

In the with-compound branch, the Profile Card component follows the compound components design pattern. This pattern allows the component to accept children components, providing greater flexibility in terms of composition. In this version, the App component imports the Profile component, which in turn imports the ProfileCard, ProfileName, ProfilePicture, and ProfileBio components. These components are then used as children of the ProfileCard component.

To switch between the two versions, you can check out the corresponding branch in your Git repository.

Screenshots

Profile Card Component

Live Demo

Experience the Profile Card Component in action by visiting the live demo:

Profile Card Component Live Demo

Usage

To run the app locally, follow these steps:

  1. Clone the repository and navigate to the project folder.
  2. Run npm install to install the required dependencies.
  3. Run npm run dev to start the development server.
  4. Open your browser and visit http://localhost:5173 to view the app.

Technologies Used

License

MIT

Contact Information

For any questions, concerns, or support, feel free to reach me out via email: [email protected].

profile-card's People

Contributors

obrm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.