-
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.
feat: added project components to simplify structure
- Loading branch information
1 parent
5240797
commit 2a35ed6
Showing
10 changed files
with
82 additions
and
190 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
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 was deleted.
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
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,37 @@ | ||
import Link from 'next/link'; | ||
|
||
import { ProjectLinkData } from '@models/project'; | ||
|
||
const ProjectLinks = ({ links }: { links?: ProjectLinkData }) => ( | ||
<section id="links" className="pt-10"> | ||
<h3>Links</h3> | ||
|
||
{ !links | ||
? <p>Das Projekt wird intern verwendet und ist daher nicht öffentlich zugänglich.</p> | ||
: ([ | ||
links?.project | ||
? <p>Das Projekt findest du auf <Link href={links.project.link} | ||
target="_blank" className="inline-link">{ links.project.label }</Link>.</p> | ||
: null, | ||
links?.code | ||
? <p>Den Code zum Projekt findest du auf <Link href={links.code.link} | ||
target="_blank" className="inline-link">{ links.code.label }</Link>.</p> | ||
: null, | ||
links?.github | ||
? <p>Den Code zum Projekt findest du auf <Link | ||
href={`https://github.com/${links.github.join('/')}`} | ||
target="_blank" className="inline-link">GitHub</Link>.</p> | ||
: null, | ||
links?.package | ||
? <p>Du kannst das Paket mit <Link href={links.package.link} | ||
target="_blank" className="inline-link">{ links.package.label }</Link> in dein Projekt einbinden.</p> | ||
: null, | ||
links?.npm | ||
? <p>Du kannst das Paket mit <Link href={`https://npmjs.org/package/${links.npm}`} | ||
target="_blank" className="inline-link">npm</Link> in dein Projekt einbinden.</p> | ||
: null, | ||
]) } | ||
</section> | ||
); | ||
|
||
export default ProjectLinks; |
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