[dotenv@17.2.3] injecting env (0) from .env -- tip:
{
"name": "Footer",
"purpose": "Site footer with links and copyright",
"layout": {
"boundingBox": {
"top": 24091,
"left": 23100,
"width": 1440,
"height": 776
},
"relativeBoundingBox": {
"top": 5326,
"left": 0,
"width": 1440,
"height": 776
},
"spacing": {
"next": 0
},
"layoutDirection": "VERTICAL"
},
"elements": [
{
"id": "728:17979",
"name": "footer",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"children": [
{
"id": "728:17980",
"name": "div",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"children": [
{
"id": "728:17981",
"name": "div",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"children": [
{
"id": "728:17982",
"name": "Scan. Detect. Remove.",
"type": "TEXT",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"absoluteBoundingBox": {
"x": 23292,
"y": 24186.484375,
"width": 254,
"height": 30
},
"absoluteRenderBounds": {
"x": 23292.783203125,
"y": 24192.529296875,
"width": 251.068359375,
"height": 17.19921875
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"characters": "Scan. Detect. Remove.",
"characterStyleOverrides": [],
"styleOverrideTable": {},
"lineTypes": [
"NONE"
],
"lineIndentations": [
0
],
"style": {
"fontFamily": "Inter",
"fontPostScriptName": null,
"fontStyle": "Extra Bold",
"fontWeight": 800,
"textAutoResize": "WIDTH_AND_HEIGHT",
"fontSize": 23,
"textAlignHorizontal": "LEFT",
"textAlignVertical": "CENTER",
"letterSpacing": 0,
"lineHeightPx": 30,
"lineHeightPercent": 107.77710723876953,
"lineHeightPercentFontSize": 130.43478393554688,
"lineHeightUnit": "PIXELS"
},
"layoutVersion": 3,
"effects": [],
"interactions": [],
"complexStrokeProperties": {
"strokeType": "BASIC"
},
"inlineStyles": {}
},
{
"id": "728:17983",
"name": "ul",
"type": "IMAGE",
"url": "@/assets/ul-728-17983.svg",
"absoluteBoundingBox": {
"x": 23292,
"y": 24265.484375,
"width": 348,
"height": 72
},
"absoluteRenderBounds": {
"x": 23292,
"y": 24265.484375,
"width": 348,
"height": 72
},
"inlineStyles": {}
},
{
"id": "728:17993",
"name": "ul#menu-secondary-menu-1",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"children": [
{
"id": "728:17994",
"name": "Privacy Policy",
"type": "TEXT",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"absoluteBoundingBox": {
"x": 23292,
"y": 24353.484375,
"width": 73,
"height": 15
},
"absoluteRenderBounds": {
"x": 23292,
"y": 24357.234375,
"width": 72.15625,
"height": 11.1875
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"layoutAlign": "INHERIT",
"layoutGrow": 0,
"layoutSizingHorizontal": "HUG",
"layoutSizingVertical": "HUG",
"characters": "Privacy Policy",
"characterStyleOverrides": [],
"styleOverrideTable": {},
"lineTypes": [
"NONE"
],
"lineIndentations": [
0
],
"style": {
"fontFamily": "Inter",
"fontPostScriptName": null,
"fontStyle": "Regular",
"fontWeight": 400,
"textAutoResize": "WIDTH_AND_HEIGHT",
"textDecoration": "UNDERLINE",
"fontSize": 11,
"textAlignHorizontal": "LEFT",
"textAlignVertical": "CENTER",
"letterSpacing": 0,
"lineHeightPx": 15,
"lineHeightPercent": 112.67606353759766,
"lineHeightPercentFontSize": 136.36363220214844,
"lineHeightUnit": "PIXELS"
},
"layoutVersion": 3,
"effects": [],
"interactions": [],
"complexStrokeProperties": {
"strokeType": "BASIC"
},
"inlineStyles": {}
},
{
"id": "728:17995",
"name": "Terms of Service",
"type": "TEXT",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"absoluteBoundingBox": {
"x": 23390.5625,
"y": 24353.484375,
"width": 88,
"height": 15
},
"absoluteRenderBounds": {
"x": 23390.5625,
"y": 24357.109375,
"width": 87.681640625,
"height": 11.3125
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"layoutAlign": "INHERIT",
"layoutGrow": 0,
"layoutSizingHorizontal": "HUG",
"layoutSizingVertical": "HUG",
"characters": "Terms of Service",
"characterStyleOverrides": [],
"styleOverrideTable": {},
"lineTypes": [
"NONE"
],
"lineIndentations": [
0
],
"style": {
"fontFamily": "Inter",
"fontPostScriptName": null,
"fontStyle": "Regular",
"fontWeight": 400,
"textAutoResize": "WIDTH_AND_HEIGHT",
"textDecoration": "UNDERLINE",
"fontSize": 11,
"textAlignHorizontal": "LEFT",
"textAlignVertical": "CENTER",
"letterSpacing": 0,
"lineHeightPx": 15,
"lineHeightPercent": 112.67606353759766,
"lineHeightPercentFontSize": 136.36363220214844,
"lineHeightUnit": "PIXELS"
},
"layoutVersion": 3,
"effects": [],
"interactions": [],
"complexStrokeProperties": {
"strokeType": "BASIC"
},
"inlineStyles": {}
}
],
"blendMode": "PASS_THROUGH",
"clipsContent": false,
"strokeWeight": 1,
"layoutMode": "HORIZONTAL",
"paddingRight": 149.4375,
"paddingTop": 4,
"paddingBottom": 13,
"itemSpacing": 25.5625,
"layoutWrap": "NO_WRAP",
"absoluteBoundingBox": {
"x": 23292,
"y": 24349.484375,
"width": 336,
"height": 32
},
"absoluteRenderBounds": {
"x": 23292,
"y": 24349.484375,
"width": 336,
"height": 32
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"layoutSizingHorizontal": "HUG",
"layoutSizingVertical": "HUG",
"interactions": [],
"complexStrokeProperties": {
"strokeType": "BASIC"
},
"inlineStyles": {}
}
],
"blendMode": "PASS_THROUGH",
"clipsContent": false,
"strokeWeight": 1,
"absoluteBoundingBox": {
"x": 23292,
"y": 24187.484375,
"width": 312,
"height": 182
},
"absoluteRenderBounds": {
"x": 23292,
"y": 24187.484375,
"width": 348,
"height": 194
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"interactions": [],
"complexStrokeProperties": {
"strokeType": "BASIC"
},
"inlineStyles": {}
},
{
"id": "728:17996",
"name": "div",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"children": [
{
"id": "728:17997",
"name": "Copyright
<component_structure>
The `component_details` parameter contains:
- `elements`: Array of CSS styles and asset URLs for all elements in this component (colors, spacing, fonts, backgrounds, etc.)
- `componentName` (optional): If present, indicates this is a **reusable component**; if absent, it's a **regular component**
- `props` (optional): Props interface definition, only present when `componentName` exists
</component_structure>
<global_styles>
.gradientBorder {
position: relative;
z-index: 0;
&::before {
content: '';
position: absolute;
inset: 0;
padding: 1px; // From strokeWidth
border-radius: inherit;
background: linear-gradient(278deg, rgba(170, 255, 248, 0.60) 1.63%, rgba(71, 169, 255, 0.60) 104.34%); // From strokeColor
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: destination-out;
mask-composite: exclude;
z-index: -1;
}
}
</global_styles>
<visual_reference>
Refer to the conversation history for the page thumbnail and context.
Use it to verify visual details like shadows, gradients, and spacing.
</visual_reference>
High Fidelity & Responsive:
- **Style Consistency**: Implement styles using the technical stack and libraries listed in <styling>.
- **Strict Restriction**: Absolutely ONLY use the technical stack and libraries listed in <styling>. Do NOT use any other styling methods, libraries, or frameworks (e.g., if clsx is not listed, do not use clsx).
- **Default Styling**: If <styling> is empty or does not contain specific libraries, DEFAULT to standard vanilla CSS.
- **Tailwind CSS + CSS Modules (CRITICAL)**:
- If the stack includes BOTH Tailwind and CSS Modules (Less/SCSS), use them correctly:
1. **Tailwind utilities**: Use DIRECTLY in JSX className (e.g., `className="flex items-center gap-4"`)
2. **CSS Modules**: Use ONLY for complex styles that can't be expressed with Tailwind utilities (e.g., gradients, animations, pseudo-elements)
3. **NEVER use `@apply` in CSS Module files** - it's a Tailwind-specific directive that doesn't work in Less/SCSS
4. Example correct usage:
TSX: `<div className={`flex ${styles.customGradient}`}>`
Less: `.customGradient { background: linear-gradient(...); }`
- **CSS Modules Only**: If the tech stack specifies CSS Modules without Tailwind:
1. Create a corresponding style file (e.g., `index.module.less`, `index.module.scss`, or `index.module.css`)
2. Import it as `import styles from './index.module.[ext]';` in the TSX
3. Define all styles in the style file using standard CSS/Less/SCSS syntax
4. Use `styles.className` in JSX
- **CRITICAL**: Use exact design values from `component_details.elements` (colors, spacing, font sizes, gradients, shadows, etc.)
- Use responsive utilities provided by the chosen libraries
- For complex styles (gradients, shadows), use values from `elements` directly in CSS Modules or inline styles
- For gradient rounded borders, CHECK `global_styles` for `.gradientBorder` mixin
</req_1>
<req_2>
**DOM Identification**:
- EVERY DOM element corresponding to a Figma node MUST have an `id` attribute.
- The `id` value must match the `id` in the Figma Data exactly.
- This is crucial for automated position validation.
</req_2>
<req_3>
**Images & Assets**:
- **CRITICAL**: For any image URL starting with `@/assets`, you MUST import it at the top of the file.
- **Asset Name Matching**:
- Check the `<available_assets>` list for actual filenames in the project.
- Asset filenames follow the pattern: `kebab-case-name-id1-id2.ext` (e.g., "Star 2.svg" → "star-2-1-2861.svg")
- Match the base name (ignoring spaces, case, and ID suffix): "@/assets/arXiv.svg" → look for "arxiv-*.svg" in the list
- Use the EXACT filename from the available assets list in your import.
- Example: If available_assets contains "arxiv-1-2956.svg", use:
`import ArXivIcon from '@/assets/arxiv-1-2956.svg';`
- **Usage**: `<img src={ArXivIcon} />`, do not use backgroundImage property.
- **NEVER** use the string path directly in JSX or styles.
</req_3>
<req_4>
**Semantic HTML**:
- Use semantic tags: `<header>`, `<footer>`, `<nav>`, `<article>`, `<section>`, `<button>`.
</req_4>
<req_5>
**Layout Strategy**:
- PREFER relative/flex/grid layout.
- Use absolute positioning ONLY for decoration/overlays or if Figma structure explicitly implies overlay.
</req_5>
<req_6>
**Naming Conventions**:
- Component Name: **Footer** (PascalCase).
- Export default.
</req_6>
<req_7>
**Component Type & Props (CRITICAL)**:
**IF `component_details.componentName` exists:**
- This is a **reusable component**
- Generate props interface from `component_details.props`: `interface FooterProps { ... }`
- Reference props in JSX: `{title}`, `<img src={iconSrc} />` (NOT hardcoded values)
**IF `component_details.componentName` does NOT exist:**
- This is a **regular component**
- Do NOT generate props interface
- Directly hardcode content from `component_details.elements` into JSX
**Both types**: Do NOT repeat JSX to simulate grids; parent components handle iteration.
</req_7>
<req_9>
**React Import**:
- Do **NOT** include `import React from 'react';` at the top of the file.
</req_9>
<req_10>
**File Naming**:
- ALWAYS name the main component file `index.tsx`.
- ALWAYS name the style file (if applicable) `index.module.[css|less|scss]`.
- NEVER use PascalCase or other names for filenames (e.g., DO NOT use `MainFrame.tsx` or `Button.tsx`).
</req_10>
If only one file (TSX) is needed:
tsx
// code...
If multiple files are needed (e.g., TSX + Styles):
## index.tsx
```tsx
// code...
```
## index.module.[css|less|scss]
```[css|less|scss]
// styles...
```