Skip to content

Commit

Permalink
improve scss imports, use client:media for navbar instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 5, 2024
1 parent b1d6a3d commit 1a6e378
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Hero from './Hero.astro';
{ name: 'Schedule', url: '#schedule' },
{ name: 'FAQ', url: '#faq' },
]}
client:load
client:media="(max-width: 767px)"
/>
<Hero />
</header>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</div>

<style lang="scss">
@use '../styles/breakpoints' as breakpoints;
@use '../styles/colors' as colors;
@use '../styles/breakpoints';
@use '../styles/colors';

.container {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar/style.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../../styles/colors' as colors;
@use '../../styles/breakpoints' as breakpoints;
@use '../../styles/colors';
@use '../../styles/breakpoints';

.nav {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const { title } = Astro.props;
</html>

<style is:global lang="scss">
@use '../styles/breakpoints.scss' as breakpoints;
@use '../styles/colors.scss' as colors;
@use '../styles/breakpoints';
@use '../styles/colors';

html {
font-family: 'Lexend Deca Variable', system-ui, sans-serif;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1a6e378

Please sign in to comment.