Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-05-23 - Accessibility and Loading Experience Improvements
**Learning:** Matching the wrapper's background color to the embedded content's theme significantly improves perceived performance by eliminating the white flash during loading. Correctly setting the `lang` attribute and `iframe` title are essential, low-effort accessibility wins for simple wrapper sites.
**Action:** Always check for language mismatch between the HTML `lang` attribute and the actual content, especially in portfolio sites. Ensure all `iframe` elements have descriptive `title` attributes.
20 changes: 4 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<html lang="es">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edgar D' Galo • UX/UI Designer | Portafolio Online</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
}

iframe {
width: 100vw;
height: 100vh;
border-width: 0;
}
</style>
<link rel="stylesheet" href="style.css">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZJBEJJF727"></script>
<script>
Expand All @@ -31,7 +19,7 @@
</head>

<body>
<iframe style.super-badge="display: none" src="https://dgalodesign.super.site"></iframe>
<iframe style.super-badge="display: none" src="https://dgalodesign.super.site" title="Portafolio de Edgar D' Galo"></iframe>
</body>

</html>
</html>
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: hsl(220, 13%, 18%);
}

iframe {
Expand All @@ -12,4 +13,4 @@ iframe {

iframe .super-badge {
display: none;
}
}