Toggle navigation
Toggle navigation
This project
Loading...
Sign in
한우준
/
Straight-Up
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
MrMirror21
2020-12-07 01:15:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e55573316d54560ba0b79fca20e687b7ed379e06
e5557331
1 parent
52f11981
route to main-page
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
7 deletions
straight-up/src/App.js
straight-up/src/components/Button.js
straight-up/src/components/Header.js
straight-up/src/style/Landing.css
straight-up/src/App.js
View file @
e555733
import
React
from
'react'
;
import
{
BrowserRouter
as
Router
,
Route
,
Switch
,
Redirect
}
from
'react-router-dom'
;
import
Landing
from
'./Landing'
;
import
Main
from
'./Main'
;
class
App
extends
React
.
Component
{
...
...
@@ -9,6 +10,7 @@ class App extends React.Component {
<
Router
>
<
Switch
>
<
Route
exact
path
=
"/landing"
component
=
{
Landing
}
/
>
<
Route
exact
path
=
"/main"
component
=
{
Main
}
/
>
<
Redirect
path
=
"*"
to
=
"/landing"
/>
<
/Switch
>
<
/Router
>
...
...
straight-up/src/components/Button.js
View file @
e555733
...
...
@@ -5,10 +5,9 @@ import "../style/Landing.css";
const
Button
=
()
=>
{
return
(
<
div
className
=
"mainBtnContainer"
>
<
Link
to
=
'./main'
>
<
Link
to
=
"/main"
>
<
button
className
=
"startBtn"
>
Get
Started
!<
/button>
<
/Link>
<
/div>
)
}
...
...
straight-up/src/components/Header.js
View file @
e555733
import
React
from
'react'
import
{
Link
}
from
'react-router-dom'
;
import
logo
from
'../style/Logo.JPG'
;
const
Header
=
()
=>
{
return
(
<
div
className
=
"Header"
>
<
img
src
=
"../style/Logo.jpg"
alt
=
"Logo"
><
/img>
<
div
className
=
"HeaderContainer"
style
=
{{
display
:
'inline-block'
,
width
:
'100vw'
,
height
:
'100px'
,
background
:
'#2f3640'
}}
>
<
div
className
=
"logo"
>
<
Link
to
=
"/landing"
>
<
img
src
=
{
logo
}
width
=
'100px'
height
=
'100px'
alt
=
"Logo"
><
/img>
<
/Link>
<
/div>
<
/div>
)
}
...
...
straight-up/src/style/Landing.css
View file @
e555733
...
...
@@ -17,6 +17,7 @@ body {
width
:
100vw
;
height
:
100vh
;
}
/*
.Landingbg:after {
content: '';
position: absolute;
...
...
@@ -28,7 +29,7 @@ body {
background: rgba(0,0,0,0.001);
box-shadow: inset 100px 100px 250px #000000, inset -100px -100px 250px #000000;
}
*/
.mainTextContainer
{
text-align
:
center
;
position
:
relative
;
...
...
@@ -60,5 +61,5 @@ body {
}
.startBtn
:hover
{
opacity
:
0.
5
;
opacity
:
0.
8
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment