Как сделать сайт-портфолио с игровой механикой в Codex
Собираем три варианта эффектных и запоминающихся сайтов портфолио. Внутри готовые промпты и видео с результатом.

Представь, что клиент за вечер открыл десять портфолио. На следующий день он просит скинуть сайт того дизайнера, у которого можно было полетать на корабле. Мне захотелось собрать первый экран, который запоминается таким простым действием.

Слева мой пиксельный герой, в центре корабль среди астероидов, справа синяя машина у гаража.
Перед началом
Открой в Codex пустую папку и выбери один из трёх вариантов. На видео показаны десктопные прототипы в браузере. Я собрал промпты по финальным версиям и рабочим чатам. После сборки открой ссылку для просмотра или файл index.html.
Сделай из себя пиксельного героя
Для Mario Concept приложи своё фото, аватар или лист персонажа. Я взял свой лист. Чтобы узнать себя в маленьком спрайте, мне хватило светлого пробора и чёрного поло.

Слева лист, который я приложил в Codex. Справа герой, которого он нарисовал по этому листу.
Герой получает монету и открывает Mentoring ударом по кирпичу снизу.
Используй промт
Build a desktop portfolio landing screen called Design Adventure in the current folder. Make it an original pixel-art platformer. Draw the player character from the attached photo, avatar, or character sheet. Preserve the reference's hairstyle, silhouette, and distinctive clothing details. Create separate poses for idling, running, jumping, and crouching. The jump pose must show exactly two legs. Fill the browser window with blue sky, clouds, hills, and grass. Center the two-line title DESIGN ADVENTURE. Place three bricks below it, labeled Cases, Mentoring, and Contact. Put a coin counter and a sound toggle in a corner, and display the controls at the bottom. After a short loading screen, zoom out slightly, reveal the clouds, and have the character enter from the left. Use the left and right arrow keys or A/D to move, W, the up arrow, or Space to jump, and S or the down arrow to crouch. Landing on a blue mushroom from above earns one coin. Touching it from the side makes the character flash briefly. When the character hits a brick from below, the brick bounces and its section opens. Clicking a brick makes the character walk over to it and jump automatically. Add a way to return to the level. Use HTML, CSS, JavaScript, and Canvas 2D. Open index.html in a browser and test the coin counter, jumping, all three navigation targets, and the return to the level. Explain how to launch the finished screen.
В первом прыжке у меня выросла третья нога. Я попросил поправить позу. В записи финальной версии у героя снова две ноги. У себя попробуй приземлиться на гриб сверху, а потом ударить по центральному кирпичу снизу.

Слева первый прыжок с лишней ногой. Справа исправленная поза из финального экрана.
Преврати кнопку в мишень
Здесь вместо кирпичей у меня три неоновые мишени. После загрузки заголовок выходит снизу, а корабль делает круг и встаёт под ними. В записи планета на фоне взята из изображения. В промпте фон рисуется кодом, поэтому вложения не нужны.

Кнопки Cases, Mentoring и Contact стали мишенями. Корабль ждёт команды внизу.
Корабль уклоняется от астероидов и открывает Mentoring третьим попаданием.
Используй промт
Build a space-themed landing screen for the Design Adventure portfolio in the current empty folder. Draw the stars, the dark horizon of a planet, neon targets, and a glowing spaceship in code. Center a large two-line title. Below it, place three targets labeled Cases, Mentoring, and Contact, each with its own icon and health bars. Add a shield with three charges and display the controls. Show a short loading screen. Then zoom the background out slightly, bring the title up from below with a perspective effect, and have the spaceship enter from below the frame. Let it fly a loop and settle at the bottom center. Pressing a movement key or Space immediately hands control to the player. Use the left and right arrow keys or A/D to move the ship horizontally. Press Space to fire upward. Asteroids fly toward the ship, and a collision costs one shield charge. The first hit leaves a crack in the target. The second makes the crack more pronounced. On the third hit, the target shatters, then its section opens. Clicking a target opens the section directly. Add controls to return to the flight scene and reset the flight. Use HTML, CSS, JavaScript, and Canvas 2D. Create all visuals locally, without attachments or external dependencies. In a browser, test the intro, dodging, three hits on the middle target, and returning to the flight scene. Provide the path to index.html.
В браузере попробуй уйти от астероида стрелками и трижды попасть пробелом в одну мишень. После первого попадания должна появиться трещина, после второго она станет заметнее. После третьего дождись осколков и перехода.
Открой раздел через гараж
В первой версии я смотрел на машинку сверху, будто она стояла на столе. Попросил Codex опустить камеру за автомобиль и растянуть дорогу до краёв экрана. Так поворот видно уже со старта. Для этого варианта тоже достаточно промпта.

Слева первая версия с высокой камерой. Справа вид со старта, ближе к машине и дороге.
Используй промт
Build Design Circuit from scratch in the current empty folder. Make it the first screen of a portfolio, presented as a 3D racing scene. Fill the browser window with a beige desert and a road that starts at the bottom edge and splits into three branches. From left to right, place garages labeled Cases, Mentoring, and Contact. Keep all three signs visible from the starting position. Build a blue race car from simple shapes. Add two light-colored stripes, dark wheels, and a spoiler. Position the camera low behind the car so the player can see the track and its turns from the starting line. Place a large, translucent brown Design Circuit title behind the mountain silhouettes. After a short loading screen, have the car roll up to a checkered starting line while the camera moves slightly closer. Use the up arrow to accelerate, the down arrow to brake and reverse, and the left and right arrow keys to steer. Show the controls, speed, and a reset button. Driving into a garage opens the corresponding section. Let the player open a section directly by clicking its garage sign, and add a button to return to the track. Build the scene with HTML, CSS, JavaScript, and WebGL. Create the models and environment in code, without attachments or external dependencies. In a browser, test the approach to the starting line, entry into all three garages, and the return to the track. Provide the path to index.html.
Дождись выезда к старту, разгонись стрелкой ↑ и заедь в правый гараж. В демо он открывает Contact. Затем вернись на трассу и проверь ещё два маршрута.
Машина поворачивает направо, заезжает в гараж и открывает Contact.
Начни с одного действия
Начни с одного раздела. Опиши Codex, что посетитель видит, что он делает и как сайт отвечает. Например, он видит три гаража, заезжает в правый и открывает контакты. Замени демо-текст своими кейсами и контактами. Проверь, что раздел открывается и обычным кликом.
Если хочешь довести первый экран до сайта со своими кейсами, на курсе «Сайт-портфолио с AI» соберёшь его в Codex и опубликуешь по ссылке.
.jpg&w=3840&q=75)
%2520-%2520hover.jpg&w=3840&q=75)



