Skip to content

Commit

Permalink
feat: update the slides background for the scroll view
Browse files Browse the repository at this point in the history
  • Loading branch information
jsulpis committed Jul 30, 2024
1 parent 53662de commit 8ad66a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
11 changes: 9 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,21 @@ const { title } = Astro.props;
// controls: false,
autoAnimateDuration: 0.5,
autoAnimateEasing: "cubic-bezier(0.4, 0, 0.2, 1)",
// plugins: [RevealHighlight], // use this if you want to show some code
// plugins: [RevealHighlight], // use this if you want to show some code (be aware that it's really heavy, see https://x.com/jsulpis/status/1795536457819431408)
});
</script>
</body>
</html>

<style is:global>
<style is:global lang="scss">
// Sass is installed by default, you can change if you prefer Stylus or Less

@import "reveal.js/dist/reveal.css";
@import "reveal.js/dist/theme/night.css";
@import "../../src/styles/highlightjs-theme-vs2015.css";

main,
.slide-background-content {
background: linear-gradient(#133055, #0c1a2a);
}
</style>
21 changes: 7 additions & 14 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@ import WhyAstro from "../slides/WhyAstro.astro";
---

<Layout title="My Awesome Talk Title">
<main class="reveal">
<div class="slides">
<Title />
<WhyAstro />
<!-- Put your slides here -->
</div>
</main>
<main class="reveal">
<div class="slides">
<Title />
<WhyAstro />
<!-- Put your slides here -->
</div>
</main>
</Layout>

<style lang="scss">
// Sass is installed by default, you can change if you prefer Stylus or Less
main {
background: linear-gradient(#133055, #0c1a2a);
}
</style>

0 comments on commit 8ad66a0

Please sign in to comment.