Introduction
This week you built a portfolio from a WordPress theme and let a chatbot critique your new site. Now you’ll see if AI can code the page you made by hand with WordPress. For extra credit, you can adjust the code it generates to your liking
(You won’t change anything in your own WordPress portfolio.)
đź’¬ In your critique chat
- Open the AI chat where you ran the advanced prompt in class. This chat should already have your screenshot and critique, so there’s nothing more to upload. (Missed class? See the FAQ.)
🎗 As a reminder, you summarized the chatbot’s feedback on that screenshot in the Slack #ai-web-design channel.
⚠️ ChatGPT or Claude should give you a web page preview by default; with Google Gemini, you may need to select + > Canvas first. - In that same chat, type a prompt like this one, choosing two or three problems from the critique:
📍Acting as a web developer, build a single HTML file that recreates the web page shown in this screenshot; display a working preview in this chat that I can see and interact with. Keep my content and overall look, but fix these problems from your critique: [YOUR CHOICES]. Use the simplest possible code, adding comments where helpful. Use plain HTML and CSS inside a <style> element. Use CSS color names like “turquoise” instead of hex, HSL, or other color values. Put each CSS property-value pair on its own line.
- Tell the chatbot any improvements you want (eg, “Make the colors more vibrant” or “Prevent the menu from overlapping the photo”). Keep asking for fixes until you’re satisfied with the results.
- Screenshot this latest version of the web page made by AI.
📝 On this class WordPress site
- Add a new post in the NMD 100 dashboard (not your portfolio dashboard) with a title like “Task 7: Mary Gonzalez,” making sure to add the Task 7 category.
- Add the original screenshot you already uploaded to the chatbot—this is probably a capture of your hand-made WordPress home page.
- Also add a screenshot of the version you made with AI (above).
- Add the following text in paragraphs or bullets:
- The improvements you asked the AI to make, and whether it made each one.
- Which of the two screenshots you prefer and why.
- Click the Update and/or Publish buttons to post your images and text.
🛑 Stop here if you don’t want extra credit.
✨Add these steps for Extra Credit✨
(Up to 60 additional points—see rubric in FAQ.)
đź–ŠÂ In CodePen
- In the original chat, find the latest web page that AI made, and type this prompt:
📌 Display the HTML for that page in this chat.
- Copy the code by itself to your clipboard.
- Open codepen.io/pen; if necessary, log in with the account from Week 7’s exercise.
⚠️ If you see boilerplate code already in the CodePen editor panes, close the tab and open the correct link above 👆. - In the empty HTML pane, paste the chatbot’s code.
- Still in the HTML pane, look for the starting
<style>tag. Copy every line between that and the closing</style>tag. Paste that into the CSS pane.
⚠️ If you leave the<style>and</style>tags in the CSS pane, the styles will not apply! - In the HTML pane, look for the opening
<body>tag. Delete every line above it, including the starting body tag itself. - In the HTML pane, look for the closing
</body>tag. Delete every line below it, including the closing body tag itself. - Change one color by hand, working only in the CSS box:
- Find a line that sets a color such as “white”, “lightblue”, or “lavender”.
- Copy that line and paste the copy directly below it.
- In the copy, swap in a new color from this list of CSS color names.
⚠️ Pick one of these official names rather than guessing at a color name that might not work. - Turn the original line into a comment by wrapping it in
/*and*/, so only the new color applies.
For example:
98 /* background-color: white; */ 99 background-color: lightyellow;đź’ˇ You may have to change a few different colors before you see a visible result in CodePen’s preview pane.
- Take one final screenshot of the entire CodePen window including the preview (not just the code panes).
- Save the Pen and copy its URL.
📝 Back in this class WordPress site
- Find your Task 7 post and add heading at bottom called “Extra credit.”
- Paste the URL for the Pen you just saved.
- Paste the old and new line of CSS you changed in CodePen, eg:
/* background-color: white; */ background-color: lightyellow; - Add the last (third) screenshot so we can see how the actual color changed.
- Update your Task 7 post for extra credit! (See rubric below for points awarded.)
FAQ
What’s the grading rubric?
| Required of everyone: | |
| You pasted the original screenshot. | 0–10 |
| You pasted a screenshot of the last version that you made with AI. | 0–10 |
| Your explained your attempt to improve the design with AI and whether that was successful. | 0–10 |
| You explained whether you prefer the original or AI-assisted version, and why. | 0–10 |
| You were thoughtful or imaginative. | 0–10+ |
| Extra credit only: | |
| You included the link to your CodePen. | 0–10 |
| You changed one color by hand in CodePen, commenting out the original, and quoted both lines. | 0–10 |
| You include a third screenshot that clearly shows a change in color. | 0–10 |
Your grade is the total of all points times 2, for a possible maximum of 100%.
Tasks get downgraded 10 points for each week late.
Which posts do I make here versus in my portfolio?
Only one post, here on the class site. You don’t change anything in your portfolio for this Task; your AI version stays in your AI chat (and in CodePen if you do the extra credit).
I missed the critique, or I can’t find my chat. What now?
Start a new ChatGPT or Claude chat, upload a screenshot of your portfolio home page (how to screenshot and upload), and ask: “Critique the design of this portfolio home page and list three problems a beginner could fix.” Then continue from step 2.
The chatbot gave me code but no preview. What do I do?
Ask it to “show a working preview in this chat.” In Gemini, select Canvas from the tools menu first. In ChatGPT, look for a Preview button on the code block.
Can I get more help with prompting for code?
Sure: check out How to prompt AI: code 1. You can also post questions to #troubleshooting on Slack.
Can I see a model answer?
Not yet: this is a new Task. Follow the rubric and you’ll be fine.