Skip to content

style: tighten spacing and polish misc links#86

Merged
kaiiiichen merged 2 commits into
mainfrom
feat/homepage-intro-copy
Jun 29, 2026
Merged

style: tighten spacing and polish misc links#86
kaiiiichen merged 2 commits into
mainfrom
feat/homepage-intro-copy

Conversation

@kaiiiichen

@kaiiiichen kaiiiichen commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove Constellation Institute RA from About to match latest LinkedIn profile
  • add and alphabetize a new Resources card in Misc, with custom destination labels
  • tighten list/card text spacing across Home, About, Projects, and Misc; improve help tooltip bubble positioning on mobile

Test plan

  • npm run dev
  • visually verify /, /about, /projects, and /misc spacing updates
  • verify help tooltip bubble tail appears at bottom-right and stays visible on mobile

Made with Cursor


Open in Devin Review

Summary by CodeRabbit

  • New Features

    • Added a new Resources section on the Misc page with additional curated links and clearer link hints.
    • Improved social link tooltips, including a more helpful email tip and better tooltip alignment on the contact guidance hint.
  • UI/Style Updates

    • Tightened spacing and line breaks across the homepage, About, Projects, and project/link cards for a cleaner, more compact layout.
    • Refined card and tooltip styling, including the help tooltip arrow and magazine card padding.
  • Content Changes

    • Updated the About page experience content by removing one listed entry.

Apply a consistent, slightly denser spacing rhythm across home/about/projects/misc while keeping readability. Sync About experience with LinkedIn and refine social/help tooltip and resource link labels for better mobile UX.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kaichen.dev Ready Ready Preview, Comment Jun 29, 2026 9:21am

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Reduces lineHeight values across homepage, projects, about, and component files; changes list item vertical padding from py-3 to py-2 in multiple places; removes the Constellation Institute experience entry; adds a new Resources section to the Misc page; and introduces home-help-tip tooltip CSS with arrow pseudo-elements alongside a custom tip field for social links.

Changes

Typography, content, and tooltip updates

Layer / File(s) Summary
Home contact tooltip alignment and CSS arrow
app/components/home-social-links.tsx, app/globals.css
SOCIAL_LINKS item type gains optional tip field; Email entry sets a custom tip; rendering loop passes tip ?? label to HoverTip; Contact guidance HoverTip gains align="end" and tipClassName="home-help-tip"; globals.css defines .home-help-tip with ::before/::after arrow pseudo-elements and a dark-mode override.
Resources section on Misc page
app/misc/page.tsx
Adds RESOURCES array with optional hintLabel entries, inserts a new full-width "Resources" card section rendering HoverLinkDestinationHint links, and updates metadata.description to include "resources".
Sitewide typography and spacing adjustments
app/page.tsx, app/projects/page.tsx, app/about/page.tsx, app/misc/page.tsx, app/components/oxford-dul/course-project-link.tsx, app/components/pinned-project-link.tsx, app/globals.css
Reduces lineHeight across identity, introductions, header, education, experience, volunteering, and component description blocks; changes list item padding from py-3 to py-2; reduces .mag-card and .mag-card-inset padding; removes the Constellation Institute experience entry from the About page.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • kaiiiichen/kaichen.dev#78: Restructures About page experience/education content, directly related to the Constellation Institute removal in this PR.
  • kaiiiichen/kaichen.dev#80: Companion work on the help/tooltip icon styling in globals.css, directly related to the new .home-help-tip tooltip arrow CSS added here.
  • kaiiiichen/kaichen.dev#84: Restructures About page experience/volunteering role models, directly related to the role detail lineHeight and group removal changes here.

Poem

🐇 A rabbit hops through every line,
Trimming spacing, making things align.
Resources bloom on the misc page,
A tooltip arrow graces the stage.
Less padding here, tighter lines there—
Clean and crisp, beyond compare! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description has Summary and Test plan, but it omits several template sections like Type of change, Related issues, Notes for reviewers, and the checklist. Add the missing template sections, or explicitly mark them as not applicable, so reviewers can see the change type, linked issues, and required checklist items.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and matches the main changes: spacing tweaks and link-related polish.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/homepage-intro-copy

Comment @coderabbitai help to get the list of available commands.

Make the homepage email icon tooltip display the full address as "Email: kaichen.dev.37@gmail.com" while keeping other social tooltips unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Claude <noreply@anthropic.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread app/globals.css
Comment on lines +310 to +315
.home-help-tip::before {
bottom: -7px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 7px solid var(--color-border-secondary);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 Arrow border color slightly differs from tooltip border color in light mode

The outer arrow triangle uses border-top: 7px solid var(--color-border-secondary) which resolves to #d4d4d8 (zinc-300) in light mode (app/globals.css:314). However, the tooltip itself (via TIP_BASE_CLASS at app/components/hover-tip.tsx:48) uses border-zinc-200 which is #e4e4e7. This means the arrow's outer border is slightly darker than the tooltip border in light mode. In dark mode both resolve to zinc-700 (#3f3f46) so they match. This is likely a deliberate design choice for arrow definition but could be unintentional.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
app/components/oxford-dul/course-project-link.tsx (1)

105-107: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the shared .nav-link class for the list variant.

This re-declares the standard row styling in a component path that is supposed to consume the shared class, which makes spacing/hover updates drift across components. As per coding guidelines, app/components/**/*.tsx: Use .mag-card, .mag-card-inset, and .nav-link CSS classes defined in app/globals.css for consistent styling across the application.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/components/oxford-dul/course-project-link.tsx` around lines 105 - 107,
The list variant in course-project-link.tsx is re-declaring the shared row
styling instead of consuming the shared navigation style. Update the list
variant in the course-project-link component to use the existing .nav-link class
from app/globals.css rather than an inline utility string, so the shared row
styling stays consistent across components and future hover/spacing changes only
need to be made in one place.

Source: Coding guidelines

app/components/pinned-project-link.tsx (1)

76-76: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use .nav-link instead of another bespoke list-row class string.

This component lives under app/components/**, so keeping the shared list-link class here avoids duplicated hover/padding definitions. As per coding guidelines, app/components/**/*.tsx: Use .mag-card, .mag-card-inset, and .nav-link CSS classes defined in app/globals.css for consistent styling across the application.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/components/pinned-project-link.tsx` at line 76, The pinned project link
is using a bespoke Tailwind class string instead of the shared navigation link
style. Update the className in pinned-project-link.tsx to use the existing
.nav-link class from app/globals.css, so this component follows the shared
styling convention used by other app/components elements and avoids duplicating
padding/hover behavior.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@app/components/oxford-dul/course-project-link.tsx`:
- Around line 105-107: The list variant in course-project-link.tsx is
re-declaring the shared row styling instead of consuming the shared navigation
style. Update the list variant in the course-project-link component to use the
existing .nav-link class from app/globals.css rather than an inline utility
string, so the shared row styling stays consistent across components and future
hover/spacing changes only need to be made in one place.

In `@app/components/pinned-project-link.tsx`:
- Line 76: The pinned project link is using a bespoke Tailwind class string
instead of the shared navigation link style. Update the className in
pinned-project-link.tsx to use the existing .nav-link class from
app/globals.css, so this component follows the shared styling convention used by
other app/components elements and avoids duplicating padding/hover behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ec87f91e-bcdd-4205-b15b-e088a46d6ff4

📥 Commits

Reviewing files that changed from the base of the PR and between ee50713 and 4ddd103.

📒 Files selected for processing (8)
  • app/about/page.tsx
  • app/components/home-social-links.tsx
  • app/components/oxford-dul/course-project-link.tsx
  • app/components/pinned-project-link.tsx
  • app/globals.css
  • app/misc/page.tsx
  • app/page.tsx
  • app/projects/page.tsx

@kaiiiichen kaiiiichen merged commit 33c93a8 into main Jun 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant