feat: add footer description, disclaimers, attribution, links (#43)
This commit is contained in:
parent
c8cc39958c
commit
3a49d5d0b5
3 changed files with 31 additions and 2 deletions
|
@ -4,6 +4,7 @@ export interface Props {
|
|||
}
|
||||
|
||||
const { url } = Astro.props;
|
||||
const placeholder = 'Type the URL of an article here';
|
||||
---
|
||||
|
||||
<div class="address-bar">
|
||||
|
@ -11,7 +12,7 @@ const { url } = Astro.props;
|
|||
<button aria-label="Home" title="Home" class="left-button" type="button" id="app-home" name="app-home" onclick="window.location.href = '/';" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17.51 3.87L15.73 2.1L5.84 12l9.9 9.9l1.77-1.77L9.38 12l8.13-8.13z"/></svg>
|
||||
</button>
|
||||
<input type="text" id="app-url" name="url" value={url} placeholder="Type a URL here" />
|
||||
<input type="text" id="app-url" name="url" value={url} placeholder={placeholder} />
|
||||
<button aria-label="Submit" title="Submit" class="right-button primary-button" type="submit" id="submit">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>
|
||||
</button>
|
||||
|
|
26
src/components/Footer.astro
Normal file
26
src/components/Footer.astro
Normal file
|
@ -0,0 +1,26 @@
|
|||
<footer class="footer">
|
||||
<p class="footer__title">Cozy 🧸 • <a href="https://github.com/ayoayco/cozy" target="_blank">Star on GitHub</a></p>
|
||||
<p>
|
||||
Remove distractions. Save for later.
|
||||
</p>
|
||||
<p>
|
||||
Copy rights and credits goes to their respective owners.
|
||||
</p>
|
||||
<p class="footer__attribution">
|
||||
Created by <a href="https://ayo.ayco.io" target="_blank">Ayo Ayco</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
<style lang="scss">
|
||||
.footer {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #555;
|
||||
font-size: small;
|
||||
padding-bottom: 1rem;
|
||||
|
||||
&__attribution a {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
import { ArticleData } from "@extractus/article-extractor";
|
||||
import "./reset.css";
|
||||
import Footer from "../components/Footer.astro";
|
||||
export interface Props {
|
||||
meta: ArticleData
|
||||
}
|
||||
|
@ -50,6 +51,7 @@ const appTitle = `Cozy 🧸${meta.title && `| ${meta.title}`}`;
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -62,7 +64,7 @@ const appTitle = `Cozy 🧸${meta.title && `| ${meta.title}`}`;
|
|||
}
|
||||
#main-content {
|
||||
* {
|
||||
margin: 1rem 0;
|
||||
margin: 1rem 0 0;
|
||||
}
|
||||
|
||||
#post-wrapper {
|
||||
|
|
Loading…
Reference in a new issue