-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
49 changed files
with
2,346 additions
and
212 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,34 @@ | ||
import { Box, useMatchMedia } from 'preshape'; | ||
import React, { useState } from 'react'; | ||
import data from '../../../data'; | ||
import ProjectPage from '../../ProjectPage/ProjectPage'; | ||
import Editor from './Editor/Editor'; | ||
import Gallery from './Gallery/Gallery'; | ||
import configurations from './Gallery/configurations'; | ||
|
||
const CircleArt = () => { | ||
const match = useMatchMedia(['1000px']); | ||
const [circleData, setCircleData] = useState(configurations[0]); | ||
|
||
return ( | ||
<ProjectPage {...data.projects.CircleArt}> | ||
<Box flex={match('1000px') ? 'horizontal' : 'vertical'} gap="x3" grow> | ||
<Box | ||
backgroundColor="background-shade-2" | ||
basis="0" | ||
borderRadius="x3" | ||
flex="vertical" | ||
grow | ||
> | ||
<Editor data={circleData.config} /> | ||
</Box> | ||
|
||
<Box basis="0" maxHeight="100%"> | ||
<Gallery onSelect={setCircleData} /> | ||
</Box> | ||
</Box> | ||
</ProjectPage> | ||
); | ||
}; | ||
|
||
export default CircleArt; |
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,68 @@ | ||
.CircleArt__circle, | ||
.CircleArt__intersection { | ||
stroke-width: 1; | ||
transition-property: fill, stroke, stroke-width; | ||
transition-duration: var(--transition-duration--fast); | ||
transition-timing-function: var(--transition-timing-function); | ||
} | ||
|
||
.CircleArt__circle--active { | ||
stroke: var(--color-accent-shade-4); | ||
stroke-width: 2; | ||
} | ||
|
||
.CircleArt--mode-draw { | ||
& .CircleArt__circle { | ||
fill: transparent; | ||
|
||
&:hover { | ||
stroke: var(--color-accent-shade-4); | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* .CircleArt__circle--active, | ||
.CircleArt__circle:hover { | ||
stroke: var(--color-accent-shade-4); | ||
} | ||
.CircleArt__circle--selectable, | ||
.CircleArt__intersection--selectable { | ||
stroke: var(--color-text-shade-4); | ||
} | ||
.CircleArt__circle--selectable:hover, | ||
.CircleArt__intersection--selectable:hover { | ||
stroke: var(--color-accent-shade-4); | ||
} */ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.CircleArt--mode-fill, | ||
.CircleArt--mode-view { | ||
/* & .CircleArt__circle--selectable.CircleArt__circle--filled:hover, | ||
& .CircleArt__intersection--selectable.CircleArt__intersection--filled:hover { | ||
fill: var(--color-text-shade-1); | ||
} */ | ||
} | ||
|
||
/* .CircleArt--mode-view { | ||
& .CircleArt__circle, | ||
& .CircleArt__intersection { | ||
stroke: rgba(var(--rgb-text-shade-3), 0.25); | ||
} | ||
} */ |
Oops, something went wrong.