This guide will help you:
- Download the project from GitHub
- Edit your project files
- Host your site on Netlify
- Add a custom domain
- Integrate EmailJS for email functionality
- Go to the GitHub repository: https://github.com/JTXOfficial/EliteDetail
- Click the green Code button.
- Choose Download ZIP to download the project files to your computer.
- Unzip the downloaded file to a folder of your choice.
Alternatively, if you have Git installed, you can clone the repository:
git clone https://github.com/JTXOfficial/EliteDetail.git
- Open your project folder (e.g.,
EliteDetail
). - Use a code editor like VS Code, Sublime Text, or Notepad++.
- Edit files such as
index.html
,styles.css
, andscript.js
as needed. - Save your changes after editing.
- Go to Netlify and sign up (free plan is enough).
- Make sure your project folder contains at least an
index.html
file. - Ensure all assets (CSS, JS, images) are in the folder.
Option A: Drag & Drop
- Zip your project folder or select the folder directly.
- Go to the Netlify dashboard, click 'Add new site' > 'Deploy manually'.
- Drag and drop your folder (or zip file) into the upload area.
- Netlify will build and give you a live URL.
- Purchase a domain from a registrar (e.g., Namecheap, Google Domains, GoDaddy).
- In your Netlify dashboard, select your site.
- Go to “Domain management” > “Add custom domain”.
- Enter your purchased domain and follow the prompts.
- Netlify will provide DNS records (usually CNAME or A records).
- Log in to your domain registrar.
- Find the DNS settings for your domain and update them with the records Netlify gives you.
- DNS changes can take a few minutes to several hours to propagate.
- Netlify provides free SSL certificates via Let’s Encrypt. Enable this in the Netlify domain settings for secure HTTPS.
EmailJS lets you send emails directly from your website without a backend.
- Go to EmailJS and sign up for free.
- Add an email service (e.g., Gmail, Outlook) in the EmailJS dashboard.
- Create an email template for your messages.
- In EmailJS dashboard, note your Service ID, Template ID, and User/Public Key.
-
Find the
index.html
file in your project folder and changeYOUR_PUBLIC_KEY
to the value found in EmailJS.<script src="https://cdn.jsdelivr.net/npm/emailjs-com@3/dist/email.min.js"></script> <script> (function(){ emailjs.init('YOUR_PUBLIC_KEY'); })(); </script>
-
Find the
script.js
file in your project folder and replaceYOUR_SERVICE_ID
andYOUR_TEMPLATE_ID
with the values found in EmailJS.document.getElementById('contact-form').addEventListener('submit', function(e) { e.preventDefault(); emailjs.sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', this) .then(function() { alert('Email sent!'); }, function(error) { alert('Failed to send email: ' + error); }); });
- Open your site in the browser.
- Test the contact form: submit a message and check if you receive the email.
- If using Netlify, use your Netlify live URL to test.
- Netlify Docs: https://docs.netlify.com/
- EmailJS Docs: https://www.emailjs.com/docs/
You're all set! You can now edit your site, host it on Netlify, use a custom domain, and send emails from your contact form.