-
Notifications
You must be signed in to change notification settings - Fork 3
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
0f56f8d
commit c01d021
Showing
11 changed files
with
206 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
font-weight: 600; | ||
letter-spacing: 0.5pt; | ||
line-height: 1; | ||
text-wrap: nowrap; | ||
} | ||
|
||
.container:hover { | ||
|
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 |
---|---|---|
|
@@ -4,3 +4,11 @@ | |
.container { | ||
display: flex; | ||
} | ||
|
||
/* * */ | ||
/* VALIDATING */ | ||
|
||
.validating { | ||
font-weight: 800; | ||
opacity: 0.5; | ||
} |
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
33 changes: 33 additions & 0 deletions
33
frontend/components/LinesExplorerContentDebug/LinesExplorerContentDebug.js
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,33 @@ | ||
'use client'; | ||
|
||
/* * */ | ||
|
||
import styles from './LinesExplorerContentDebug.module.css'; | ||
import CopyBadge from '@/components/CopyBadge/CopyBadge'; | ||
import { useLinesExplorerContext } from '@/contexts/LinesExplorerContext'; | ||
|
||
/* * */ | ||
|
||
export default function LinesExplorerContentDebug() { | ||
// | ||
|
||
// | ||
// A. Setup variables | ||
|
||
const linesExplorerContext = useLinesExplorerContext(); | ||
|
||
// | ||
// B. Render components | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<CopyBadge label={`pattern_id: ${linesExplorerContext.entities.pattern?.id}`} value={linesExplorerContext.entities.pattern?.id} /> | ||
<CopyBadge label={`direction: ${linesExplorerContext.entities.pattern?.direction}`} value={linesExplorerContext.entities.pattern?.direction} /> | ||
<CopyBadge label={`headsign: ${linesExplorerContext.entities.pattern?.headsign}`} value={linesExplorerContext.entities.pattern?.headsign} /> | ||
<CopyBadge label={`line_color: ${linesExplorerContext.entities.line?.color}`} value={linesExplorerContext.entities.line?.color} /> | ||
<CopyBadge label={`total stops: ${linesExplorerContext.entities.pattern?.path?.length}`} value={linesExplorerContext.entities.pattern?.path?.length} /> | ||
</div> | ||
); | ||
|
||
// | ||
} |
13 changes: 13 additions & 0 deletions
13
frontend/components/LinesExplorerContentDebug/LinesExplorerContentDebug.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,13 @@ | ||
/* * */ | ||
/* CONTAINER */ | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
padding: var(--size-lg); | ||
width: 100%; | ||
border-bottom: 1px solid var(--gray3); | ||
background-color: var(--reference-0); | ||
align-items: flex-start; | ||
} |
Oops, something went wrong.