Commit ecaae02
authored
docs: Homepage promotion on one line (#2137)
<img width="998" height="365" alt="Screenshot 2025-12-09 at 11 37 00"
src="https://github.com/user-attachments/assets/d72406a2-1794-4702-a457-6bd46f99d7d0"
/>
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Simplifies the hero promotion to a single-line layout with truncation
and updates the homepage promotion text.
>
> - **UI**
> - **Hero** (`src/components/Hero/Hero.tsx`): Remove `labelMobile` prop
and mobile/desktop split; render a single `label` with arrow.
> - **Styles** (`src/components/Hero/styles.module.css`): Adjust
promotion layout for one-line display (`max-width`, reduced `gap`, badge
right margin, arrow non-shrinking) and add ellipsis overflow handling.
> - **Homepage** (`src/pages/index.tsx`): Update promotion content to
`badge: "Build"`, `label: "Win big in $1M Challenge"`; drop
`labelMobile`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5878bc1. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 1677d03 commit ecaae02
File tree
3 files changed
+17
-48
lines changed- src
- components/Hero
- pages
3 files changed
+17
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
| |||
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 122 | | |
133 | 123 | | |
134 | 124 | | |
| |||
138 | 128 | | |
139 | 129 | | |
140 | 130 | | |
| 131 | + | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
144 | 135 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
162 | 139 | | |
163 | 140 | | |
164 | 141 | | |
| 142 | + | |
165 | 143 | | |
166 | 144 | | |
167 | 145 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 68 | + | |
| 69 | + | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
0 commit comments