-
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.
- Loading branch information
1 parent
fb0402f
commit 6cd9659
Showing
4 changed files
with
65 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Box, PageLayout } from "@primer/react"; | ||
import PortfolioHeader from '../PortfolioHeader'; | ||
|
||
export default function PhoneComponent(){ | ||
return( | ||
<PageLayout columnGap="condensed" sx={{ | ||
border: "1px solid", | ||
borderColor: "cyan", | ||
minHeight: "80vh", | ||
minWidth: "100%" | ||
}}> | ||
<PageLayout.Header sx={{ | ||
border: "1px solid", | ||
borderColor: "border.default" | ||
}}> | ||
<Box> | ||
Test Header | ||
</Box> | ||
</PageLayout.Header> | ||
</PageLayout> | ||
) | ||
} |
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,32 @@ | ||
// NextJS Imports | ||
import { Box } from "@primer/react"; | ||
import { Children } from "react"; | ||
|
||
export default function DevDebugComponents({ | ||
children | ||
}: { | ||
children: any | ||
}){ | ||
|
||
console.log(`[DEBUG]: ${Children.count(children)}`); | ||
|
||
function getRandomColor() { | ||
var letters = '0123456789ABCDEF'; | ||
var color = '#'; | ||
for (var i = 0; i < 6; i++) { | ||
color += letters[Math.floor(Math.random() * 16)]; | ||
} | ||
return color; | ||
} | ||
|
||
return( | ||
<Box sx={{ | ||
borderColor: `${getRandomColor()}`, | ||
}}> | ||
{children && | ||
<DevDebugComponents> | ||
children | ||
</DevDebugComponents>} | ||
</Box> | ||
) | ||
} |
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