-
-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information about last update to documentation (#3739)
- Loading branch information
1 parent
00931b1
commit ff900c1
Showing
5 changed files
with
118 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
website/src/components/articles/article-content-footer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { FunctionComponent } from "react"; | ||
import styled from "styled-components"; | ||
|
||
interface ArticleContentFooterProperties { | ||
readonly lastUpdated: string; | ||
readonly lastAuthorName: string; | ||
} | ||
|
||
export const ArticleContentFooter: FunctionComponent<ArticleContentFooterProperties> = ({ | ||
lastUpdated, | ||
lastAuthorName, | ||
}) => { | ||
return ( | ||
<Footer> | ||
<Small> | ||
Last updated on <strong>{lastUpdated}</strong> by{" "} | ||
<strong>{lastAuthorName}</strong> | ||
</Small> | ||
</Footer> | ||
); | ||
}; | ||
|
||
const Small = styled.small` | ||
font-style: italic; | ||
font-size: 0.7em; | ||
`; | ||
|
||
const Footer = styled.div` | ||
text-align: right; | ||
margin-top: 30px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters