主页模板edit icon

作者:
邓朝元
Fork(复制)
下载
嵌入
BUG反馈
index.html
现在支持上传本地图片了!
index.html
            
            <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gun Enthusiast's Guide | Firearms Community</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
            color: #e0e0e0;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: rgba(13, 27, 42, 0.9);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 2px solid #c5a880;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo i {
            font-size: 2.5rem;
            color: #c5a880;
            margin-right: 15px;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            background: linear-gradient(to right, #c5a880, #e0c097);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 1px;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 25px;
        }
        
        nav ul li a {
            color: #e0e0e0;
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        nav ul li a:hover, nav ul li a.active {
            background: rgba(197, 168, 128, 0.2);
            color: #c5a880;
        }
        
        /* Hero Section */
        .hero {
            height: 80vh;
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1598550476439-6847785fcea6?ixlib=rb-4.0.3') no-repeat center center/cover;
            display: flex;
            align-items: center;
            text-align: center;
            padding: 0 20px;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h2 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .hero p {
            font-size: 1.3rem;
            margin-bottom: 30px;
            color: #e0e0e0;
        }
        
        .btn {
            display: inline-block;
            background: linear-gradient(to right, #c5a880, #a67c52);
            color: #0d1b2a;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }
        
        /* Section Styles */
        section {
            padding: 80px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: #c5a880;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #c5a880;
        }
        
        .section-title p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 20px auto 0;
            color: #a0a0a0;
        }
        
        /* Features Section */
        .features {
            background: rgba(26, 42, 58, 0.7);
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .feature-card {
            background: rgba(13, 27, 42, 0.8);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-img {
            height: 200px;
            background-size: cover;
            background-position: center;
        }
        
        .feature-content {
            padding: 25px;
        }
        
        .feature-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #c5a880;
        }
        
        .feature-content p {
            margin-bottom: 20px;
            color: #b0b0b0;
        }
        
        /* Safety Section */
        .safety {
            background: linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)), url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3') no-repeat center center/cover;
        }
        
        .rules {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .rule-card {
            background: rgba(26, 42, 58, 0.8);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .rule-card i {
            font-size: 3rem;
            color: #c5a880;
            margin-bottom: 20px;
        }
        
        .rule-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #fff;
        }
        
        .rule-card p {
            color: #b0b0b0;
        }
        
        /* Types Section */
        .types {
            background: rgba(26, 42, 58, 0.7);
        }
        
        .types-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .type-card {
            background: rgba(13, 27, 42, 0.8);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .type-card:hover {
            transform: scale(1.03);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }
        
        .type-img {
            height: 180px;
            background-size: cover;
            background-position: center;
        }
        
        .type-content {
            padding: 20px;
        }
        
        .type-content h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: #c5a880;
        }
        
        .type-content p {
            color: #b0b0b0;
            font-size: 0.95rem;
        }
        
        /* Community Section */
        .community {
            background: linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)), url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3') no-repeat center center/cover;
            text-align: center;
        }
        
        .community-content {
            max-width: 700px;
            margin: 0 auto;
        }
        
        .community-content p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            color: #e0e0e0;
        }
        
        /* Footer */
        footer {
            background: #0a1420;
            padding: 50px 0 20px;
            border-top: 2px solid #c5a880;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            color: #c5a880;
            margin-bottom: 20px;
            font-size: 1.4rem;
        }
        
        .footer-column p, .footer-column li {
            color: #a0a0a0;
            margin-bottom: 10px;
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li a {
            color: #a0a0a0;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: #c5a880;
        }
        
        .social-links {
            display: flex;
            margin-top: 20px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(197, 168, 128, 0.2);
            border-radius: 50%;
            margin-right: 15px;
            color: #c5a880;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: #c5a880;
            color: #0d1b2a;
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(197, 168, 128, 0.2);
            color: #707070;
            font-size: 0.9rem;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
            }
            
            nav ul {
                margin-top: 20px;
            }
            
            nav ul li {
                margin: 0 10px;
            }
            
            .hero h2 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
        }
    </style>
</head>
<body>
    <!-- Header -->
    <header>
        <div class="container header-container">
            <div class="logo">
                <i class="fas fa-crosshairs"></i>
                <h1>Gun Enthusiast's Guide</h1>
            </div>
            <nav>
                <ul>
                    <li><a href="#" class="active">Home</a></li>
                    <li><a href="#">Types</a></li>
                    <li><a href="#">Safety</a></li>
                    <li><a href="#">Training</a></li>
                    <li><a href="#">Community</a></li>
                    <li><a href="#">Resources</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- Hero Section -->
    <section class="hero">
        <div class="hero-content">
            <h2>Responsible Firearm Ownership</h2>
            <p>Your comprehensive guide to firearms education, safety, and community</p>
            <a href="#" class="btn">Join Our Community</a>
        </div>
    </section>

    <!-- Features Section -->
    <section class="features">
        <div class="container">
            <div class="section-title">
                <h2>Why Choose Our Guide</h2>
                <p>We provide comprehensive resources for responsible firearm ownership and education</p>
            </div>
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-img" style="background-image: url('https://images.unsplash.com/photo-1598550476439-6847785fcea6?ixlib=rb-4.0.3');"></div>
                    <div class="feature-content">
                        <h3>Firearm Education</h3>
                        <p>Learn about different firearms, their mechanisms, and proper handling techniques from experienced professionals.</p>
                        <a href="#" class="btn">Learn More</a>
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-img" style="background-image: url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3');"></div>
                    <div class="feature-content">
                        <h3>Safety First</h3>
                        <p>Comprehensive safety guidelines and training to ensure responsible firearm handling at all times.</p>
                        <a href="#" class="btn">Learn More</a>
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-img" style="background-image: url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3');"></div>
                    <div class="feature-content">
                        <h3>Legal Knowledge</h3>
                        <p>Stay informed about federal, state, and local firearm laws to ensure compliance and responsible ownership.</p>
                        <a href="#" class="btn">Learn More</a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Safety Section -->
    <section class="safety">
        <div class="container">
            <div class="section-title">
                <h2>Firearm Safety Rules</h2>
                <p>These fundamental rules are the cornerstone of responsible firearm ownership</p>
            </div>
            <div class="rules">
                <div class="rule-card">
                    <i class="fas fa-bullseye"></i>
                    <h3>Treat Every Firearm as Loaded</h3>
                    <p>Always handle firearms as if they are loaded, even if you believe they are not.</p>
                </div>
                <div class="rule-card">
                    <i class="fas fa-hand-point-right"></i>
                    <h3>Never Point a Firearm at Anything You Do Not Intend to Shoot</h3>
                    <p>Always keep the muzzle pointed in a safe direction, regardless of whether you believe the firearm is loaded.</p>
                </div>
                <div class="rule-card">
                    <i class="fas fa-fingerprint"></i>
                    <h3>Keep Your Finger Off the Trigger Until Ready to Shoot</h3>
                    <p>Keep your finger outside the trigger guard until you have made the decision to shoot.</p>
                </div>
                <div class="rule-card">
                    <i class="fas fa-eye"></i>
                    <h3>Be Sure of Your Target and What is Beyond It</h3>
                    <p>Identify your target and what lies beyond it before pulling the trigger.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Types Section -->
    <section class="types">
        <div class="container">
            <div class="section-title">
                <h2>Firearm Categories</h2>
                <p>Understanding the different types of firearms and their applications</p>
            </div>
            <div class="types-grid">
                <div class="type-card">
                    <div class="type-img" style="background-image: url('https://images.unsplash.com/photo-1598550476439-6847785fcea6?ixlib=rb-4.0.3');"></div>
                    <div class="type-content">
                        <h3>Pistols</h3>
                        <p>Handheld firearms designed to be operated with one hand. Includes revolvers and semi-automatic pistols.</p>
                    </div>
                </div>
                <div class="type-card">
                    <div class="type-img" style="background-image: url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3');"></div>
                    <div class="type-content">
                        <h3>Rifles</h3>
                        <p>Long-barreled firearms designed to be fired from the shoulder. Ideal for accuracy at longer distances.</p>
                    </div>
                </div>
                <div class="type-card">
                    <div class="type-img" style="background-image: url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3');"></div>
                    <div class="type-content">
                        <h3>Shotguns</h3>
                        <p>Firearms that fire a cluster of small pellets or a single slug. Effective at close to medium range.</p>
                    </div>
                </div>
                <div class="type-card">
                    <div class="type-img" style="background-image: url('https://images.unsplash.com/photo-1580136579312-94651dfd596d?ixlib=rb-4.0.3');"></div>
                    <div class="type-content">
                        <h3>AR Platforms</h3>
                        <p>Modular rifle systems that have become popular for sport shooting, hunting, and competition.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Community Section -->
    <section class="community">
        <div class="container">
            <div class="section-title">
                <h2>Join Our Community</h2>
            </div>
            <div class="community-content">
                <p>Connect with fellow firearm enthusiasts, share experiences, and learn from experts in our growing community. We host regular training sessions, competitions, and educational events.</p>
                <a href="#" class="btn">Become a Member</a>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>Gun Enthusiast's Guide</h3>
                    <p>Your trusted resource for responsible firearm ownership, education, and community engagement.</p>
                    <div class="social-links">
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                        <a href="#"><i class="fab fa-youtube"></i></a>
                    </div>
                </div>
                <div class="footer-column">
                    <h3>Quick Links</h3>
                    <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Firearm Types</a></li>
                        <li><a href="#">Safety Guidelines</a></li>
                        <li><a href="#">Training Programs</a></li>
                        <li><a href="#">Community Events</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h3>Resources</h3>
                    <ul>
                        <li><a href="#">Firearm Laws</a></li>
                        <li><a href="#">Maintenance Guides</a></li>
                        <li><a href="#">Training Videos</a></li>
                        <li><a href="#">Recommended Reading</a></li>
                        <li><a href="#">Safety Courses</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h3>Contact Us</h3>
                    <p><i class="fas fa-envelope"></i> info@gunenthusiastguide.com</p>
                    <p><i class="fas fa-phone"></i> (555) 123-4567</p>
                    <p><i class="fas fa-map-marker-alt"></i> 123 Shooting Range Rd, Gunville, GV 12345</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2023 Gun Enthusiast's Guide. All rights reserved. | Promoting responsible firearm ownership and safety.</p>
            </div>
        </div>
    </footer>

    <script>
        // Simple animation for feature cards on scroll
        document.addEventListener('DOMContentLoaded', function() {
            const featureCards = document.querySelectorAll('.feature-card');
            
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = 1;
                        entry.target.style.transform = 'translateY(0)';
                    }
                });
            }, { threshold: 0.1 });
            
            featureCards.forEach(card => {
                card.style.opacity = 0;
                card.style.transform = 'translateY(20px)';
                card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
                observer.observe(card);
            });
            
            // Smooth scrolling for navigation links
            document.querySelectorAll('nav a').forEach(anchor => {
                anchor.addEventListener('click', function(e) {
                    e.preventDefault();
                    const targetId = this.getAttribute('href');
                    if(targetId === '#') return;
                    
                    const targetElement = document.querySelector(targetId);
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });
                });
            });
        });
    </script>
</body>
</html>
        
编辑器加载中
预览
控制台