Day 1 Project: One-Page Web Developer Portfolio
Goal
Create a single-page portfolio website to showcase your web development skills, projects, and contact information — with no database required.
You can watch how I build a one-page web developer portfolio using Yii2 — clean, responsive, and easy to deploy by clicking the thumbnail below.
Page Sections (All on One Page)
1. Hero Section
-
Profile photo or avatar
-
Introduction text: “Hi, I’m Dan — a Web Developer who builds modern web apps using Yii2, Laravel, and Google Cloud.”
-
Call-to-action buttons:
-
“View My Work” → scrolls to the Projects section
-
“Contact Me” → scrolls to the Contact section
2. Skills Section
Display your main skills in a simple grid or list:
PHP, Yii2, Laravel, Tailwind, Cloud Run, GitHub, AWS, Cloudflare
3. Projects Section
Showcase 3–4 featured projects with the following details:
- Project title
- Short description
- Tech stack
- GitHub or demo link
Data can be stored in a PHP array or JSON file — no database needed.
4. About Section
Short personal introduction:
“I’m passionate about creating web apps that solve real business problems and automate workflows.”
Optional personal touch:
“When I’m not coding, I play guitar and explore music production.”
5. Contact Section
- Simple contact form with fields for name, email, and message
- Uses Yii2’s built-in
ContactFormmodel - Sends messages through Gmail SMTP
- Displays a success message after submission
Mailer Configuration (config/web.php)
'components' => [
'mailer' => [
'class' => \yii\symfonymailer\Mailer::class,
'viewPath' => '@app/mail',
'useFileTransport' => false, // set true to save mails in runtime/mail during testing
'transport' => [
'scheme' => 'smtp',
'host' => 'smtp.gmail.com',
'username' => '[email protected]', // replace with your Gmail address
'password' => 'your_app_password_here', // replace with your Gmail App Password
'port' => 587,
'encryption' => 'tls',
],
],
],Important:
- Use a Gmail App Password, not your normal Gmail password.
- Enable 2-Step Verification, then create an App Password at: https://myaccount.google.com/apppasswords
6. Footer
Include links such as:
GitHub | LinkedIn | YouTube
and add a copyright line:
© Dan Ong’udi
Installation Steps
1. Create the Project
Run this command to install Yii2 Basic Template:
composer create-project --prefer-dist yiisoft/yii2-app-basic webdev-portfolioThen navigate into the project folder:
cd webdev-portfolio2. Generate the Frontend Layout
Use DeepSite AI to generate your one-page HTML layout:
https://huggingface.co/spaces/ongudidan/deepsite-v2
- Paste your section descriptions (Hero, Skills, Projects, etc.)
- Generate the HTML and CSS
- Copy the generated code into
views/site/index.phpin your Yii2 project - Include Tailwind CSS if desired
Deployment
Tech Summary
- Frontend: HTML/CSS from DeepSite AI
- Backend: Yii2 (PHP 8.4)
- Mailer: Gmail SMTP
- Container: Docker
- Hosting: Google Cloud Run (via GitHub integration)
Dockerfile
FROM yiisoftware/yii2-php:8.4-apache
WORKDIR /app
COPY . /app
RUN chown -R www-data:www-data /app \
&& chmod -R 755 /app
EXPOSE 80Deploying to Cloud Run via GitHub
- Push your project to a GitHub repository.
- In Google Cloud Console, open Cloud Run.
- Click Create Service and choose Deploy from Source.
- Connect your GitHub account and select the repository.
- Cloud Run will automatically build and deploy the Docker container.
- Once complete, you’ll receive a public URL (for example,
https://portfolio-xyz.run.app).
Every time you push changes to GitHub, Cloud Run will automatically rebuild and redeploy your app.
End of Day 1 Deliverables
By the end of this project, you will have:
- A clean single-page portfolio showcasing your skills and projects
- A working contact form powered by Gmail SMTP
- A Dockerized Yii2 app deployed automatically through GitHub → Cloud Run
- A lightweight, production-ready web portfolio
