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
9f50519b
Commit
9f50519b
authored
May 07, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add /docs link
parent
49d9fae6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
Banner.jsx
swlab-main/src/components/Banner.jsx
+6
-1
Button.jsx
swlab-main/src/components/Button.jsx
+8
-2
Card.jsx
swlab-main/src/components/Card.jsx
+6
-1
Nav.jsx
swlab-main/src/components/Nav.jsx
+7
-1
No files found.
swlab-main/src/components/Banner.jsx
View file @
9f50519b
// @ts-nocheck
import
{
useCallback
}
from
'react'
import
{
SiGithub
}
from
'react-icons/si'
import
styled
from
'styled-components'
import
Button
from
'./Button'
...
...
@@ -10,6 +11,10 @@ const backdropStyle = {
}
export
default
function
Banner
()
{
const
onMoveDocPage
=
useCallback
(()
=>
{
window
.
location
.
href
=
'https://swlab.bwg.co.kr/docs'
},
[])
return
(
<
Wrapper
>
<
Backdrop
style=
{
backdropStyle
}
/>
...
...
@@ -18,7 +23,7 @@ export default function Banner () {
<
BannerTitle
type=
'sub'
fontSize=
'3.5em'
>
Software Lab.
</
BannerTitle
>
<
BannerDesc
>
Analyzing new technologies and ideas • Developing innovative products and services
</
BannerDesc
>
<
ButtonGroup
>
<
Button
text=
'Documetation'
/>
<
Button
onClick=
{
onMoveDocPage
}
text=
'Documetation'
/>
<
Button
text=
'GitHub'
icon=
{
<
SiGithub
/>
}
/>
</
ButtonGroup
>
</
Overlay
>
...
...
swlab-main/src/components/Button.jsx
View file @
9f50519b
// @ts-nocheck
import
{
useCallback
}
from
'react'
import
styled
from
'styled-components'
export
default
function
Button
(
props
)
{
const
{
icon
,
text
}
=
props
return
<
Wrapper
>
const
{
icon
,
text
,
onClick
}
=
props
const
clickButton
=
useCallback
(()
=>
{
onClick
&&
onClick
()
},
[])
return
<
Wrapper
onClick=
{
clickButton
}
>
{
text
}
<
span
>
{
icon
}
</
span
>
</
Wrapper
>
...
...
swlab-main/src/components/Card.jsx
View file @
9f50519b
// @ts-nocheck
import
{
useCallback
}
from
'react'
import
styled
from
'styled-components'
import
Backdrop
from
'./Backdrop'
import
Button
from
'./Button'
...
...
@@ -6,6 +7,10 @@ import Button from './Button'
export
default
function
Card
(
props
)
{
const
{
title
,
subTitle
,
mainDesc
,
subDesc
}
=
props
const
onMovePage
=
useCallback
((
product
)
=>
()
=>
{
window
.
location
.
href
=
`https://swlab.bwg.co.kr/docs/
${
product
}
`
},
[])
return
<
Scene
>
<
FlipCard
>
<
CardFace
className=
'front'
>
...
...
@@ -25,7 +30,7 @@ export default function Card (props) {
</
Title
>)
}
</
div
>
<
Button
text=
'Learn more'
/>
<
Button
onClick=
{
onMovePage
(
title
.
toLowerCase
())
}
text=
'Learn more'
/>
</
Overlay
>
</
CardFace
>
</
FlipCard
>
...
...
swlab-main/src/components/Nav.jsx
View file @
9f50519b
// @ts-nocheck
import
{
useCallback
}
from
'react'
import
styled
,
{
keyframes
}
from
'styled-components'
export
default
function
Nav
()
{
const
onMoveDocPage
=
useCallback
(()
=>
{
window
.
location
.
href
=
'https://swlab.bwg.co.kr/docs'
},
[])
return
(<
Menu
>
<
MenuItem
><
p
>
Blog
</
p
></
MenuItem
>
<
MenuItem
><
p
>
Documentation
</
p
></
MenuItem
>
<
MenuItem
onClick=
{
onMoveDocPage
}
><
p
>
Documentation
</
p
></
MenuItem
>
</
Menu
>)
}
...
...
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