generated from visoftsolutions/ksox-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bartosz Nowak
committed
Oct 15, 2023
1 parent
8b1b498
commit 6d90935
Showing
8 changed files
with
105 additions
and
16 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 |
---|---|---|
|
@@ -6,4 +6,4 @@ services: | |
context: ./ | ||
dockerfile: ./ksox-finance.dockerfile | ||
ports: | ||
- 3000:80 | ||
- 0.0.0.0:3000:80 |
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,7 +1,20 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { type ComplexStyleRule, style } from "@vanilla-extract/css"; | ||
|
||
const mobile: ComplexStyleRule = { | ||
gridTemplateColumns: "repeat( auto-fit, minmax(60px, 1fr) )", | ||
}; | ||
|
||
const desktop: ComplexStyleRule = { | ||
gridTemplateRows: "repeat(6, 1fr)", | ||
}; | ||
|
||
export const sidenav = style({ | ||
display: "grid", | ||
gridTemplateRows: "repeat(6, 1fr)", | ||
gap: "2px", | ||
justifyItems: "center", | ||
justifyContent: "center", | ||
"@media": { | ||
"screen and (min-width: 769px)": desktop, | ||
"screen and (max-width: 768px)": mobile, | ||
}, | ||
}); |
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,6 +1,18 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { type ComplexStyleRule, style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
const mobile: ComplexStyleRule = { | ||
display: "none", | ||
}; | ||
|
||
const desktop: ComplexStyleRule = { | ||
gridTemplateColumns: "auto 1fr", | ||
}; | ||
|
||
export const header = style({ | ||
backgroundColor: vars.color.background, | ||
"@media": { | ||
"screen and (min-width: 769px)": desktop, | ||
"screen and (max-width: 768px)": mobile, | ||
}, | ||
}); |
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,18 +1,42 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { type ComplexStyleRule, style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
const layoutRowMobile: ComplexStyleRule = { | ||
gridTemplateRows: "1fr", | ||
}; | ||
|
||
const layoutRowDesktop: ComplexStyleRule = { | ||
gridTemplateRows: "auto 1fr", | ||
}; | ||
|
||
export const layoutRow = style({ | ||
width: "100vw", | ||
height: "100vh", | ||
height: "100%", | ||
display: "grid", | ||
gridTemplateRows: "auto 1fr", | ||
gridAutoFlow: "row", | ||
backgroundColor: vars.color.backgroundHighlight, | ||
gap: "1px", | ||
"@media": { | ||
"screen and (min-width: 768px)": layoutRowDesktop, | ||
"screen and (max-width: 768px)": layoutRowMobile, | ||
}, | ||
}); | ||
|
||
const layoutColumnMobile: ComplexStyleRule = { | ||
gridTemplateRows: "1fr auto", | ||
gridAutoFlow: "row", | ||
}; | ||
|
||
const layoutColumnDesktop: ComplexStyleRule = { | ||
gridTemplateColumns: "auto 1fr", | ||
gridAutoFlow: "column", | ||
}; | ||
|
||
export const layoutColumn = style({ | ||
display: "grid", | ||
gridTemplateColumns: "auto 1fr", | ||
gap: "1px", | ||
backgroundColor: vars.color.backgroundHighlight, | ||
gap: "1px", | ||
"@media": { | ||
"screen and (min-width: 769px)": layoutColumnDesktop, | ||
"screen and (max-width: 768px)": layoutColumnMobile, | ||
}, | ||
}); |
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,6 +1,20 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { type ComplexStyleRule, style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
const mobile: ComplexStyleRule = { | ||
gridRowStart: "1", | ||
gridRowEnd: "2", | ||
}; | ||
|
||
const desktop: ComplexStyleRule = { | ||
gridColumnStart: "2", | ||
gridColumnEnd: "3", | ||
}; | ||
|
||
export const main = style({ | ||
backgroundColor: vars.color.background, | ||
"@media": { | ||
"screen and (min-width: 769px)": desktop, | ||
"screen and (max-width: 768px)": mobile, | ||
}, | ||
}); |
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,6 +1,20 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { type ComplexStyleRule, style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
const mobile: ComplexStyleRule = { | ||
gridRowStart: "2", | ||
gridRowEnd: "3", | ||
}; | ||
|
||
const desktop: ComplexStyleRule = { | ||
gridColumnStart: "1", | ||
gridColumnEnd: "2", | ||
}; | ||
|
||
export const nav = style({ | ||
backgroundColor: vars.color.background, | ||
"@media": { | ||
"screen and (min-width: 769px)": desktop, | ||
"screen and (max-width: 768px)": mobile, | ||
}, | ||
}); |