Lesson 16: The First Complete Front-End Prototype: Have Your Brand's Website Built by AI!
Lesson No: 16
The First Complete Front-End Prototype: Have Your Brand's Website Built by AI!
By Tanzeel-ur-Rahman (CodeHubb & MindCrafts_AI) Farooka (Sargodha)
Assalamu Alaikum wa Rahmatullahi wa Barakatuh!
In the previous lessons, we learned important topics such as getting effective work from AI, writing prompts, analysing documents, preparing a website outline, writing content and verifying the information we get from AI.
Now it is time to put all these skills to use in a practical project!
Just imagine you want to build a website for a client. You have the business information, you have a design idea and you have the content. But you do not know how to code yet.
Will you stop at this point?
No! With AI's help, you can create a first version of your website, open it in a browser and have changes made to it according to your instructions.
In today's lesson, this is exactly what we will do in practice.
🔹 What Is a Front-End Prototype?
The front end is the part of a website that the user sees on the screen, for example:
- The header and navigation menu - The main heading and the introduction section - Cards for products or services - Images, colours and buttons - Contact information and the footer
A Prototype is an early version of a website. With it, you can see and test the design, the layout and the basic interactions.
It can also differ from a complete business website. For example, a button may look right, but there may be no system behind it for receiving orders, taking payments or saving data.
So our aim today is to build a web page we can actually see, one that we can open in a browser and use to test its design and its basic way of working.
🔹 Step One: Choose Your Project
Today's exercise is not limited to honey or any one business. You can create an early version of a website for any brand, business, institution or personal project of your own.
For example:
1. E-commerce store: Clothes, shoes, cosmetics, honey or other products.
2. Web design agency: WordPress, Elementor, graphic design or digital marketing services.
3. Educational institution: An academy, an online course, a madrasa or a training centre.
4. Personal portfolio: Showing your skills, projects and services.
5. Local business: A restaurant, clinic, salon, real estate firm or any other business.
6. Your own new idea: A digital product or business you want to try out a website concept for.
When choosing your project, think about what the website is for, who will use it, and what information or services need to be shown on it.
🔹 Step Two: Give the AI a Clear Prompt
A good website begins with clear instructions. If you only say "Make me a good website," the AI will need to find out a great deal to understand what you actually need.
By contrast, if you clearly tell it about the business, the target users, the sections you need and your design preferences, your chances of getting a better result go up.
A general prompt template is given below. Change it to suit your brand.
Practical prompt template
"Role: You are an expert front-end web designer and prototype developer.
Project: My brand's name is [write your brand name]. It works for [describe your business, institution or project].
Target users: My website is for [describe your intended users].
Goal: Prepare a prototype of a modern, attractive, mobile-friendly single-page website.
Sections:
1. Header and navigation menu. 2. A prominent hero section, an introductory text and a call-to-action button. 3. Cards for products or services. 4. An introduction to the brand or business. 5. Key features or benefits. 6. A contact section. 7. Footer.
Design: Use colours, fonts, suitable spacing and a clean layout that fit my brand. The website should look good on mobile, tablet and desktop.
Interactions: Wherever possible, make the navigation links and buttons basically functional. If any feature is only a sample, make that clear.
Content: Do not include unverified business claims, made-up certifications or false customer testimonials as if they were fact. Where information is not available, leave suitable space or clearly mark the sample content.
File: Provide the complete prototype. If possible, put the HTML, CSS and any necessary JavaScript in a single "index.html" file, so that I can open it directly in a browser.
If it is not suitable to give the complete solution in one file, provide a clear structure of the necessary files and tell me how to run them."
Remember: this is a basic template, not a fixed prompt. You can add more sections, features and design details to it as you need.
🔹 Step Three: Ways to Get a File from AI
Nowadays, different AI tools do not only write code for you. In some cases they can also provide a ready-made file. So you should know more than one way.
Method one: Copy the code and make the file
This is the basic method, and it is still very useful.
1. Ask the AI for the complete HTML code. 2. Copy the code from the code box. 3. Open Notepad or any text editor on your computer. 4. Paste the code. 5. Save the file with the name "index.html". If you are using Notepad, choose "All Files" as the file type. 6. Double-click the saved file to open it in a browser.
If the file is accidentally saved as "index.html.txt", the browser will not open it as the HTML file you want. So be sure to check the file's name and extension.
Method two: Download the file from the code box
Some AI tools also offer an option such as "Download" or "Save as file" alongside the code box.
If this feature is available:
1. Have the AI prepare the code you need. 2. Use the download option. 3. Save the file on your computer. 4. Check the file's extension. 5. Open it in a browser.
With this method, you do not need to copy the whole code by hand.
Method three: Have the AI create the file directly
You can also say to the AI:
"Prepare the "index.html" file for the complete web page for me and provide it in the chat as a downloadable file. Instead of just showing the code, if your tool has the ability to create files, make the complete file and give it to me."
If the tool concerned has the ability to create files, it can provide the file or a download link. This feature is not the same in every AI model or interface.
An important point
If the website has separate HTML, CSS, JavaScript or image files, downloading only "index.html" will not be enough. In that case, it is necessary to keep all the required files in the right folder structure.
That is why you should ask the AI clearly whether the project consists of a single file or several files, and what method will be needed to run it.
🔹 Step Four: Test Your Prototype
A file opening in the browser does not mean that everything is working correctly.
Now look carefully at your web page:
- Do the heading and the content look correct? - Does the design work well on a mobile screen? - Are the images showing? - Are the buttons and links working properly? - Is any text being cut off anywhere, or is the layout broken? - Is any made-up information presented as fact anywhere?
If there is a problem, point it out clearly and have the AI fix it.
For example:
"On a mobile screen, the product cards look too cramped against each other. Make the necessary change in the CSS so that they appear one below the other on a small screen, while keeping suitable columns on desktop."
Or:
"There is a button in the hero section, but when I click it, it does not take me to the section it should. Check the relevant HTML link and the necessary code, and fix it."
You do not need to become a complete programmer here yet. For now, the aim is to learn to identify a problem, describe it clearly and get a suitable fix from the AI.
We will learn the detailed basics of HTML, CSS and JavaScript in the second phase.
🔹 Today's Task
Today you are going to prepare a website prototype for a brand or business of your choice.
1. Choose your brand or project. 2. Change the prompt template given above to suit your needs. 3. Get the complete code of the web page, or a downloadable file, from the AI. 4. Open it in a browser and test it. 5. Have at least two changes made, for example to the colours, the heading, the arrangement of the cards or the mobile layout. 6. Take a screenshot of the web page you have made.
If you do not get the result you want on the first attempt, do not be discouraged. Try again with clear instructions.
🔹 Today's Takeaway
Today you learned that, with AI's help, an early web prototype can be created for any brand of yours. You also saw how to make a file by copying code, how to use the available download options, and how to have AI create a file directly.
Write this in your notebook:
"With clear requirements, effective prompts and step-by-step testing, AI can be used to build and improve a web prototype."
Remember, this is an early prototype, not a complete business website. For real-world use, you also have to meet the needs for functionality, security, testing and other technical requirements.
A question for you!
For which brand or project did you prepare your first prototype? And which two changes did you have made in it?
Do tell us about your experience in the comments!
Join the WhatsApp channel for all previous lessons, and check the comments for Lesson 15.
By Tanzeel-ur-Rahman (CodeHubb & MindCrafts_AI) Farooka (Sargodha)
#Lesson16 #WebPrototype #FrontEndDevelopment #HTML #CSS #AIWebDevelopment #PromptEngineering #MindCraftsAI #CodeHubb