feat: allow reading saved articles; add home button

This commit is contained in:
Ayo Ayco 2025-08-27 09:32:53 +02:00
parent f732b79618
commit 36d84914d4
2 changed files with 35 additions and 6 deletions

View file

@ -120,11 +120,13 @@ const siteName = 'cozy.pub'
} }
} }
/*
&:has(#router-outlet #post) { &:has(#router-outlet #post) {
#jumbotron { #jumbotron {
display: none; display: none;
} }
} }
*/
} }
</style> </style>
<style is:global> <style is:global>

View file

@ -5,12 +5,39 @@ import Footer from '../components/Footer.astro'
--- ---
<App article={null}> <App article={null}>
<h1>Under Maintenance</h1> <button
<p> id="home-btn"
Currently performing scheduled maintenance, working to improve your onclick="document.getElementById('router-outlet').innerHTML = `
experience. Please check back soon. We apologize for any inconvenience this <h1>Under Maintenance</h1>
may cause. <p>
</p> Currently performing scheduled maintenance, working to improve your
experience. Please check back soon. We apologize for any inconvenience
this may cause.
</p>
`;"
>Home</button
>
<div slot="post" id="router-outlet">
<h1>Under Maintenance</h1>
<p>
Currently performing scheduled maintenance, working to improve your
experience. Please check back soon. We apologize for any inconvenience
this may cause.
</p>
</div>
<Library slot="library" skipSave={true} /> <Library slot="library" skipSave={true} />
<Footer slot="footer" /> <Footer slot="footer" />
</App> </App>
<style>
#home-btn {
width: 100%;
padding: 0.5rem 1rem;
text-align: center;
border-radius: 30px;
border: 2px solid rgb(var(--gray));
background-color: white;
box-shadow: 0 1px 3px 1px rgb(var(--gray-light));
cursor: pointer;
}
</style>