forked from dev-triangle/Wanderlust-frontend
-
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
Showing
5 changed files
with
123 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.service-card { | ||
width: 15rem; | ||
height: 20rem; | ||
/* padding: 2em 1.5em; */ | ||
border-radius: 5px; | ||
box-shadow: 0 0 35px rgba(0, 0, 0, 0.12); | ||
cursor: pointer; | ||
transition: 0.5s; | ||
position: relative; | ||
z-index: 2; | ||
overflow: hidden; | ||
background: #fff; | ||
display: flex; | ||
flex-direction: column; | ||
padding-top: 1rem; | ||
padding-left: 0.5rem; | ||
} | ||
|
||
.service-card::after { | ||
content: ""; | ||
width: 100%; | ||
height: 100%; | ||
background: linear-gradient(#0dcaf0, rgb(255, 23, 131)); | ||
position: absolute; | ||
left: 0%; | ||
top: -98%; | ||
z-index: -2; | ||
transition: all 0.4s cubic-bezier(0.77, -0.04, 0, 0.99); | ||
} | ||
|
||
.service-card:hover:after { | ||
top: 0%; | ||
} | ||
.service-card { | ||
background-color: #ffffff; | ||
color: black | ||
} | ||
|
||
.service-card:hover { | ||
color: #0dcaf0; | ||
} | ||
|
||
.service-card:hover h3 { | ||
color: #ffffff; | ||
} | ||
|
||
.service-card:hover p { | ||
color: #f0f0f0; | ||
} | ||
.trainp{ | ||
font-size: 26px; | ||
|
||
} | ||
.trainh{ | ||
font-size: 2rem; | ||
font-family: serif; | ||
} | ||
.trainp_div{ | ||
margin-top: 3rem; | ||
} |
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,24 @@ | ||
import React from 'react' | ||
import './FlightCards.css' | ||
function FlightCards({flight}) { | ||
return ( | ||
|
||
<div class="service-card"> | ||
|
||
<h1 className='trainh'>{train.train_name}</h1> | ||
<div className='trainp_div'> | ||
<p className='trainp'> | ||
Date: {train.next_date} | ||
</p> | ||
<p className='trainp'> | ||
Time: {train.train_time} | ||
</p> | ||
<p className='trainp'> | ||
Cost: {train.cost} | ||
</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default FlightCards |
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,25 @@ | ||
import React from 'react' | ||
import '../FlightCards/FlightCards.css' | ||
function TrainCards({train}) { | ||
return ( | ||
|
||
<div class="service-card"> | ||
|
||
<h1 className='trainh'>{train.train_name}</h1> | ||
<div className='trainp_div'> | ||
<p className='trainp'> | ||
Date: {train.next_date} | ||
</p> | ||
<p className='trainp'> | ||
Time: {train.train_time} | ||
</p> | ||
<p className='trainp'> | ||
Cost: {train.cost} | ||
</p> | ||
</div> | ||
</div> | ||
|
||
) | ||
} | ||
|
||
export default TrainCards |
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