Skip to content

feat(ui): add reusable GlassPanel component#72

Merged
soomtochukwu merged 1 commit intoDXmakers:mainfrom
Spagero763:feat/glass-panel-component-32
Apr 28, 2026
Merged

feat(ui): add reusable GlassPanel component#72
soomtochukwu merged 1 commit intoDXmakers:mainfrom
Spagero763:feat/glass-panel-component-32

Conversation

@Spagero763
Copy link
Copy Markdown
Contributor

Summary

Implements the reusable GlassPanel wrapper component requested in #32.

New file: frontend/src/app/components/GlassPanel.tsx

interface GlassPanelProps {
  children: React.ReactNode;
  className?: string;
}

export function GlassPanel({ children, className }: GlassPanelProps) {
  return (
    <div className={`glass-panel${className ? ` ${className}` : ""}`}>
      {children}
    </div>
  );
}
  • Accepts children and an optional className prop (merged after glass-panel)
  • Applies .glass-panel internally — the class in globals.css already enforces:
    • backdrop-filter: blur(16px) / -webkit-backdrop-filter: blur(16px)
    • background: rgba(24, 24, 27, 0.7) via --glass-bg
    • border: 1px solid rgba(255, 255, 255, 0.08) via --glass-border
    • hover: transform: translateY(-2px) + deepened box-shadow

Updated: frontend/src/app/page.tsx

Both raw <div className="glass-panel"> elements replaced with <GlassPanel>.

Acceptance Criteria

  • GlassPanel correctly renders its children
  • page.tsx uses GlassPanel instead of raw div tags with className="glass-panel"

Closes #32

…age.tsx

- Create GlassPanel.tsx with children and optional className props
- Applies the .glass-panel CSS class internally (backdrop blur 16px,
  rgba(24,24,27,0.7) background, 1px solid rgba(255,255,255,0.08) border,
  hover translateY(-2px) with deepened shadow — all defined in globals.css)
- Replace both raw <div className="glass-panel"> instances in page.tsx with <GlassPanel>

Closes DXmakers#32
Copilot AI review requested due to automatic review settings April 27, 2026 16:44
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 27, 2026

@Spagero763 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a reusable GlassPanel wrapper component to standardize usage of the existing .glass-panel styling across the UI (per issue #32), and migrates the home page to use it.

Changes:

  • Added GlassPanel component that renders a .glass-panel wrapper with optional className merging.
  • Replaced two raw <div className="glass-panel"> wrappers in page.tsx with <GlassPanel>.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
frontend/src/app/components/GlassPanel.tsx Introduces the reusable wrapper component for consistent glass panel styling.
frontend/src/app/page.tsx Updates the home page to use GlassPanel instead of repeated raw .glass-panel divs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@soomtochukwu soomtochukwu merged commit 41791e9 into DXmakers:main Apr 28, 2026
6 of 7 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.

Create Reusable GlassPanel Component

3 participants