-
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
2b06f27
commit bf36a68
Showing
6 changed files
with
70 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
import { Box, PageLayout } from "@primer/react"; | ||
import PortfolioHeader from '../PortfolioHeader'; | ||
import PhoneContext from "./PhoneContext"; | ||
import PhoneMockup from "@/content/img/Samsung Galaxy S21 5G — Black — Shadow.png" | ||
import Image from "next/image"; | ||
import { relative } from "path"; | ||
|
||
export default function PhoneComponent(){ | ||
return( | ||
<PageLayout columnGap="condensed" sx={{ | ||
border: "1px solid", | ||
borderColor: "cyan", | ||
minHeight: "80vh", | ||
minWidth: "100%" | ||
<Box sx={{ | ||
position: "relative", | ||
textAlign: "center", | ||
userSelect: "none", | ||
}}> | ||
<PageLayout.Header sx={{ | ||
border: "1px solid", | ||
borderColor: "border.default" | ||
}}> | ||
<Box> | ||
Test Header | ||
</Box> | ||
</PageLayout.Header> | ||
</PageLayout> | ||
<Image src={PhoneMockup} alt="Samsung Galaxy S21 5G - Black" height={800} width={450} style={{zIndex: 10, width: "100%", position: "relative"}} draggable={false}/> | ||
<PhoneContext/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Box, Text } from "@primer/react"; | ||
import type { BetterSystemStyleObject } from "@primer/react/lib/sx"; | ||
import deepmerge from "deepmerge"; | ||
|
||
|
||
/** | ||
* This is the function that exports the PhoneContext Component. | ||
* @returns Test | ||
*/ | ||
export default function PhoneContext({ | ||
sx | ||
}: { | ||
sx?: BetterSystemStyleObject | ||
}){ | ||
// This component doesn't take any arguments but wraps all he returns | ||
// in the PhoneContextManager Component which is in charge of supervising | ||
// the state of the "game" the player is at on the website. | ||
|
||
const wrapperStyle: BetterSystemStyleObject = { | ||
backgroundColor: "#000000", | ||
minWidth: "100%", | ||
minHeight: "100%", | ||
borderRadius: "20px", | ||
padding: "15px", | ||
zIndex: 1, | ||
flexGrow: 1, | ||
} | ||
|
||
return( | ||
<Box sx={{ | ||
position: "absolute", top: "100%", left: "50%", | ||
transform: "translate(-50%, -50%)", display: "flex", | ||
width: 320, height: 700, marginTop: -403, zIndex: 1 }}> | ||
<Box sx={wrapperStyle}> | ||
{/* Here should be the text content, for now */} | ||
<Text> | ||
Here is the context. | ||
</Text> | ||
</Box> | ||
</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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.