LinkTree is a tool that allows you to share multiple links on social media platforms efficiently. It's designed to help users consolidate various URLs into a single, easy-to-navigate page, enhancing the online presence and accessibility of your links.
LinkTree/
├── assets/ # Static assets
│ ├── css/ # Modular CSS files
│ │ ├── base.css # Variables, reset, body, container
│ │ ├── components.css # Individual UI components
│ │ ├── animations.css # Keyframes and animations
│ │ ├── responsive.css # Media queries
│ │ └── style.css # Main CSS (imports all modules)
│ ├── js/ # JavaScript files
│ │ └── main.js # Main application logic
│ └── images/ # Image assets
├── src/ # Source files (for development)
├── dist/ # Production build output
├── index.html # Main HTML file
├── build.sh # Build script
├── package.json # Dependencies and scripts
└── README.md # This file
npm run build
# or
./build.sh-
base.css- Foundation styles- CSS custom properties (variables)
- CSS reset
- Body and container styles
- Background effects
-
components.css- Component-specific styles- Greeting, avatar, role sections
- Links, info-section, footer
- Individual component styling
-
animations.css- Animation definitions- All keyframes
- Animation timing and effects
- Hardware-accelerated transforms
-
responsive.css- Responsive design- Tablet breakpoints
- Mobile breakpoints
- Adaptive layouts
The build process optimizes assets for production:
- CSS Processing: Combines modular CSS files
- JavaScript Minification: Reduces JS bundle size
- Asset Optimization: Compresses images and fonts
- Cache Busting: Adds version hashes for cache invalidation
- Responsive Design: Works on all devices
- Smooth Animations: CSS-based animations with hardware acceleration
- Modern UI: Glassmorphism effects and gradients
- Accessibility: Semantic HTML and keyboard navigation
- Performance: Optimized loading and rendering
- Create styles in
assets/css/components.css - Add responsive styles in
assets/css/responsive.css - Update animations in
assets/css/animations.cssif needed
Update CSS custom properties in assets/css/base.css:
:root {
--primary-bg: #000000;
--accent-color: #ffffff;
/* ... other variables */
}- Fork the repository
- Create a feature branch
- Make changes following the modular architecture
- Test performance impact
- Submit a pull request
-
Automatic Deployment: The project includes GitHub Actions workflow for automatic deployment
-
Manual Setup:
- Go to your repository settings
- Navigate to "Pages" section
- Select "Deploy from a branch"
- Choose
mainbranch and/docsfolder - Save settings
-
Manual Build & Deploy:
./build.sh # Commit and push the docs/ folder
The dist/ folder contains production-ready files that can be deployed to:
- Netlify
- Vercel
- AWS S3 + CloudFront
- Any static web host
