Day 1 Project: One-Page Web Developer Portfolio

Oct 28, 2026
By Admin
4 min read
70 views
Day 1 Project: One-Page Web Developer Portfolio

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.

Build a One-Page Web Developer Portfolio with Yii2


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 ContactForm model
  • 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:


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-portfolio

Then navigate into the project folder:

cd webdev-portfolio

2. 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.php in 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 80

Deploying to Cloud Run via GitHub

  1. Push your project to a GitHub repository.
  2. In Google Cloud Console, open Cloud Run.
  3. Click Create Service and choose Deploy from Source.
  4. Connect your GitHub account and select the repository.
  5. Cloud Run will automatically build and deploy the Docker container.
  6. 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

Share this article:
Back to Blog

More Engineering Articles

View All

Ready to Engineer Scalable Systems for Your Enterprise?

Our engineering team builds custom ERPs, ISP billing platforms, fintech automation, and cloud architectures tailored to your business.

Get in Touch