-
Notifications
You must be signed in to change notification settings - Fork 0
blog: add footer #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blog: add footer #43
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| .site-footer { | ||
| margin-top: 4rem; | ||
| padding: 2rem 1rem; | ||
| border-top: 1px solid #333; | ||
| text-align: center; | ||
| color: #888; | ||
| font-size: 0.9rem; | ||
| } | ||
|
|
||
| .footer-content a { | ||
| color: #ff7875; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .footer-content a:hover { | ||
| color: #ff4d4f; | ||
| text-decoration: underline; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import './Footer.css'; | ||
|
|
||
| export default function Footer() { | ||
| return ( | ||
| <footer className="site-footer"> | ||
| <div className="footer-content"> | ||
| <p> | ||
| My Technical Writing Licensed under{' '} | ||
| <a | ||
| href="https://creativecommons.org/licenses/by-nc-sa/4.0/" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| > | ||
| CC BY-NC-SA 4.0 | ||
| </a> | ||
| </p> | ||
| </div> | ||
|
Comment on lines
+6
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The <p>
My Technical Writing Licensed under{' '}
<a
href="https://creativecommons.org/licenses/by-nc-sa/4.0/"
target="_blank"
rel="noopener noreferrer"
>
CC BY-NC-SA 4.0
</a>
</p> |
||
| </footer> | ||
| ); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with the suggested simplification in
Footer.jsx(removing the.footer-contentdiv), these selectors should be updated to target links within.site-footerdirectly. This makes the CSS less dependent on a specific HTML structure.