Skip to content

Commit

Permalink
Merge pull request #13 from markteekman/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
markteekman authored Nov 23, 2021
2 parents befdf57 + adb834a commit bdb34ae
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "accessible-astro-starter",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"start": "astro dev",
"build": "astro build"
},
"devDependencies": {
"astro": "^0.20.12",
"astro": "^0.21.2",
"autoprefixer": "^10.4.0",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0"
}
Expand Down
5 changes: 5 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {},
},
};
19 changes: 9 additions & 10 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,31 @@ import SkipLinks from '../components/SkipLinks.astro'
<header>
<SkipLinks client:load />
<section class="padding-16 color-neutral">
<div class="container">
<img src="/assets/logo.svg" alt="Your Logo">
<div class="container temp">
<img src="assets/logo.svg" alt="Your Logo">
<ResponsiveToggle client:load />
<Navigation client:load />
</div>
</section>
</header>

<style lang="scss">
<style lang="scss" global>
@use '../styles/base/breakpoint' as *;

.container {
gap: 1rem;

img {
max-height: 40px;
}

.container.temp {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 1rem;

@include breakpoint(medium) {
flex-wrap: nowrap;
}

img {
max-height: 40px;
}
}
</style>
8 changes: 4 additions & 4 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@

</script>

<style lang="scss">
<style lang="scss" global>
@use '../styles/base/breakpoint' as *;

nav {
display: none;
flex-basis: 100%;

&.show {
@include breakpoint(medium) {
display: block;
flex-basis: auto;
}

@include breakpoint(medium) {
&.show {
display: block;
flex-basis: auto;
}

> ul {
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/DefaultLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ let subtitle = 'Accessible Astro Starter'
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap" rel="stylesheet">

<!-- global css -->
<link rel="stylesheet" href={Astro.resolve('../styles/globals.css')} />
<link rel="stylesheet" href={Astro.resolve('../styles/globals.scss')} />

<!-- open graph -->
<meta property="og:title" content="Accessible Astro Starter">
<meta property="og:description" content="A starter project with accessible features using Astro static site builder. Contains accessible landmarks, skip links, a dark mode color scheme, better focus outline and keyboard menu navigation.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://accessible-astro.markteekman.nl/">
<meta property="og:image" content="/assets/social-preview-image.png">
<meta property="og:image" content="assets/social-preview-image.png">

<!-- page title -->
<title>{title} - {subtitle}</title>
Expand Down

0 comments on commit bdb34ae

Please sign in to comment.