Skip to content

Commit c5a50bf

Browse files
feat: Add footer to base layout (#30)
* feat: Add footer to base layout Added a footer to the `Layout` component in `src/templates/layout.tsx`. The footer includes: - The project name: "workers-research" - A link to the GitHub repository (https://github.com/G4brym/workers-research) - A GitHub SVG icon next to the link. Styling was done using Tailwind CSS classes directly in the component, ensuring the footer is positioned at the bottom of the page and visually consistent with the existing design. * feat: Update footer based on feedback Updated the footer in `src/templates/layout.tsx`: - Made the project name "workers-research" a hyperlink to the GitHub repository. - Adjusted the GitHub icon size to be slightly smaller (w-4 h-4). --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 06a1780 commit c5a50bf

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

src/templates/layout.tsx

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,41 @@ export const Layout: FC = (props) => {
100100
<script src="https://unpkg.com/[email protected]"></script>
101101
<script src="/core.js"></script>
102102
</head>
103-
<body class="bg-gray-50 min-h-screen">{props.children}</body>
103+
<body class="bg-gray-50 min-h-screen flex flex-col">
104+
<div class="flex-grow">{props.children}</div>
105+
<footer class="bg-gray-100 border-t border-gray-200 py-4 text-center text-sm text-gray-600">
106+
<div class="max-w-6xl mx-auto px-4 flex items-center justify-center">
107+
<a
108+
href="https://github.com/G4brym/workers-research"
109+
target="_blank"
110+
rel="noopener noreferrer"
111+
class="hover:text-gray-900 hover:underline"
112+
>
113+
workers-research
114+
</a>
115+
<a
116+
href="https://github.com/G4brym/workers-research"
117+
target="_blank"
118+
rel="noopener noreferrer"
119+
class="ml-2 hover:text-gray-900"
120+
aria-label="GitHub Repository"
121+
>
122+
<svg
123+
class="w-4 h-4 inline-block"
124+
fill="currentColor"
125+
viewBox="0 0 20 20"
126+
aria-hidden="true"
127+
>
128+
<path
129+
fill-rule="evenodd"
130+
d="M10 0C4.477 0 0 4.477 0 10c0 4.418 2.865 8.166 6.839 9.489.5.092.682-.217.682-.483 0-.237-.009-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.031-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.026 2.747-1.026.546 1.378.201 2.397.098 2.65.64.7 1.03 1.595 1.03 2.688 0 3.848-2.338 4.695-4.566 4.942.359.309.678.92.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.001 10.001 0 0020 10c0-5.523-4.477-10-10-10z"
131+
clip-rule="evenodd"
132+
></path>
133+
</svg>
134+
</a>
135+
</div>
136+
</footer>
137+
</body>
104138
</html>
105139
);
106140
};

0 commit comments

Comments
 (0)