-
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.
* Simplify component AcceptTermsOfuse * add termsOfUseService to services * add use-on-sreen hook * remove background animation temporarily * clean initial export values * put env file env variable to default * add scrollable terms of use with button enabled only when the whole page has been "read" * add contents from src/content/pagesContents collection as MD pages * working see #28
- Loading branch information
1 parent
e3f33ba
commit cacc6d9
Showing
18 changed files
with
250 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ static/data/ | |
!static/data/.gitkeep | ||
src/styles/fonts.css | ||
impresso-datalab.code-workspace | ||
.env.development |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,33 @@ | ||
import { useState } from "react" | ||
import { Form } from "react-bootstrap" | ||
import type { FC, ChangeEvent } from "react" | ||
|
||
const AcceptTermsOfUse = () => { | ||
const [accepted, setAccepted] = useState(false) | ||
|
||
const handleAccept = () => { | ||
setAccepted((accepted) => !accepted) | ||
} | ||
interface AcceptTermsOfUseProps { | ||
disabled?: boolean | ||
checked?: boolean | ||
onChange?: (event: ChangeEvent<HTMLInputElement>) => void | ||
} | ||
|
||
const AcceptTermsOfUse: FC<AcceptTermsOfUseProps> = ({ | ||
disabled = false, | ||
checked = false, | ||
onChange = () => { | ||
console.log("AcceptTermsOfUse.onChange") | ||
}, | ||
}) => { | ||
return ( | ||
<Form.Check> | ||
<Form.Check.Input | ||
type="checkbox" | ||
id="terms-of-use" | ||
checked={accepted} | ||
onChange={handleAccept} | ||
checked={checked} | ||
onChange={onChange} | ||
disabled={disabled} | ||
/> | ||
<Form.Check.Label htmlFor="terms-of-use"> | ||
I accept the terms of use | ||
I accept the terms of use {disabled ? "(disabled)" : ""} | ||
</Form.Check.Label> | ||
</Form.Check> | ||
) | ||
} | ||
|
||
export default AcceptTermsOfUse |
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
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,28 @@ | ||
--- | ||
title: About | ||
--- | ||
|
||
The Impresso Datalab is an infrastructure for programmatic data access and annotation services and is developed by the [Impresso project](https://impresso-project.ch) which strives to create meaningful links across historical media collections. The Datalab enables custom analyses of the Impresso corpus and the semantic indexation of external document collections also with the help of models created by the project. | ||
|
||
The Datalab offers access to our corpus, data and models via the Impresso Public API, a dedicated Python library and via [HuggingFace](https://huggingface.co/impresso-project). To keep the learning curve manageable, the Datalab includes Jupyter notebooks for documentation and templates to kickstart computational analysis, visualisation and enrichment. | ||
|
||
## Motivations for the Impresso Datalab | ||
|
||
With the creation of the Datalab, we reflect changing scholarly practices for the interaction with digitised cultural heritage collections. Its design and development is driven by five objectives: | ||
|
||
Complement generic data exploration via the Impresso Web App with objective-driven analysis and enrichment of datasets for specific research and teaching use cases. | ||
Enable the semantic indexation of historical documents outside the Impresso corpus using models generated by the Impresso project. | ||
Facilitate the linking of external research data with the Impresso corpus on the level of semantic enrichments. | ||
Reflect changing research practices which rely on executable notebooks for the documentation and reproduction of data-driven research. | ||
Offer accessible educational resources and notebook templates to researchers at any level of coding proficiency. | ||
|
||
Overall, the Datalab supports researchers who are confronted with digitised collections with variable depth of annotation and seek to overcome the limitations of off-the-shelf graphical user interfaces. | ||
|
||
## Access management | ||
|
||
The Impresso project works with a consortium of partnering libraries and archives on the grounds of legal agreements which respect diverse copyright regulations. The Impresso Terms of Use describe which data is available and how it may be used. | ||
Our User Plans reflect variations in access rights for the general public, students and researchers. Note that user plans will evolve in the course of the project and make sure to consult our corpus overview page to understand which data is currently available. | ||
|
||
## Continuous development and feedback | ||
|
||
The Datalab will remain in constant development throughout the Impresso project. We appreciate any kind of feedback on its usage and look forward to proposals for additional notebooks via info (at) impresso-project.ch. |
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,5 @@ | ||
--- | ||
title: Terms of use | ||
--- | ||
|
||
The Impresso Datalab is an infrastructure for programmatic data access and annotation services and is developed by the [Impresso project](https://impresso-project.ch) which strives to create meaningful links across historical media collections. The Datalab enables custom analyses of the Impresso corpus and the semantic indexation of external document collections also with the help of models created by the project. |
Oops, something went wrong.