📖 English Documentation
🚀 Introduction
Landing MC Server is a modern, responsive website template for Minecraft servers. It offers a contemporary experience with:
- Responsive Design: Compatible with all devices
- Discord Integration: Connect your Discord community
- Status System: Real-time server status display
- Staff Panel: Staff application system
- Guides and Rules: Customizable sections for your community
- Modern UI: Built with Tailwind CSS and Radix UI components
🛠️ Initial Installation
Prerequisites
- Node.js 20.x or higher
- npm or yarn
- Git
Installation Steps
Clone the repository
bashgit clone https://github.com/your-username/landing-mcserver-morda.git cd landing-mcserver-mordaInstall dependencies
bashnpm installStart development server
bashnpm run devOpen in browser
http://localhost:4321
⚙️ Configuration Guide
Basic Configuration
Edit server configuration
Open
src/config.jsonand modify the values:json{ "server": { "name": "Your Server Name", "ip": "play.yourserver.com" }, "discord": { "webhookUrl": "YOUR_WEBHOOK_URL", "inviteLink": "https://discord.gg/your-invite" }, "staff": { "applicationTitle": "Staff Application", "applicationDescription": "Join our team" } }Customize content
- Homepage: Edit
src/pages/index.astro - Rules: Modify
src/pages/rules.astro - Guide: Edit
src/pages/guide.astro - Staff: Configure
src/pages/staff.astro
- Homepage: Edit
🎮 Discord Integration Setup
1. Get Discord Webhook
- Go to your Discord server
- Server Settings → Integrations → Webhooks
- Create a new webhook
- Copy the webhook URL
2. Configure Webhook
- Open
src/config.json - Replace
YOUR_DISCORD_WEBHOOK_URL_HEREwith your URL - Ensure the target channel has permissions to receive messages
3. Customize Messages
Discord messages are configured in React components located in src/components/react/. You can customize:
- Message formats
- Custom embeds
- Automatic notifications
📝 Editing Rules and Guide Content
Server Rules
Edit src/pages/rules.astro:
---
import Layout from '../layouts/Layout.astro';
---
<Layout title="Server Rules">
<!-- Your custom rules -->
<section>
<h2>General Rules</h2>
<ul>
<li>Your rule 1</li>
<li>Your rule 2</li>
</ul>
</section>
</Layout>Player Guide
Edit src/pages/guide.astro to include:
- Getting started tutorial
- Basic commands
- Rank guide
- Server economy
- Custom sections
🎨 Visual Customization (Colors and Styles)
Main Colors
Colors are configured in tailwind.config.ts:
export default {
theme: {
extend: {
colors: {
primary: {
50: '#faf5ff',
500: '#8b5cf6',
600: '#7c3aed',
700: '#6d28d9',
}
}
}
}
}UI Components
Components are located in src/components/ui/ and use:
- Tailwind CSS: For styling
- Radix UI: For accessible components
- Lucide React: For icons
Advanced Customization
- Modify theme: Edit
src/styles/global.css - Add components: Create in
src/components/ - Animations: Use
tailwindcss-animate
🚀 Deployment
Vercel (Recommended)
Install Vercel CLI
bashnpm i -g vercelDeploy
bashvercel --prodEnvironment Variables
- Configure in Vercel dashboard
- Add
DISCORD_WEBHOOK_URL
Netlify
- Connect repository
- Configure build command:
npm run build - Publish directory:
dist
Docker
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
EXPOSE 4321
CMD ["npm", "run", "preview"]📁 Project Structure
landing-mcserver-morda/
├── public/ # Static assets
│ ├── favicon.svg
│ └── placeholder-logo.svg
├── src/
│ ├── assets/ # Images and resources
│ ├── components/ # React/Astro components
│ │ ├── ui/ # Reusable UI components
│ │ └── react/ # Interactive React components
│ ├── layouts/ # Astro layouts
│ ├── lib/ # Utilities and helpers
│ ├── pages/ # Site pages
│ │ ├── api/ # API endpoints
│ │ ├── index.astro # Homepage
│ │ ├── rules.astro # Rules
│ │ ├── guide.astro # Guide
│ │ └── staff.astro # Staff
│ ├── styles/ # CSS styles
│ └── config.json # Main configuration
├── astro.config.mjs # Astro configuration
├── package.json # Dependencies
├── tailwind.config.ts # Tailwind configuration
└── README.md # This file🔮 Recommended Next Steps
Configure Custom Domain
- Add your domain in hosting provider
- Configure DNS pointing to your site
SEO Optimization
- Edit meta tags in
src/layouts/Layout.astro - Add sitemap.xml
- Configure robots.txt
- Edit meta tags in
Analytics
- Integrate Google Analytics
- Configure custom events
Monetization
- Add item shop
- Donation system
- VIP ranks
Additional Features
- Voting system
- Statistics API
- Integrated chat
🔧 Troubleshooting
Common Issues
Error: "Node.js version not supported"
# Update Node.js to version 20.x
nvm install 20
nvm use 20Error: "Port already in use"
# Kill process on port 4321
npx kill-port 4321Error: "Dependencies not found"
# Clean cache and reinstall
rm -rf node_modules package-lock.json
npm installDiscord Webhook not working
- Verify webhook URL
- Confirm channel permissions
- Check configuration in
src/config.json
Build fails in production
- Check environment variables
- Verify Astro configuration
- Clean cache:
npm run build -- --clean
Technical Support
- Official documentation: Astro Docs
- Project issues: GitHub Issues
- Community Discord: Your support server
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
⭐ Support
If you find this project helpful, please consider giving it a star on GitHub!
💬 Support
Developed with 💙 by Revers Studio