-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e14b1a2
commit 8b8efa9
Showing
25 changed files
with
365 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ node_modules/ | |
.cache/ | ||
public | ||
.DS_Store | ||
static/data/ | ||
!static/data/.gitkeep |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 'Basic Datavisualisation' | ||
|
||
notebooks: | ||
- time-distribution-of-a-search | ||
authors: | ||
- impresso-team | ||
--- | ||
|
||
Three easy steps to enter the _impresso_ way of doing research. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Notebooks we are testing right now | ||
notebooks: | ||
- introduction-to-topic-modeling | ||
- time-distribution-of-a-search | ||
- team-starter-pack | ||
tags: | ||
- testing | ||
- notebooks | ||
- topic-modeling | ||
--- |
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,10 @@ | ||
import React from 'react' | ||
import { useDataStore } from '../store' | ||
|
||
const AuthorCard = ({ name }) => { | ||
const getAuthorByName = useDataStore((state) => state.getAuthorByName) | ||
const author = getAuthorByName(name) | ||
return <b>{author.fullName || name}</b> | ||
} | ||
|
||
export default AuthorCard |
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
.CollectionCard { | ||
border-radius: 5px; | ||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); | ||
border-radius: var(--impresso-border-radius-lg); | ||
|
||
box-shadow: var(--shadow-lg); | ||
} | ||
|
||
.CollectionCard ol { | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.NotebookCard { | ||
border-radius: var(--impresso-border-rqdius-sm); | ||
background: white; | ||
} | ||
|
||
.NotebookCard h3 { | ||
font-size: var(--fs18px); | ||
font-weight: bold; | ||
} |
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,53 @@ | ||
import React from 'react' | ||
import { ModalNotebookPreviewView, useDataStore } from '../store' | ||
import AuthorCard from './AuthorCard' | ||
import { Button } from 'react-bootstrap' | ||
import './NotebookCard.css' | ||
import { navigate } from 'gatsby' | ||
import Avatar from 'boring-avatars' | ||
import { ArrowRight } from 'iconoir-react' | ||
|
||
const AvatarVariants = ['marble', 'beam', 'pixel', 'sunset', 'ring', 'bauhaus'] | ||
const NotebookCard = ({ name }) => { | ||
const getNotebookByName = useDataStore((state) => state.getNotebookByName) | ||
const notebook = getNotebookByName(name) | ||
const navigateToNotebookPage = () => { | ||
navigate(`?view=${ModalNotebookPreviewView}&viewId=${name}`) | ||
} | ||
|
||
return ( | ||
<div className='NotebookCard shadow-sm'> | ||
<div className='p-3 d-flex align-items-center'> | ||
<div> | ||
<Avatar | ||
size={40} | ||
name={notebook.name} | ||
variant='marble' | ||
square={false} | ||
/> | ||
</div> | ||
<div className='mx-3'> | ||
<h3 onClick={navigateToNotebookPage}>{notebook?.title}</h3> | ||
<ol class='NotebookCard__authors'> | ||
{notebook?.authors.map((name) => ( | ||
<li key={name}> | ||
<AuthorCard name={name} /> | ||
</li> | ||
))} | ||
</ol> | ||
</div> | ||
<div className='ms-auto'> | ||
<Button | ||
variant='secondary' | ||
className='p-0' | ||
style={{ width: 36, height: 36 }} | ||
onClick={navigateToNotebookPage} | ||
> | ||
<ArrowRight strokeWidth={2} /> | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
export default NotebookCard |
Oops, something went wrong.