Skip to content

Commit 9630482

Browse files
committed
Refactor width CSS classes from header, breadcrumbs, content, and footer to page container
1 parent c86366c commit 9630482

17 files changed

Lines changed: 393 additions & 70 deletions

File tree

‎.cache/pages.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"consent",
2222
"contact",
23+
"hero",
2324
"offline",
2425
{
2526
"privacy": [

‎eslint.config.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import noHtmlElementAssertionsRule from './test/eslint/no-html-element-assertion
1515
import noQuerySelectorOutsideSelectorsRule from './test/eslint/no-query-selector-outside-selectors-rule'
1616

1717
const level: Linter.StringSeverity = 'error'
18-
const astroParser = (astroPlugin as unknown as { parser: typeof tsPlugin.parser }).parser
18+
const astroParser = (astroPlugin as unknown as { parser: Linter.Parser }).parser
1919
const tsconfigRootDir = path.dirname(fileURLToPath(import.meta.url))
2020

2121
export default [
@@ -351,6 +351,7 @@ export default [
351351
project: './tsconfig.json',
352352
tsconfigRootDir,
353353
extraFileExtensions: ['.astro'],
354+
programs: undefined,
354355
},
355356
},
356357
rules: {

‎src/components/Breadcrumbs/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const breadcrumbSchema =
3434

3535
{
3636
breadcrumbs.length > 1 && (
37-
<div class="mx-auto max-w-300 w-[90%] mt-4">
37+
<div id="breadcrumbs" class="mt-4">
3838
<nav aria-label="Breadcrumbs" class="breadcrumbs pl-8">
3939
<ol class="flex items-center space-x-2 text-sm text-content-offset">
4040
{breadcrumbs.map((item, index) => (

‎src/components/Footer/index.astro‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ const year = new Date().getFullYear()
1313
<site-footer transition:persist>
1414
<footer class="bg-page-base-offset w-full mt-6 pt-4" role="contentinfo">
1515
<div
16+
id="footer-inner"
1617
class:list={[
1718
styles.footerGrid,
18-
'flex flex-col mx-auto max-w-300 w-[90%] px-4 sm:px-6 lg:px-8 pb-3',
19+
'flex flex-col px-4 sm:px-6 lg:px-8 pb-3',
1920
]}
2021
>
2122
{/* Page footer company contact */}

‎src/components/Header/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const { path } = Astro.props
5050
{/* Header for all pages */}
5151
<header
5252
id="header"
53-
class="flex flex-row items-center justify-between py-2 lg:py-3 relative mx-auto max-w-300 w-[90%] px-4 sm:px-6 lg:px-8"
53+
class="flex flex-row items-center justify-between py-2 lg:py-3 relative px-4 sm:px-6 lg:px-8"
5454
role="banner"
5555
>
5656
{/*- Element for animated background behind mobile navigation menu -*/}

‎src/components/Layout/Container/index.astro‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const { id } = Astro.props
1010
---
1111

1212
<div
13-
class="flex flex-col min-h-screen relative transition-transform duration-300 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]"
13+
class="flex flex-col min-h-screen relative transition-transform duration-300 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]
14+
[&_#header]:mx-auto [&_#header]:max-w-300 [&_#header]:w-[90%]
15+
[&_#main]:mx-auto [&_#main]:max-w-300 [&_#main]:w-[90%]
16+
[&_#breadcrumbs]:mx-auto [&_#breadcrumbs]:max-w-300 [&_#breadcrumbs]:w-[90%]
17+
[&_#footer-inner]:mx-auto [&_#footer-inner]:max-w-300 [&_#footer-inner]:w-[90%]"
1418
style="padding-top: env(titlebar-area-height, 0);"
1519
id={id}
1620
>

‎src/components/Layout/Content/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<main
88
id="main"
9-
class="flex flex-col flex-[0_1_auto] mx-auto max-w-300 w-[90%]"
9+
class="flex flex-col flex-[0_1_auto]"
1010
role="main"
1111
tabindex="-1"
1212
>

‎src/content/about/backend.md‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎src/content/about/frontend.md‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎src/content/about/getsstarted.md‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)