FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
quantstack.github.io/src/components/BlogpostCard.tsx at master · QuantStack/quantstack.github.io · GitHub
QuantStack
quantstack.github.io
Repository navigation
Code
Issues
3
(3)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
quantstack.github.io
/
src
/
components
/
BlogpostCard.tsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (31 loc) · 1.07 KB
Breadcrumbs
quantstack.github.io
/
src
/
components
/
BlogpostCard.tsx
Copy path
File metadata and controls
32 lines (31 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import
styles
from
"../pages/blog.module.css"
;
import
Link
from
"@docusaurus/Link"
;
import
useBaseUrl
from
"@docusaurus/useBaseUrl"
;
import
Card
from
"./layout/Card"
;
export
default
function
BlogpostCard
(
{
blogpost
}
)
{
return
(
<
Card
hover
className
=
{
styles
.
blogpost_card
}
>
<
Link
href
=
{
blogpost
.
url
}
>
<
div
className
=
{
`
${
styles
.
blogpost_image
}
flex-full-centered`
}
>
<
img
src
=
{
useBaseUrl
(
blogpost
.
image
)
}
id
=
{
blogpost
.
imageID
}
alt
=
"Illustration for the blog post."
/>
</
div
>
<
div
className
=
{
styles
.
blogpost_header
}
>
{
blogpost
.
title
}
</
div
>
<
div
className
=
{
styles
.
blogpost_summary
}
>
{
blogpost
.
summary
.
length
<
200
?
blogpost
.
summary
:
blogpost
.
summary
.
substring
(
0
,
200
)
+
"..."
}
</
div
>
<
div
className
=
{
styles
.
blogpost_footer
}
>
<
div
className
=
{
styles
.
blogpost_date
}
>
{
blogpost
.
date
}
</
div
>
<
div
className
=
{
styles
.
blogpost_authors
}
>
{
blogpost
.
authors
}
</
div
>
</
div
>
</
Link
>
</
Card
>
)
;
}
Back
|
FazBrowse Home
|
New Git URL