スキル一覧に戻る
yennanliu

portfolio-layouts

by yennanliu

Source code of my personnel site : projects / intro / contacts | built by JS, HTML, CSS

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: portfolio-layouts description: Creates responsive portfolio galleries, project showcases, and image grid layouts. Use when building portfolio pages, creating image galleries, or designing project showcase sections. Handles lazy loading and responsive image optimization. allowed-tools: Read, Glob, Grep

Portfolio and Gallery Layouts

Responsive Grid Layouts

  • Use CSS Grid for gallery layouts: grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
  • Flexbox for flexible card layouts
  • Adjust columns per breakpoint:
    • Mobile (< 768px): 1-2 columns
    • Tablet (768px-1024px): 2-3 columns
    • Desktop (> 1024px): 3-4 columns

Image Optimization

  • Use picture element for art direction
  • Lazy load with: loading="lazy"
  • Size images appropriately (max 200KB for thumbnails)
  • Use WebP with JPG fallback

Portfolio Card Structure

<div class="portfolio-card">
  <div class="image-wrapper">
    <img src="thumb.jpg" loading="lazy" alt="Project name">
  </div>
  <div class="card-content">
    <h3>Project Title</h3>
    <p>Description</p>
    <a href="#">Learn More</a>
  </div>
</div>

Hover/Animation Effects

  • Use CSS transitions for smooth effects
  • AOS (Animate On Scroll) library integration
  • Parallax effects on hero sections
  • Keep animations under 300ms for responsiveness
  • Maintain consistent aspect ratios across gallery
  • Provide loading states for images
  • Include alt text for all images
  • Consider using modal/lightbox for full-size views
  • Implement filter/sort functionality for large portfolios

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です