forked from aws-samples/amplify-next-template
-
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 #43 from cabcookie/group-projects
# Projekte gruppieren ## Neue Funktionen und Änderungen - Die Ansicht in der App ist stabilisiert worden und zoomt nicht mehr in Eingabefelder ([#40](#40)) - Projektlisten lassen sich jetzt filtern nach Work In Progress, On Hold und Done ([#41](#41)) - Bei Aktivitäten kann nun das Datum geändert werden. - In der Navigation kann nun auch zu Projekten und Accounts gewechselt werden. Mit ^+p und ^+a kann man auch direkt hinspringen.
- Loading branch information
Showing
16 changed files
with
350 additions
and
177 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 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
34 changes: 34 additions & 0 deletions
34
components/navigation-menu/OtherNavigationSection.module.css
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,34 @@ | ||
.wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.6rem; | ||
} | ||
|
||
.menuItem { | ||
border-radius: 0.4rem; | ||
text-align: center; | ||
padding: 0.6rem; | ||
width: 100%; | ||
border: none; | ||
background-color: var(--color-btn); | ||
box-shadow: none; | ||
color: var(--color-text); | ||
text-decoration: none; | ||
transition: background-color 1s ease, color 1s ease; | ||
font-weight: bold; | ||
} | ||
|
||
.menuItem:hover { | ||
filter: brightness(98%); | ||
box-shadow: 2px 2px 8px rgba(89, 88, 88, 0.344); | ||
} | ||
|
||
@media (max-width: 24.999em) { | ||
.menuItem { | ||
font-size: var(--font-size-xx-small); | ||
font-weight: normal; | ||
} | ||
} |
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,40 @@ | ||
import { Context } from "@/contexts/ContextContext"; | ||
import { FC } from "react"; | ||
import styles from "./OtherNavigationSection.module.css"; | ||
import contextStyles from "@/components/layouts/ContextColors.module.css"; | ||
import Link from "next/link"; | ||
|
||
type OtherNavigationSectionProps = { | ||
context?: Context; | ||
}; | ||
|
||
type MenuItem = { | ||
name: string; | ||
link: string; | ||
}; | ||
|
||
const menuItems: MenuItem[] = [ | ||
{ name: "Projects", link: "/projects" }, | ||
{ name: "Accounts", link: "/accounts" }, | ||
// { name: "People", link: "/people" }, | ||
]; | ||
|
||
const OtherNavigationSection: FC<OtherNavigationSectionProps> = ({ | ||
context, | ||
}) => { | ||
return ( | ||
<div | ||
className={`${ | ||
context ? contextStyles[`${context}ColorScheme`] : styles.noColorScheme | ||
} ${styles.wrapper}`} | ||
> | ||
{menuItems.map(({ name, link }, idx) => ( | ||
<Link className={styles.menuItem} key={idx} href={link}> | ||
{name} | ||
</Link> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default OtherNavigationSection; |
Oops, something went wrong.