You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/hackts-design.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,18 @@ I chose Rails with custom Sass stylesheets because of the abundance of unique st
14
14
As you can see in the box model view, the layout contains many irregular spacings, varying element sizes, and non-uniform alignments. These characteristics made it difficult to implement using flexbox or grid with simple gaps, margins, and paddings, and required precise, element by element positioning.
15
15
16
16

17
-
*A draft of the hackts.ch page with box model inspection, showing the irregular spacing and alignment requirements.*
17
+
_A draft of the hackts.ch page with box model inspection, showing the irregular spacing and alignment requirements._
18
18
19
19
I also experimented with Figma to code tools such as [Builder.io’s Figma plugin](https://www.builder.io/c/docs/figma-to-builder) but the results were disappointing. The generated markup was verbose and composed of inline styles, with font styling defined multiple times instead of integrating with the existing font definitions. There was no clear component structure or hierarchy, which made the output unpleasant to read.
20
20
21
21
## Retrospective Approaches
22
22
23
23
Looking back, several methods might have eased the process:
24
24
25
-
- Rendering sections as images with defined clickable areas using [`<area>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/area) elements
26
-
- Using background images with text overlays
27
-
- Exporting directly from Figma as SVGs to keep both vector shapes and text, applying CSS classes to [SVG elements](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/style) for consistent styling ([MDN: Styling SVG with CSS](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS))
28
-
- Adding overlays for pixel accurate alignment adjustments
25
+
- Rendering sections as images with defined clickable areas using [`<area>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/area) elements
26
+
- Using background images with text overlays
27
+
- Exporting directly from Figma as SVGs to keep both vector shapes and text, applying CSS classes to [SVG elements](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/style) for consistent styling ([MDN: Styling SVG with CSS](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS))
28
+
- Adding overlays for pixel accurate alignment adjustments
29
29
30
30
While using images and clickable areas may allow for faster development, it compromises accessibility, responsiveness, and maintainability, ultimately leading to a poorer user experience and not aligning with best practices in web development.
<navclass="social-nav"role="navigation"aria-label="Social media links">
198
211
<center>
199
-
<NavLinkhref="https://www.codewars.com/users/cb341"externaltarget="_blank"rel="noopener noreferrer"aria-label="Codewars profile (opens in new tab)">Codewars</NavLink>
212
+
<NavLink
213
+
href="https://www.codewars.com/users/cb341"
214
+
external
215
+
target="_blank"
216
+
rel="noopener noreferrer"
217
+
aria-label="Codewars profile (opens in new tab)">Codewars</NavLink
218
+
>
200
219
|
201
-
<NavLinkhref="https://www.linkedin.com/in/daniel-bengl"externaltarget="_blank"rel="noopener noreferrer"aria-label="LinkedIn profile (opens in new tab)">LinkedIn</NavLink>
220
+
<NavLink
221
+
href="https://www.linkedin.com/in/daniel-bengl"
222
+
external
223
+
target="_blank"
224
+
rel="noopener noreferrer"
225
+
aria-label="LinkedIn profile (opens in new tab)">LinkedIn</NavLink
226
+
>
202
227
|
203
-
<NavLinkhref="https://github.com/cb341"externaltarget="_blank"rel="noopener noreferrer"aria-label="GitHub profile (opens in new tab)">GitHub</NavLink>
228
+
<NavLink
229
+
href="https://github.com/cb341"
230
+
external
231
+
target="_blank"
232
+
rel="noopener noreferrer"
233
+
aria-label="GitHub profile (opens in new tab)">GitHub</NavLink
234
+
>
204
235
</center>
205
236
</nav>
206
237
</header>
@@ -219,10 +250,12 @@ const structuredData = {
219
250
if (table.hasAttribute("data-responsive")) return;
0 commit comments