A clean, minimal, bilingual (RU/EN) portfolio template for designers. Based on diyor.design.
Live Demo → · Use this template →
- Zero dependencies — vanilla HTML, CSS, JavaScript
- Bilingual — Russian and English with language switcher
- Responsive — mobile-first, works on all screen sizes
- Case study template — 20 components: sections, stats, tabs, carousels, mac mockups, font showcases, image grids
- Scroll reveal — subtle entrance animations
- Lightbox — click-to-zoom on case study images
- Terminal easter egg — press
~for a secret terminal - Design system overlay — press
Shift+Gto see the 12-column grid - GoatCounter analytics — privacy-friendly, cookie-free
- SEO ready — meta tags, Open Graph, structured data, sitemap
- Print stylesheet — clean printable version of the about page
- Dark mode — toggle button + automatic system preference, persisted in localStorage
- Accessible — ARIA attributes, keyboard focus styles, reduced motion support
- GitHub Pages ready — just push to main
Click Use this template on GitHub, or:
git clone https://github.com/YOUR_USERNAME/portfolio-template.git my-portfolio
cd my-portfoliochmod +x setup.sh
./setup.shThe script will ask for your name, domain, email, socials, and location. It then:
- Replaces all placeholder values across every file
- Generates a favicon with your initial
- Updates CNAME, sitemap, config.json
- Replace case studies in
projects/anden/projects/ - Replace images in
assets/img/ - Update bio in
about.htmlanden/about.html
git add .
git commit -m "my portfolio"
git push origin mainGo to Settings → Pages → set source to main.
Or use GitHub Pages (free): push to main branch, enable Pages in Settings.
.
├── index.html # Home page (RU)
├── about.html # About page (RU)
├── 404.html # 404 error page
├── projects/
│ └── example.html # Case study (RU)
├── en/
│ ├── index.html # Home page (EN)
│ ├── about.html # About page (EN)
│ └── projects/
│ └── example.html # Case study (EN)
├── assets/
│ └── img/ # Project thumbnails (WebP + PNG fallback)
├── .github/
│ └── ISSUE_TEMPLATE/ # Bug report & feature request templates
├── styles.css # Full CSS source
├── styles.min.css # Minified CSS
├── script.js # Full JS source
├── script.min.js # Minified JS
├── config.json # Template configuration
├── setup.sh # Interactive setup script
├── manifest.json # PWA manifest
├── sitemap.xml # Sitemap
├── robots.txt # Robots
├── CNAME # Custom domain
├── favicon.svg # Favicon
├── CONTRIBUTING.md # Contributor guide
└── README.md
Edit CSS variables in styles.css:
:root {
--bg: #ffffff; /* Background */
--text: #222222; /* Text color */
--text-dim: #999999; /* Secondary text */
--accent: #F8401C; /* Accent color (links, hover, buttons) */
--line: #000000; /* Borders and dividers */
--selection-bg: #F8401C; /* Text selection highlight */
}Also update the accent color in:
favicon.svg— the circle fill colorconfig.json— theaccent_colorfield
Dark mode works in two ways:
- Automatic — follows the user's system preference (
prefers-color-scheme: dark) - Manual toggle — click the ☽/☀ button in the navigation bar
The user's choice is saved in localStorage and persists across sessions.
To customize dark mode colors, edit the @media (prefers-color-scheme: dark) and html.dark blocks in styles.css.
To disable dark mode entirely, remove those CSS blocks and the initThemeToggle() function from script.js.
The template uses Inter + DM Mono from Google Fonts. To change:
- Pick fonts at fonts.google.com
- Replace the
<link href="https://fonts.googleapis.com/...">in all HTML files - Update
--font-sansand--font-monoinstyles.css
Or use local font files:
- Add
.woff2files toassets/fonts/ - Add
@font-facedeclarations tostyles.css - Remove the Google Fonts
<link>from HTML files
The home page has three sections:
- Selected projects — main work with thumbnails
- Pet projects — side projects, experiments
- Archive — older work
To remove a section, delete its <h2> and <div class="project-list"> block.
- Duplicate
projects/example.html(anden/projects/example.html) - Update content, images, and meta tags
- Add a project card to
index.html(anden/index.html) - Add the URL to
sitemap.xml
Case studies use a consistent structure:
<section class="case-section">
<span class="case-section-num">1</span>
<h2 class="case-section-title">SECTION TITLE</h2>
<p>Section content...</p>
</section>Available components:
| Component | Usage |
|---|---|
.case-section |
Numbered content section with title |
.case-stats |
Key metrics grid (4 columns) |
.case-img-full |
Full-width image (click to lightbox) |
.case-img-row |
Two images side by side |
.case-img-row--3 |
Three-column image grid |
.case-concept |
Figure with image + caption (use inside .case-img-row--3) |
.case-img-bordered |
Image with visible 1px border |
.case-img-scroll |
Scrollable container for tall images (500px max) |
.case-caption |
Caption text below image |
.case-quote |
Blockquote with citation |
.case-description |
Large intro text with indent |
.case-links |
External links (Figma, prototype, site) |
.case-video |
Autoplay video wrapper |
.case-separator |
Horizontal divider |
.case-nav |
Previous/next project links |
.case-tabs |
Tabbed content (e.g. Identity / Landing) |
.case-slideshow-wrap |
Image carousel with arrows and counter |
.case-font-showcase |
Typography specimen (name, weights, characters) |
.mac-mockup |
Browser window mockup with titlebar |
Example slideshow:
<div class="case-slideshow-wrap" data-slideshow>
<div class="case-slideshow">
<div class="case-slideshow-track">
<img src="slide-1.png" alt="Slide 1">
<img src="slide-2.png" alt="Slide 2">
</div>
<div class="case-slideshow-nav">
<span class="case-slideshow-counter" data-counter>1/2</span>
</div>
</div>
<button class="case-slideshow-arrow" data-prev>‹</button>
<button class="case-slideshow-arrow" data-next>›</button>
</div>Example tabs:
<div class="case-tabs" role="tablist">
<button class="case-tab active" data-tab="design" role="tab" aria-selected="true">Design</button>
<button class="case-tab" data-tab="dev" role="tab" aria-selected="false">Development</button>
</div>
<div class="case-tab-panel active" data-panel="design" role="tabpanel">
<!-- Design content -->
</div>
<div class="case-tab-panel" data-panel="dev" role="tabpanel">
<!-- Dev content -->
</div>Example mac mockup:
<div class="mac-mockup">
<div class="mac-mockup-titlebar">
<div class="mac-mockup-dots">
<span class="mac-mockup-dot mac-mockup-dot--close"></span>
<span class="mac-mockup-dot mac-mockup-dot--minimize"></span>
<span class="mac-mockup-dot mac-mockup-dot--maximize"></span>
</div>
<span class="mac-mockup-url">example.com</span>
</div>
<div class="mac-mockup-viewport">
<img src="screenshot.png" alt="Website">
</div>
</div>Key spacing variables in styles.css:
--content-max: 1156px; /* Max content width */
--content-pad: 48px; /* Side padding (24px on mobile) */
--radius-sm: 10px; /* Border radius */Replace YOURSITE in the GoatCounter script tag, or run setup.sh which handles this automatically.
Sign up at goatcounter.com (free, no cookies, GDPR-friendly).
To use a different analytics provider, replace the GoatCounter <script> tag in all HTML files.
- Update
CNAMEwith your domain - In GitHub repo: Settings > Pages > Custom domain
- Set up DNS: CNAME record pointing to
YOUR_USERNAME.github.io
If you only need one language:
- Delete the
en/folder (or root RU files) - Remove the language switcher from
<nav>in all pages - Remove
hreflang<link>tags from<head>
Replace favicon.svg with your own. The default is an accent-colored circle with "P". For best compatibility, also add a favicon.ico (32x32 PNG).
Replace assets/img/og-image.png (1200x630) for social media previews. Each project page can have its own OG image — update the og:image meta tag.
After editing styles.css or script.js:
npx csso styles.css -o styles.min.css
npx terser script.js -o script.min.js --compress --mangleHTML files load .min.css and .min.js — always rebuild after changes.
- 12-column grid, 1156px max width, 20px column gap
- Side padding: 48px (desktop), 24px (tablet/mobile)
- Text column: 764px centered
- Breakpoints: 1000px (tablet), 600px (compact), 480px (mobile)
- Press
Shift+Gin the browser to visualize the grid
This template doesn't include a contact form by default. To add one:
Option A: Formspree (free tier: 50 submissions/month)
<form action="https://formspree.io/f/YOUR_ID" method="POST">
<input type="email" name="email" placeholder="Your email" required>
<textarea name="message" placeholder="Message" required></textarea>
<button type="submit">Send</button>
</form>Option B: Netlify Forms (free with Netlify hosting)
<form name="contact" method="POST" data-netlify="true">
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>The template ships with Russian and English. To add a third language:
- Create a new folder (e.g.,
tr/for Turkish) - Copy
en/index.html,en/about.html, anden/projects/into it - Translate the content
- Add
hreflanglinks to all pages:<link rel="alternate" hreflang="tr" href="https://example.com/tr/">
- Add a language option to the
<nav>switcher in all pages - Add the new URLs to
sitemap.xml
All modern browsers (Chrome, Firefox, Safari, Edge). No IE11 support.
Built for speed: no JavaScript frameworks, no CSS preprocessors, minimal assets.
Lighthouse scores (localhost, headless Chrome):
- Performance: 90
- Accessibility: 92
- Best Practices: 81
- SEO: 100
MIT — use freely for personal and commercial projects.
Built by Diyor Khakimov.
