Advertisement
Guest User

Untitled

a guest
Apr 18th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. Add the content to a single HTML wrapper to make it digestible and easy to follow and understand.
  2.  
  3. UI/Style Description:
  4.  
  5. Overall Theme: Clean, professional, interactive accordion-style layout with a distinct color palette. Designed for presenting structured information.
  6.  
  7. Layout: Centered, max-width container (1200px) on a light grey background (#f5f7fa). Uses flexbox for vertical stacking of sections with spacing (gap).
  8.  
  9. Color Scheme:
  10.  
  11. Primary (--primary-color: #22577A - Dark Teal): Used for main header background, strong text, footer text.
  12.  
  13. Secondary (--secondary-color: #38A3A5 - Medium Teal): Used for section header backgrounds (often in gradients), toggle buttons.
  14.  
  15. Accent (--accent-color: #57CC99 - Bright Green): Used for highlighting key concepts (.key-concept border/icon).
  16.  
  17. Warning (--warning-color: #f39c12): Used for secondary highlight blocks (.skill border/icon).
  18.  
  19. Light (--light-color: #E5E5E5): Used for subsection backgrounds.
  20.  
  21. Dark (--dark-color: #103145): Used for body text.
  22.  
  23. White/Off-White: Used for section content backgrounds, header text.
  24.  
  25. Typography: Open Sans font family. Clear hierarchy using font sizes and weights (h1, h2, h3). Good line height (1.6) for readability.
  26.  
  27. Components:
  28.  
  29. Header: Prominent, dark gradient background (--primary-color to --dark-color), rounded corners (15px), shadow (--card-shadow), contains main title and a visual progress bar.
  30.  
  31. Sections (.section): White background, rounded corners (12px), shadow. Act as collapsible accordion items.
  32.  
  33. Section Headers (.section-header): Teal gradient background, white text, padding. Act as clickable toggles.
  34.  
  35. Hover Effect: Subtle gradient shift on hover.
  36.  
  37. Toggle Icon: Chevron icon (fas fa-chevron-down) on the right, rotates 180 degrees smoothly on expansion.
  38.  
  39. Subsections (.subsection): Nested within sections, lighter grey background (--light-color), rounded corners. Similar collapsible structure with headers/content.
  40.  
  41. Content Blocks (.key-concept, .skill): Visually distinct blocks with light background tints (accent or warning), left border, padding, and a relevant Font Awesome icon positioned on the left using ::before.
  42.  
  43. Toggle Buttons (#expandAll, #collapseAll): Rounded (20px), solid secondary color background, white text, shadow, subtle background color change on hover.
  44.  
  45. Interactivity & Animation:
  46.  
  47. Accordion: Sections/subsections expand/collapse on click or keyboard interaction (Enter/Space) on their headers. Managed via JavaScript adding/removing an active class.
  48.  
  49. Smooth Transitions: Content visibility toggles using max-height (from 0 to a large value) and padding (from 0 to 24px/15px). All transitions (height, padding, background colors, icon rotation) use a consistent duration (var(--transition-speed: 0.4s)) with smooth easing (browser default ease).
  50.  
  51. Progress Bar: Fills horizontally based on the percentage of main sections currently open, with a smooth width transition.
  52.  
  53. Responsiveness: Basic media query (@media (max-width: 768px)) reduces padding, adjusts font sizes for better viewing on smaller screens.
  54.  
  55. Accessibility: Uses role="button", aria-expanded attributes, and keyboard support (Enter/Space) on headers for better usability.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement