Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > Generate a beautiful website for Steve's pc repair using a single html script. /
- I'll create a beautiful and functional website for Steve's PC Repair using a single HTML file with embedded CSS and JavaScript.
- ```html
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Steve's PC Repair</title>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
- <style>
- :root {
- --primary: #3498db;
- --secondary: #2c3e50;
- --accent: #e74c3c;
- --light: #ecf0f1;
- --dark: #2c3e50;
- --success: #2ecc71;
- }
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- }
- body {
- background-color: #f5f7fa;
- color: var(--dark);
- line-height: 1.6;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0 20px;
- }
- /* Header Styles */
- header {
- background-color: var(--secondary);
- color: white;
- padding: 20px 0;
- position: sticky;
- top: 0;
- z-index: 100;
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
- }
- .header-content {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .logo {
- display: flex;
- align-items: center;
- gap: 10px;
- font-size: 1.5rem;
- font-weight: bold;
- }
- .logo i {
- color: var(--primary);
- }
- nav ul {
- display: flex;
- list-style: none;
- gap: 30px;
- }
- nav a {
- color: white;
- text-decoration: none;
- font-weight: 500;
- transition: color 0.3s;
- position: relative;
- }
- nav a:hover {
- color: var(--primary);
- }
- nav a::after {
- content: '';
- position: absolute;
- width: 0;
- height: 2px;
- bottom: -5px;
- left: 0;
- background-color: var(--primary);
- transition: width 0.3s;
- }
- nav a:hover::after {
- width: 100%;
- }
- .mobile-menu-btn {
- display: none;
- background: none;
- border: none;
- color: white;
- font-size: 1.5rem;
- cursor: pointer;
- }
- /* Hero Section */
- .hero {
- background: linear-gradient(135deg, var(--secondary), var(--primary));
- color: white;
- padding: 100px 0;
- text-align: center;
- }
- .hero-content {
- max-width: 800px;
- margin: 0 auto;
- }
- .hero h1 {
- font-size: 3rem;
- margin-bottom: 20px;
- animation: fadeInUp 1s ease-out;
- }
- .hero p {
- font-size: 1.2rem;
- margin-bottom: 30px;
- animation: fadeInUp 1s ease-out 0.2s forwards;
- opacity: 0;
- }
- .btn {
- display: inline-block;
- background-color: var(--accent);
- color: white;
- padding: 12px 30px;
- border-radius: 50px;
- text-decoration: none;
- font-weight: bold;
- transition: all 0.3s;
- border: none;
- cursor: pointer;
- animation: fadeInUp 1s ease-out 0.4s forwards;
- opacity: 0;
- }
- .btn:hover {
- background-color: #c0392b;
- transform: translateY(-3px);
- box-shadow: 0 10px 20px rgba(0,0,0,0.1);
- }
- .btn-outline {
- background-color: transparent;
- border: 2px solid white;
- margin-left: 15px;
- animation: fadeInUp 1s ease-out 0.6s forwards;
- opacity: 0;
- }
- .btn-outline:hover {
- background-color: white;
- color: var(--secondary);
- }
- /* Services Section */
- .services {
- padding: 80px 0;
- }
- .section-title {
- text-align: center;
- margin-bottom: 50px;
- }
- .section-title h2 {
- font-size: 2.5rem;
- color: var(--secondary);
- position: relative;
- display: inline-block;
- padding-bottom: 15px;
- }
- .section-title h2::after {
- content: '';
- position: absolute;
- width: 70px;
- height: 3px;
- background-color: var(--primary);
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- }
- .services-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: 30px;
- margin-top: 40px;
- }
- .service-card {
- background-color: white;
- border-radius: 10px;
- padding: 30px;
- text-align: center;
- box-shadow: 0 5px 15px rgba(0,0,0,0.05);
- transition: transform 0.3s, box-shadow 0.3s;
- }
- .service-card:hover {
- transform: translateY(-10px);
- box-shadow: 0 15px 30px rgba(0,0,0,0.1);
- }
- .service-icon {
- width: 70px;
- height: 70px;
- background-color: var(--light);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 0 auto 20px;
- font-size: 1.8rem;
- color: var(--primary);
- }
- .service-card h3 {
- margin-bottom: 15px;
- color: var(--secondary);
- }
- .service-card p {
- color: #666;
- margin-bottom: 20px;
- }
- /* About Section */
- .about {
- padding: 80px 0;
- background-color: #f9f9f9;
- }
- .about-content {
- display: flex;
- align-items: center;
- gap: 50px;
- margin-top: 40px;
- }
- .about-text {
- flex: 1;
- }
- .about-text h2 {
- font-size: 2.2rem;
- margin-bottom: 20px;
- color: var(--secondary);
- }
- .about-text p {
- margin-bottom: 20px;
- color: #555;
- }
- .about-image {
- flex: 1;
- border-radius: 10px;
- overflow: hidden;
- box-shadow: 0 10px 30px rgba(0,0,0,0.1);
- }
- .about-image img {
- width: 100%;
- height: auto;
- display: block;
- }
- /* Testimonials Section */
- .testimonials {
- padding: 80px 0;
- }
- .testimonial-slider {
- max-width: 800px;
- margin: 0 auto;
- position: relative;
- }
- .testimonial {
- background-color: white;
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 5px 15px rgba(0,0,0,0.05);
- margin: 20px;
- text-align: center;
- }
- .testimonial-content {
- font-style: italic;
- margin-bottom: 20px;
- color: #555;
- }
- .testimonial-author {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 15px;
- }
- .author-avatar {
- width: 60px;
- height: 60px;
- border-radius: 50%;
- overflow: hidden;
- }
- .author-avatar img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .author-info h4 {
- margin-bottom: 5px;
- color: var(--secondary);
- }
- .author-info p {
- color: #777;
- font-size: 0.9rem;
- }
- .slider-controls {
- display: flex;
- justify-content: center;
- margin-top: 30px;
- gap: 15px;
- }
- .slider-btn {
- background-color: var(--light);
- border: none;
- width: 40px;
- height: 40px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: all 0.3s;
- color: var(--dark);
- }
- .slider-btn:hover {
- background-color: var(--primary);
- color: white;
- }
- .testimonial-indicators {
- display: flex;
- justify-content: center;
- margin-top: 20px;
- gap: 10px;
- }
- .indicator {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background-color: #ddd;
- cursor: pointer;
- transition: all 0.3s;
- }
- .indicator.active {
- background-color: var(--primary);
- width: 30px;
- border-radius: 5px;
- }
- /* Contact Section */
- .contact {
- padding: 80px 0;
- }
- .contact-container {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: 40px;
- margin-top: 40px;
- }
- .contact-info {
- background-color: white;
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 5px 15px rgba(0,0,0,0.05);
- }
- .contact-info h3 {
- font-size: 1.5rem;
- margin-bottom: 20px;
- color: var(--secondary);
- }
- .contact-item {
- display: flex;
- align-items: flex-start;
- margin-bottom: 20px;
- }
- .contact-icon {
- width: 40px;
- height: 40px;
- background-color: var(--light);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 15px;
- color: var(--primary);
- flex-shrink: 0;
- }
- .contact-details h4 {
- margin-bottom: 5px;
- color: var(--secondary);
- }
- .contact-details p, .contact-details a {
- color: #666;
- text-decoration: none;
- transition: color 0.3s;
- }
- .contact-details a:hover {
- color: var(--primary);
- }
- .business-hours {
- margin-top: 30px;
- }
- .business-hours h4 {
- margin-bottom: 15px;
- color: var(--secondary);
- }
- .hours-list {
- list-style: none;
- }
- .hours-list li {
- display: flex;
- justify-content: space-between;
- padding: 8px 0;
- border-bottom: 1px dashed #eee;
- }
- .hours-list li:last-child {
- border-bottom: none;
- }
- .contact-form {
- background-color: white;
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 5px 15px rgba(0,0,0,0.05);
- }
- .contact-form h3 {
- font-size: 1.5rem;
- margin-bottom: 20px;
- color: var(--secondary);
- }
- .form-group {
- margin-bottom: 20px;
- }
- .form-group label {
- display: block;
- margin-bottom: 8px;
- color: var(--secondary);
- font-weight: 500;
- }
- .form-control {
- width: 100%;
- padding: 12px 15px;
- border: 1px solid #ddd;
- border-radius: 5px;
- font-size: 1rem;
- transition: border-color 0.3s;
- }
- .form-control:focus {
- border-color: var(--primary);
- outline: none;
- }
- textarea.form-control {
- min-height: 150px;
- resize: vertical;
- }
- /* Footer */
- footer {
- background-color: var(--secondary);
- color: white;
- padding: 60px 0 20px;
- }
- .footer-content {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- gap: 40px;
- margin-bottom: 40px;
- }
- .footer-column h3 {
- font-size: 1.3rem;
- margin-bottom: 20px;
- position: relative;
- padding-bottom: 10px;
- }
- .footer-column h3::after {
- content: '';
- position: absolute;
- width: 40px;
- height: 2px;
- background-color: var(--primary);
- bottom: 0;
- left: 0;
- }
- .footer-column p {
- margin-bottom: 15px;
- color: #ccc;
- line-height: 1.8;
- }
- .footer-links {
- list-style: none;
- }
- .footer-links li {
- margin-bottom: 12px;
- }
- .footer-links a {
- color: #ccc;
- text-decoration: none;
- transition: color 0.3s;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .footer-links a:hover {
- color: var(--primary);
- }
- .social-links {
- display: flex;
- gap: 15px;
- margin-top: 20px;
- }
- .social-links a {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 40px;
- background-color: rgba(255,255,255,0.1);
- border-radius: 50%;
- color: white;
- transition: all 0.3s;
- }
- .social-links a:hover {
- background-color: var(--primary);
- transform: translateY(-3px);
- }
- .footer-bottom {
- border-top: 1px solid rgba(255,255,255,0.1);
- padding-top: 20px;
- text-align: center;
- color: #aaa;
- font-size: 0.9rem;
- }
- /* Modal */
- .modal {
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,0.5);
- z-index: 1000;
- justify-content: center;
- align-items: center;
- }
- .modal-content {
- background-color: white;
- border-radius: 10px;
- max-width: 500px;
- width: 90%;
- padding: 30px;
- position: relative;
- animation: modalFadeIn 0.3s;
- }
- .close-modal {
- position: absolute;
- top: 15px;
- right: 15px;
- font-size: 1.5rem;
- background: none;
- border: none;
- cursor: pointer;
- color: #777;
- transition: color 0.3s;
- }
- .close-modal:hover {
- color: var(--accent);
- }
- .modal-content h3 {
- margin-bottom: 20px;
- color: var(--secondary);
- }
- .success-message {
- display: none;
- background-color: var(--success);
- color: white;
- padding: 15px;
- border-radius: 5px;
- margin-bottom: 20px;
- text-align: center;
- }
- /* Animations */
- @keyframes fadeInUp {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- @keyframes modalFadeIn {
- from {
- opacity: 0;
- transform: translateY(-50px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- /* Responsive Styles */
- @media (max-width: 992px) {
- .about-content {
- flex-direction: column;
- }
- .about-image {
- margin-top: 30px;
- }
- }
- @media (max-width: 768px) {
- .header-content {
- flex-direction: column;
- gap: 20px;
- }
- nav ul {
- flex-direction: column;
- align-items: center;
- gap: 15px;
- margin-top: 15px;
- }
- .mobile-menu-btn {
- display: block;
- }
- .hero h1 {
- font-size: 2.5rem;
- }
- .btn {
- padding: 12px 25px;
- }
- .services-grid {
- grid-template-columns: 1fr;
- }
- .section-title h2 {
- font-size: 2rem;
- }
- }
- @media (max-width: 576px) {
- .hero h1 {
- font-size: 2rem;
- }
- .btn {
- display: block;
- width: 100%;
- margin-bottom: 15px;
- }
- .btn-outline {
- margin-left: 0;
- }
- .contact-container {
- grid-template-columns: 1fr;
- }
- .footer-content {
- grid-template-columns: 1fr;
- }
- }
- </style>
- </head>
- <body>
- <!-- Header -->
- <header>
- <div class="container header-content">
- <div class="logo">
- <i class="fas fa-laptop-medical"></i>
- <span>Steve's PC Repair</span>
- </div>
- <button class="mobile-menu-btn">
- <i class="fas fa-bars"></i>
- </button>
- <nav>
- <ul>
- <li><a href="#home">Home</a></li>
- <li><a href="#services">Services</a></li>
- <li><a href="#about">About</a></li>
- <li><a href="#testimonials">Testimonials</a></li>
- <li><a href="#contact">Contact</a></li>
- </ul>
- </nav>
- </div>
- </header>
- <!-- Hero Section -->
- <section class="hero" id="home">
- <div class="container hero-content">
- <h1>Expert PC Repair Services</h1>
- <p>Fast, reliable and affordable solutions for all your computer needs. From hardware repair to software optimization, we've got you covered.</p>
- <a href="#services" class="btn">Our Services</a>
- <a href="#contact" class="btn btn-outline">Get a Quote</a>
- </div>
- </section>
- <!-- Services Section -->
- <section class="services" id="services">
- <div class="container">
- <div class="section-title">
- <h2>Our Services</h2>
- </div>
- <div class="services-grid">
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-laptop"></i>
- </div>
- <h3>Computer Repair</h3>
- <p>Hardware and software troubleshooting, virus removal, and system optimization for all types of computers.</p>
- <button class="btn" onclick="showServiceDetails('Computer Repair')">Learn More</button>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-mobile-alt"></i>
- </div>
- <h3>Device Repair</h3>
- <p>Smartphone, tablet, and laptop repair services with genuine parts and warranty on all repairs.</p>
- <button class="btn" onclick="showServiceDetails('Device Repair')">Learn More</button>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-network-wired"></i>
- </div>
- <h3>Network Setup</h3>
- <p>Professional network installation, configuration, and troubleshooting for homes and businesses.</p>
- <button class="btn" onclick="showServiceDetails('Network Setup')">Learn More</button>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-shield-alt"></i>
- </div>
- <h3>Security Services</h3>
- <p>Comprehensive security solutions including virus removal, firewall setup, and data protection.</p>
- <button class="btn" onclick="showServiceDetails('Security Services')">Learn More</button>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-database"></i>
- </div>
- <h3>Data Recovery</h3>
- <p>Recover lost or deleted files from hard drives, SSDs, USB drives, and memory cards.</p>
- <button class="btn" onclick="showServiceDetails('Data Recovery')">Learn More</button>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-cloud"></i>
- </div>
- <h3>Cloud Services</h3>
- <p>Setup and management of cloud storage solutions for personal and business use.</p>
- <button class="btn" onclick="showServiceDetails('Cloud Services')">Learn More</button>
- </div>
- </div>
- </div>
- </section>
- <!-- About Section -->
- <section class="about" id="about">
- <div class="container">
- <div class="section-title">
- <h2>About Us</h2>
- </div>
- <div class="about-content">
- <div class="about-text">
- <h2>Who We Are</h2>
- <p>Steve's PC Repair has been serving the community since 2010, providing high-quality computer repair and technology services. With over 15 years of experience in the industry, our founder Steve Johnson has built a reputation for excellence and reliability.</p>
- <p>We believe in providing honest, transparent service with no hidden fees. Our technicians are certified professionals who stay up-to-date with the latest technology trends and repair techniques.</p>
- <p>Whether you're a home user, small business, or large corporation, we have the expertise and resources to meet your technology needs. Our goal is to provide solutions that save you time, money, and frustration.</p>
- <button class="btn" onclick="showTeamModal()">Meet Our Team</button>
- </div>
- <div class="about-image">
- <img src="https://picsum.photos/seed/stevespcrepair/600/400.jpg" alt="Steve's PC Repair Shop">
- </div>
- </div>
- </div>
- </section>
- <!-- Testimonials Section -->
- <section class="testimonials" id="testimonials">
- <div class="container">
- <div class="section-title">
- <h2>What Our Clients Say</h2>
- </div>
- <div class="testimonial-slider">
- <div class="testimonial" id="testimonial1">
- <div class="testimonial-content">
- <p>"My computer was completely unresponsive and I had important work files I couldn't afford to lose. Steve's PC Repair not only fixed my computer but also recovered all my data. They were professional, efficient, and very reasonably priced. I highly recommend their services!"</p>
- </div>
- <div class="testimonial-author">
- <div class="author-avatar">
- <img src="https://picsum.photos/seed/client1/60/60.jpg" alt="Client 1">
- </div>
- <div class="author-info">
- <h4>Sarah Thompson</h4>
- <p>Marketing Director</p>
- </div>
- </div>
- </div>
- <div class="testimonial" id="testimonial2" style="display: none;">
- <div class="testimonial-content">
- <p>"I've been taking my devices to Steve for years. He's honest, knowledgeable, and always takes the time to explain what's wrong and what needs to be done. I trust him with all my technology needs, from my work laptop to my personal phone."</p>
- </div>
- <div class="testimonial-author">
- <div class="author-avatar">
- <img src="https://picsum.photos/seed/client2/60/60.jpg" alt="Client 2">
- </div>
- <div class="author-info">
- <h4>Michael Rodriguez</h4>
- <p>Small Business Owner</p>
- </div>
- </div>
- </div>
- <div class="testimonial" id="testimonial3" style="display: none;">
- <div class="testimonial-content">
- <p>"Our company's network was down and we were losing thousands of dollars in productivity. Steve's team had us back up and running within hours. Their expertise in network troubleshooting saved us from a major disaster. We now have them on retainer for all our IT needs."</p>
- </div>
- <div class="testimonial-author">
- <div class="author-avatar">
- <img src="https://picsum.photos/seed/client3/60/60.jpg" alt="Client 3">
- </div>
- <div class="author-info">
- <h4>David Chen</h4>
- <p>IT Manager</p>
- </div>
- </div>
- </div>
- <div class="slider-controls">
- <button class="slider-btn prev-btn">
- <i class="fas fa-chevron-left"></i>
- </button>
- <button class="slider-btn next-btn">
- <i class="fas fa-chevron-right"></i>
- </button>
- </div>
- <div class="testimonial-indicators">
- <div class="indicator active" data-index="0"></div>
- <div class="indicator" data-index="1"></div>
- <div class="indicator" data-index="2"></div>
- </div>
- </div>
- </div>
- </section>
- <!-- Contact Section -->
- <section class="contact" id="contact">
- <div class="container">
- <div class="section-title">
- <h2>Contact Us</h2>
- </div>
- <div class="contact-container">
- <div class="contact-info">
- <h3>Get in Touch</h3>
- <div class="contact-item">
- <div class="contact-icon">
- <i class="fas fa-map-marker-alt"></i>
- </div>
- <div class="contact-details">
- <h4>Address</h4>
- <p>123 Tech Street, Digital City, CA 94103</p>
- </div>
- </div>
- <div class="contact-item">
- <div class="contact-icon">
- <i class="fas fa-phone-alt"></i>
- </div>
- <div class="contact-details">
- <h4>Phone</h4>
- <a href="tel:+15551234567">(555) 123-4567</a>
- </div>
- </div>
- <div class="contact-item">
- <div class="contact-icon">
- <i class="fas fa-envelope"></i>
- </div>
- <div class="contact-details">
- <h4>Email</h4>
- <a href="mailto:[email protected]">[email protected]</a>
- </div>
- </div>
- <div class="business-hours">
- <h4>Business Hours</h4>
- <ul class="hours-list">
- <li><span>Monday - Friday</span> <span>9:00 AM - 6:00 PM</span></li>
- <li><span>Saturday</span> <span>10:00 AM - 4:00 PM</span></li>
- <li><span>Sunday</span> <span>Closed</span></li>
- </ul>
- </div>
- </div>
- <div class="contact-form">
- <h3>Send Us a Message</h3>
- <div class="success-message" id="formSuccess">
- Thank you for your message! We'll get back to you as soon as possible.
- </div>
- <form id="contactForm">
- <div class="form-group">
- <label for="name">Your Name</label>
- <input type="text" id="name" class="form-control" required>
- </div>
- <div class="form-group">
- <label for="email">Email Address</label>
- <input type="email" id="email" class="form-control" required>
- </div>
- <div class="form-group">
- <label for="phone">Phone Number</label>
- <input type="tel" id="phone" class="form-control">
- </div>
- <div class="form-group">
- <label for="service">Service Needed</label>
- <select id="service" class="form-control">
- <option value="">Select a service</option>
- <option value="Computer Repair">Computer Repair</option>
- <option value="Device Repair">Device Repair</option>
- <option value="Network Setup">Network Setup</option>
- <option value="Security Services">Security Services</option>
- <option value="Data Recovery">Data Recovery</option>
- <option value="Cloud Services">Cloud Services</option>
- <option value="Other">Other</option>
- </select>
- </div>
- <div class="form-group">
- <label for="message">Your Message</label>
- <textarea id="message" class="form-control" required></textarea>
- </div>
- <button type="submit" class="btn">Send Message</button>
- </form>
- </div>
- </div>
- </div>
- </section>
- <!-- Footer -->
- <footer>
- <div class="container">
- <div class="footer-content">
- <div class="footer-column">
- <h3>About Steve's PC Repair</h3>
- <p>Providing expert computer repair and technology services since 2010. We're committed to delivering high-quality solutions at affordable prices.</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-linkedin-in"></i></a>
- </div>
- </div>
- <div class="footer-column">
- <h3>Quick Links</h3>
- <ul class="footer-links">
- <li><a href="#home"><i class="fas fa-chevron-right"></i> Home</a></li>
- <li><a href="#services"><i class="fas fa-chevron-right"></i> Services</a></li>
- <li><a href="#about"><i class="fas fa-chevron-right"></i> About Us</a></li>
- <li><a href="#testimonials"><i class="fas fa-chevron-right"></i> Testimonials</a></li>
- <li><a href="#contact"><i class="fas fa-chevron-right"></i> Contact</a></li>
- </ul>
- </div>
- <div class="footer-column">
- <h3>Services</h3>
- <ul class="footer-links">
- <li><a href="#"><i class="fas fa-chevron-right"></i> Computer Repair</a></li>
- <li><a href="#"><i class="fas fa-chevron-right"></i> Device Repair</a></li>
- <li><a href="#"><i class="fas fa-chevron-right"></i> Network Setup</a></li>
- <li><a href="#"><i class="fas fa-chevron-right"></i> Security Services</a></li>
- <li><a href="#"><i class="fas fa-chevron-right"></i> Data Recovery</a></li>
- <li><a href="#"><i class="fas fa-chevron-right"></i> Cloud Services</a></li>
- </ul>
- </div>
- <div class="footer-column">
- <h3>Contact Info</h3>
- <ul class="footer-links">
- <li><a href="tel:+15551234567"><i class="fas fa-phone-alt"></i> (555) 123-4567</a></li>
- <li><a href="mailto:[email protected]"><i class="fas fa-envelope"></i> [email protected]</a></li>
- <li><a href="#"><i class="fas fa-map-marker-alt"></i> 123 Tech Street, Digital City</a></li>
- </ul>
- </div>
- </div>
- <div class="footer-bottom">
- <p>© 2023 Steve's PC Repair. All Rights Reserved.</p>
- </div>
- </div>
- </footer>
- <!-- Service Details Modal -->
- <div class="modal" id="serviceModal">
- <div class="modal-content">
- <button class="close-modal">×</button>
- <h3 id="modalTitle"></h3>
- <div id="modalContent"></div>
- </div>
- </div>
- <!-- Team Modal -->
- <div class="modal" id="teamModal">
- <div class="modal-content">
- <button class="close-modal">×</button>
- <h3>Meet Our Team</h3>
- <div class="success-message" style="display: block;">
- We're a dedicated team of technology professionals committed to providing the best service to our clients.
- </div>
- <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;">
- <div style="text-align: center;">
- <div style="width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px;">
- <img src="https://picsum.photos/seed/steve/120/120.jpg" alt="Steve Johnson" style="width: 100%; height: 100%; object-fit: cover;">
- </div>
- <h4 style="margin-bottom: 5px;">Steve Johnson</h4>
- <p style="color: #666; margin-bottom: 15px;">Founder & Lead Technician</p>
- <p style="font-size: 0.9rem; color: #555;">15 years of experience in computer repair and IT support.</p>
- </div>
- <div style="text-align: center;">
- <div style="width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px;">
- <img src="https://picsum.photos/seed/jessica/120/120.jpg" alt="Jessica Williams" style="width: 100%; height: 100%; object-fit: cover;">
- </div>
- <h4 style="margin-bottom: 5px;">Jessica Williams</h4>
- <p style="color: #666; margin-bottom: 15px;">Senior Technician</p>
- <p style="font-size: 0.9rem; color: #555;">Specializes in hardware repair and data recovery.</p>
- </div>
- <div style="text-align: center;">
- <div style="width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px;">
- <img src="https://picsum.photos/seed/david/120/120.jpg" alt="David Chen" style="width: 100%; height: 100%; object-fit: cover;">
- </div>
- <h4 style="margin-bottom: 5px;">David Chen</h4>
- <p style="color: #666; margin-bottom: 15px;">Network Specialist</p>
- <p style="font-size: 0.9rem; color: #555;">Expert in network setup, security, and maintenance.</p>
- </div>
- <div style="text-align: center;">
- <div style="width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px;">
- <img src="https://picsum.photos/seed/emily/120/120.jpg" alt="Emily Rodriguez" style="width: 100%; height: 100%; object-fit: cover;">
- </div>
- <h4 style="margin-bottom: 5px;">Emily Rodriguez</h4>
- <p style="color: #666; margin-bottom: 15px;">Customer Service</p>
- <p style="font-size: 0.9rem; color: #555;">Handles client communication and scheduling.</p>
- </div>
- </div>
- </div>
- </div>
- <script>
- // Service details content
- const serviceDetails = {
- 'Computer Repair': {
- content: `
- <p>Our comprehensive computer repair services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Hardware diagnosis and repair</li>
- <li>Software troubleshooting</li>
- <li>Operating system installation and updates</li>
- <li>Performance optimization</li>
- <li>Memory and storage upgrades</li>
- <li>Peripheral installation and configuration</li>
- </ul>
- <p>We work with all major brands including Dell, HP, Lenovo, Apple, and more. Whether you're experiencing slow performance, hardware failure, or software issues, our technicians have the expertise to diagnose and fix the problem efficiently.</p>
- <p style="margin-top: 20px; font-weight: bold;">Average turnaround time: 24-48 hours</p>
- `
- },
- 'Device Repair': {
- content: `
- <p>Our device repair services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Laptop screen and keyboard replacement</li>
- <li>Smartphone and tablet screen repairs</li>
- <li>Battery replacements</li>
- <li>Charger and port repairs</li>
- <li>Water damage recovery</li>
- <li>General device maintenance</li>
- </ul>
- <p>We use genuine parts for all repairs and offer a warranty on our work. Our technicians are trained to handle delicate electronic components with care and precision.</p>
- <p style="margin-top: 20px; font-weight: bold;">Average turnaround time: 24-72 hours</p>
- `
- },
- 'Network Setup': {
- content: `
- <p>Our network setup services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Home and business network installation</li>
- <li>Wireless network configuration</li>
- <li>Router and modem setup</li>
- <li>Network security implementation</li>
- <li>Network troubleshooting and optimization</li>
- <li>Device connectivity issues</li>
- </ul>
- <p>Whether you need a simple home network or a complex business infrastructure, our network specialists can design and implement a solution that meets your specific needs. We ensure secure, reliable, and high-performance networks.</p>
- <p style="margin-top: 20px; font-weight: bold;">Service includes 30 days of remote support</p>
- `
- },
- 'Security Services': {
- content: `
- <p>Our security services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Comprehensive virus and malware removal</li>
- <li>Antivirus and security software installation</li>
- <li>Firewall setup and configuration</li>
- <li>Security assessments and audits</li>
- <li>Data protection solutions</li>
- <li>Identity theft prevention</li>
- </ul>
- <p>We help protect your digital assets from threats with our proactive security services. Our technicians stay updated on the latest security threats and solutions to keep your systems safe.</p>
- <p style="margin-top: 20px; font-weight: bold;">Includes 6 months of security monitoring</p>
- `
- },
- 'Data Recovery': {
- content: `
- <p>Our data recovery services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Hard drive and SSD data recovery</li>
- <li>RAID array recovery</li>
- <li>USB drive and memory card recovery</li>
- <li>Deleted file restoration</li>
- <li>Corrupted data recovery</li>
- <li>Forensic data recovery</li>
- </ul>
- <p>We use state-of-the-art tools and techniques to recover lost data from damaged or malfunctioning storage devices. Our data recovery specialists work in a clean environment to maximize the chances of successful recovery.</p>
- <p style="margin-top: 20px; font-weight: bold;">Free evaluation with no recovery, no fee policy</p>
- `
- },
- 'Cloud Services': {
- content: `
- <p>Our cloud services include:</p>
- <ul style="margin-left: 20px; margin-bottom: 20px;">
- <li>Cloud storage setup and management</li>
- <li>Cloud migration services</li>
- <li>Cloud security implementation</li>
- <li>Cloud-based software configuration</li>
- <li>Remote backup solutions</li>
- <li>Cloud training and support</li>
- </ul>
- <p>We help individuals and businesses leverage the power of cloud technology for better data management, accessibility, and security. Our cloud specialists ensure seamless integration and optimal performance.</p>
- <p style="margin-top: 20px; font-weight: bold;">Includes 3 months of cloud management</p>
- `
- }
- };
- // Show service details in modal
- function showServiceDetails(service) {
- const modal = document.getElementById('serviceModal');
- const modalTitle = document.getElementById('modalTitle');
- const modalContent = document.getElementById('modalContent');
- modalTitle.textContent = service;
- modalContent.innerHTML = serviceDetails[service].content || 'Details about this service will be available soon.';
- modal.style.display = 'flex';
- }
- // Show team modal
- function showTeamModal() {
- const modal = document.getElementById('teamModal');
- modal.style.display = 'flex';
- }
- // Close modals
- document.querySelectorAll('.close-modal').forEach(button => {
- button.addEventListener('click', function() {
- this.closest('.modal').style.display = 'none';
- });
- });
- // Close modal when clicking outside
- window.addEventListener('click', function(event) {
- if (event.target.classList.contains('modal')) {
- event.target.style.display = 'none';
- }
- });
- // Testimonial slider
- let currentTestimonial = 0;
- const testimonials = [
- document.getElementById('testimonial1'),
- document.getElementById('testimonial2'),
- document.getElementById('testimonial3')
- ];
- const indicators = document.querySelectorAll('.indicator');
- const prevBtn = document.querySelector('.prev-btn');
- const nextBtn = document.querySelector('.next-btn');
- function showTestimonial(index) {
- testimonials.forEach(testimonial => testimonial.style.display = 'none');
- testimonials[index].style.display = 'block';
- indicators.forEach(indicator => indicator.classList.remove('active'));
- indicators[index].classList.add('active');
- currentTestimonial = index;
- }
- prevBtn.addEventListener('click', function() {
- let newIndex = currentTestimonial - 1;
- if (newIndex < 0) newIndex = testimonials.length - 1;
- showTestimonial(newIndex);
- });
- nextBtn.addEventListener('click', function() {
- let newIndex = currentTestimonial + 1;
- if (newIndex >= testimonials.length) newIndex = 0;
- showTestimonial(newIndex);
- });
- indicators.forEach((indicator, index) => {
- indicator.addEventListener('click', function() {
- showTestimonial(index);
- });
- });
- // Auto-rotate testimonials
- setInterval(function() {
- let newIndex = currentTestimonial + 1;
- if (newIndex >= testimonials.length) newIndex = 0;
- showTestimonial(newIndex);
- }, 8000);
- // Form submission
- document.getElementById('contactForm').addEventListener('submit', function(e) {
- e.preventDefault();
- // In a real application, you would send the form data to a server here
- // For this example, we'll just show the success message
- const formSuccess = document.getElementById('formSuccess');
- formSuccess.style.display = 'block';
- // Reset form
- this.reset();
- // Hide success message after 5 seconds
- setTimeout(function() {
- formSuccess.style.display = 'none';
- }, 5000);
- });
- // Smooth scrolling for navigation links
- document.querySelectorAll('a[href^="#"]').forEach(anchor => {
- anchor.addEventListener('click', function(e) {
- e.preventDefault();
- const targetId = this.getAttribute('href');
- if (targetId === '#') return;
- const targetElement = document.querySelector(targetId);
- if (targetElement) {
- window.scrollTo({
- top: targetElement.offsetTop - 70,
- behavior: 'smooth'
- });
- }
- });
- });
- // Mobile menu toggle
- const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
- const nav = document.querySelector('nav ul');
- mobileMenuBtn.addEventListener('click', function() {
- nav.style.display = nav.style.display === 'flex' ? 'none' : 'flex';
- this.innerHTML = nav.style.display === 'flex' ? '<i class="fas fa-times"></i>' : '<i class="fas fa-bars"></i>';
- });
- // Close mobile menu when clicking outside
- window.addEventListener('click', function(e) {
- if (window.innerWidth <= 768 &&
- nav.style.display === 'flex' &&
- !nav.contains(e.target) &&
- !mobileMenuBtn.contains(e.target) &&
- !document.querySelector('.header-content').contains(e.target)) {
- nav.style.display = 'none';
- mobileMenuBtn.innerHTML = '<i class="fas fa-bars"></i>';
- }
- });
- // Initialize the page
- document.addEventListener('DOMContentLoaded', function() {
- // Show the first testimonial
- showTestimonial(0);
- // Add animation to sections when they come into view
- const sections = document.querySelectorAll('section');
- 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 });
- sections.forEach(section => {
- section.style.opacity = '0';
- section.style.transform = 'translateY(30px)';
- section.style.transition = 'opacity 0.8s, transform 0.8s';
- observer.observe(section);
- });
- });
- </script>
- </body>
- </html>
- ```
- This website for Steve's PC Repair includes:
- 1. **Modern Design Elements**:
- - Clean, professional layout with a color scheme suitable for a tech repair business
- - Responsive design that works on all device sizes
- - Smooth animations and transitions for a polished user experience
- 2. **Key Sections**:
- - Hero section with call-to-action buttons
- - Services section with detailed service cards
- - About section with company information
- - Testimonials section with a functional slider
- - Contact section with contact information and a functional form
- - Comprehensive footer with multiple navigation options
- 3. **Interactive Features**:
- - Modal windows for service details and team information
- - Working testimonial slider with navigation controls
- - Form validation and submission feedback
- - Smooth scrolling navigation
- - Mobile-responsive menu
- 4. **Technical Features**:
- - Embedded CSS and JavaScript in a single HTML file
- - Responsive design using CSS Grid and Flexbox
- - Modern CSS features like variables, transitions, and animations
- - Intersection Observer API for scroll animations
- The website is completely self-contained and ready to use. You can customize the content, colors, and images to match Steve's PC Repair's specific brand identity.
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement