diff --git a/src/components/blog/BlogBanner/index.js b/src/components/blog/BlogBanner/index.js index bbd6ba459..5f9e5878f 100644 --- a/src/components/blog/BlogBanner/index.js +++ b/src/components/blog/BlogBanner/index.js @@ -12,10 +12,6 @@ export default function BlogBanner() {
SailPoint Developer Blog
- {/* - */} diff --git a/src/components/blog/BlogCard/index.js b/src/components/blog/BlogCard/index.js index 72e84b9c2..a3af4a5ac 100644 --- a/src/components/blog/BlogCard/index.js +++ b/src/components/blog/BlogCard/index.js @@ -14,21 +14,21 @@ export default function BlogCard({ name, views, replies, - id + readTime }) { return (
- +
-
{views}
- {views} +
{views}
-
{replies}
- {replies} - +
{replies}
+ +
{readTime} minute read
+
diff --git a/src/components/blog/BlogCard/styles.module.css b/src/components/blog/BlogCard/styles.module.css index 70cadef4f..f5add8e44 100644 --- a/src/components/blog/BlogCard/styles.module.css +++ b/src/components/blog/BlogCard/styles.module.css @@ -17,6 +17,10 @@ box-shadow: var(--dev-card-selected); } + + + + .cardText { position: absolute; margin: 22px; @@ -25,7 +29,6 @@ left: 0; } - .cardTitle { font-size: 22px; font-weight: 700; @@ -38,7 +41,6 @@ left: 0; } - .tag { font-size: 16px; font-weight: 500; @@ -56,10 +58,14 @@ grid-gap: 10px; } + + + + .cardUser { position: absolute; bottom: 10px; - left: 120px; + left: 25px; display: flex; } @@ -77,10 +83,15 @@ } + + + .cardData { position: absolute; bottom: 50px; left: 20px; + display: flex; + align-items: center; } .cardEye { @@ -92,24 +103,6 @@ width: 18px; } -.cardDataText { - color: #96a9ba; - /* computed from codepen https://codepen.io/sosuke/pen/Pjoqqp */ - margin-left: 5px; - font-size: 16px; - text-align: start; - visibility: hidden; -} -.cardDataTextAlign { - color: #96a9ba; - /* computed from codepen https://codepen.io/sosuke/pen/Pjoqqp */ - margin-left: 5px; - font-size: 16px; - text-align: start; - position: absolute; - top: -3px -} - .cardComment { margin-left: 10px; fill: #96a9bb; @@ -117,12 +110,14 @@ filter: invert(79%) sepia(12%) saturate(484%) hue-rotate(168deg) brightness(84%) contrast(84%); height: 18px; width: 18px; + margin-bottom: 4px; } .cardCommentText { color: #96a9ba; /* computed from codepen https://codepen.io/sosuke/pen/Pjoqqp */ margin-left: 5px; + margin-bottom: 5px; height: 20px; font-size: 16px; } diff --git a/src/components/blog/BlogCards/index.js b/src/components/blog/BlogCards/index.js index 67bbac37b..083abc8fd 100644 --- a/src/components/blog/BlogCards/index.js +++ b/src/components/blog/BlogCards/index.js @@ -38,6 +38,7 @@ export default function BlogCards() { title={a.title} views={a.views} replies={a.replies} + readTime={a.readTime} creatorImage={a.creatorImage}> })}
@@ -67,6 +68,7 @@ async function getPostList(topic) { liked: topic.like_count, replies: fullTopic.posts_count, solution: topic.has_accepted_answer, + readTime: parseInt(fullTopic.word_count/100), }; } diff --git a/src/components/blog/BlogSidebar/index.js b/src/components/blog/BlogSidebar/index.js new file mode 100644 index 000000000..c774ce522 --- /dev/null +++ b/src/components/blog/BlogSidebar/index.js @@ -0,0 +1,19 @@ +import React from 'react'; +import clsx from 'clsx'; +import styles from './styles.module.css'; +import useBaseUrl from '@docusaurus/useBaseUrl'; +import Link from '@docusaurus/Link'; + +export default function BlogSidebar() { + return ( +
+ +
+ sidebar Works! +
+ + + +
+ ); +} diff --git a/src/components/blog/BlogSidebar/styles.module.css b/src/components/blog/BlogSidebar/styles.module.css new file mode 100644 index 000000000..3fee58941 --- /dev/null +++ b/src/components/blog/BlogSidebar/styles.module.css @@ -0,0 +1,7 @@ + + + +.sideBarContainer { + width: 300px; + height: 100%; +} \ No newline at end of file diff --git a/src/pages/blog.js b/src/pages/blog.js index 91c996a94..25cb80f23 100644 --- a/src/pages/blog.js +++ b/src/pages/blog.js @@ -7,6 +7,7 @@ import BlogBanner from '../components/blog/BlogBanner'; import styles from './blog.module.css'; import BlogCards from '../components/blog/BlogCards'; +import BlogSidebar from '../components/blog/BlogSidebar'; export default function Blog() { const {siteConfig} = useDocusaurusContext(); @@ -14,7 +15,11 @@ export default function Blog() {
- +
+
+
+
+
); diff --git a/src/pages/blog.module.css b/src/pages/blog.module.css index e69de29bb..403c5e36a 100644 --- a/src/pages/blog.module.css +++ b/src/pages/blog.module.css @@ -0,0 +1,11 @@ +.blogContainer { + display: flex; +} + +.blogSidbarContainer { + flex: 10%; +} + +.blogCardContainer { + flex: 90%; +} \ No newline at end of file diff --git a/static/blog/clock-light.svg b/static/blog/clock-light.svg new file mode 100644 index 000000000..e28560de9 --- /dev/null +++ b/static/blog/clock-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/blog/watch-light.svg b/static/blog/watch-light.svg new file mode 100644 index 000000000..cea5a24d4 --- /dev/null +++ b/static/blog/watch-light.svg @@ -0,0 +1 @@ + \ No newline at end of file