-
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.
Merge pull request #363 from FleetAdmiralJakob/deepsource-transform-d…
…17cf0a7 style: format code with Prettier and StandardJS
- Loading branch information
Showing
9 changed files
with
64 additions
and
51 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ function About() { | |
}, | ||
(error) => { | ||
console.log(error); | ||
} | ||
}, | ||
); | ||
|
||
return ( | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import React from "react"; | ||
|
||
interface Props { | ||
load: boolean | ||
load: boolean; | ||
} | ||
|
||
function Pre(props: Props) { | ||
|
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,71 +1,85 @@ | ||
import React, {useEffect, useState} from 'react' | ||
import {Container, Row} from 'react-bootstrap' | ||
import Button from 'react-bootstrap/Button' | ||
import React, { useEffect, useState } from "react"; | ||
import { Container, Row } from "react-bootstrap"; | ||
import Button from "react-bootstrap/Button"; | ||
// @ts-ignore | ||
import pdf_de from '../../Assets/../Assets/Résumé_de_Jakob_Rössner.pdf' | ||
import pdf_de from "../../Assets/../Assets/Résumé_de_Jakob_Rössner.pdf"; | ||
// @ts-ignore | ||
import pdf_en from '../../Assets/../Assets/Résumé_en_Jakob_Rössner.pdf' | ||
import {AiOutlineDownload} from 'react-icons/ai' | ||
import {Document, Page, pdfjs} from 'react-pdf' | ||
import 'react-pdf/dist/esm/Page/AnnotationLayer.css' | ||
import 'react-pdf/dist/esm/Page/TextLayer.css'; | ||
import pdf_en from "../../Assets/../Assets/Résumé_en_Jakob_Rössner.pdf"; | ||
import { AiOutlineDownload } from "react-icons/ai"; | ||
import { Document, Page, pdfjs } from "react-pdf"; | ||
import "react-pdf/dist/esm/Page/AnnotationLayer.css"; | ||
import "react-pdf/dist/esm/Page/TextLayer.css"; | ||
|
||
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`; | ||
|
||
function ResumeNew () { | ||
function ResumeNew() { | ||
const [width, setWidth] = useState(1200); | ||
|
||
useEffect(() => { | ||
setWidth(window.innerWidth) | ||
setWidth(window.innerWidth); | ||
}, []); | ||
|
||
return ( | ||
<div> | ||
<Container fluid className='resume-section'> | ||
<Row className='resume'> | ||
<h1 style={{ fontSize: '2.1em', paddingBottom: '20px' }} className="negative-letter-spacing"> | ||
German <strong className='purple'>Résumé</strong> | ||
<Container fluid className="resume-section"> | ||
<Row className="resume"> | ||
<h1 | ||
style={{ fontSize: "2.1em", paddingBottom: "20px" }} | ||
className="negative-letter-spacing" | ||
> | ||
German <strong className="purple">Résumé</strong> | ||
</h1> | ||
<Document file={pdf_de} className='d-flex justify-content-center'> | ||
<Page className="resume-document" pageNumber={1} scale={width > 786 ? 1.7 : 0.6} /> | ||
<Document file={pdf_de} className="d-flex justify-content-center"> | ||
<Page | ||
className="resume-document" | ||
pageNumber={1} | ||
scale={width > 786 ? 1.7 : 0.6} | ||
/> | ||
</Document> | ||
</Row> | ||
|
||
<Row style={{ justifyContent: 'center', position: 'relative' }}> | ||
<Row style={{ justifyContent: "center", position: "relative" }}> | ||
<Button | ||
variant='primary' | ||
variant="primary" | ||
href={pdf_de} | ||
target='_blank' | ||
style={{ maxWidth: '250px' }} | ||
target="_blank" | ||
style={{ maxWidth: "250px" }} | ||
> | ||
<AiOutlineDownload /> | ||
Download PDF | ||
Download PDF | ||
</Button> | ||
</Row> | ||
|
||
<Row className='resume'> | ||
<h1 style={{ fontSize: '2.1em', paddingBottom: '20px' }} className="negative-letter-spacing"> | ||
English <strong className='purple'>Résumé</strong> | ||
<Row className="resume"> | ||
<h1 | ||
style={{ fontSize: "2.1em", paddingBottom: "20px" }} | ||
className="negative-letter-spacing" | ||
> | ||
English <strong className="purple">Résumé</strong> | ||
</h1> | ||
<Document file={pdf_en} className='d-flex justify-content-center'> | ||
<Page className="resume-document" pageNumber={1} scale={width > 786 ? 1.7 : 0.6} /> | ||
<Document file={pdf_en} className="d-flex justify-content-center"> | ||
<Page | ||
className="resume-document" | ||
pageNumber={1} | ||
scale={width > 786 ? 1.7 : 0.6} | ||
/> | ||
</Document> | ||
</Row> | ||
|
||
<Row style={{ justifyContent: 'center', position: 'relative' }}> | ||
<Row style={{ justifyContent: "center", position: "relative" }}> | ||
<Button | ||
variant='primary' | ||
variant="primary" | ||
href={pdf_en} | ||
target='_blank' | ||
style={{ maxWidth: '250px' }} | ||
target="_blank" | ||
style={{ maxWidth: "250px" }} | ||
> | ||
<AiOutlineDownload /> | ||
Download PDF | ||
Download PDF | ||
</Button> | ||
</Row> | ||
</Container> | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default ResumeNew | ||
export default ResumeNew; |
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
56fa176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks for Deployment have failed