Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab Docs for Park
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Test
SWLab Docs for Park
Commits
dc40a3bf
Commit
dc40a3bf
authored
Apr 30, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update section display(grid)
parent
7d8ed5f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
16 deletions
+26
-16
App.jsx
swlab-main/src/App.jsx
+1
-1
Card.jsx
swlab-main/src/components/Card.jsx
+5
-4
Section.jsx
swlab-main/src/components/Section.jsx
+20
-11
No files found.
swlab-main/src/App.jsx
View file @
dc40a3bf
...
...
@@ -11,7 +11,7 @@ function App () {
<>
<
Header
/>
<
Banner
/>
<
Section
title=
'Products'
gap=
'3rem'
>
<
Section
title=
'Products'
gap=
'3rem'
display=
'grid'
>
<
Card
title=
'BXM'
subTitle=
'Business eXcellence Framework'
...
...
swlab-main/src/components/Card.jsx
View file @
dc40a3bf
...
...
@@ -34,9 +34,10 @@ export default function Card (props) {
const
Scene
=
styled
.
div
`
position: 'relative';
width: 400px;
height: 460px;
margin: 40px 0;
/* width: 400px; */
width: 100%;
height: 450px;
margin-top: 40px;
perspective: 1200px;
`
const
FlipCard
=
styled
.
article
`
...
...
@@ -48,7 +49,7 @@ const FlipCard = styled.article`
position: relative;
${
Scene
}
:hover & {
transform:
scale(1.1)
rotateY(180deg);
transform: rotateY(180deg);
}
`
const
CardFace
=
styled
.
article
`
...
...
swlab-main/src/components/Section.jsx
View file @
dc40a3bf
...
...
@@ -2,30 +2,39 @@
import
styled
from
'styled-components'
export
default
function
Section
(
props
)
{
const
{
gap
,
title
}
=
props
const
{
gap
,
title
,
display
=
'flex'
}
=
props
return
<
Wrapper
>
<
Title
>
{
title
}
</
Title
>
<
Contents
gap=
{
gap
}
>
{
props
.
children
}
</
Contents
>
{
display
===
'flex'
?
<
FlexContents
gap=
{
gap
}
>
{
props
.
children
}
</
FlexContents
>
:
<
GridContents
gap=
{
gap
}
>
{
props
.
children
}
</
GridContents
>
}
</
Wrapper
>
}
const
Wrapper
=
styled
.
section
`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 80px 0;
padding: 80px;
`
const
Title
=
styled
.
h1
`
font-size: 4rem;
text-align: center;
font-size: 3rem;
font-weight: 700;
`
const
Contents
=
styled
.
div
`
const
Flex
Contents
=
styled
.
div
`
display: flex;
justify-content: center;
align-items: center;
gap:
${
props
=>
props
.
gap
}
;
flex-wrap: wrap;
`
const
GridContents
=
styled
.
div
`
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap:
${
props
=>
props
.
gap
}
;
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment