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.
Merge pull request dev-triangle#20 from dev-triangle/newadditions
Newadditions
- Loading branch information
Showing
8 changed files
with
140 additions
and
22 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'>{flight.train_name}</h1> | ||
<div className='trainp_div'> | ||
<p className='trainp'> | ||
Date: {flight.next_date} | ||
</p> | ||
<p className='trainp'> | ||
Time: {flight.flight_time} | ||
</p> | ||
<p className='trainp'> | ||
Cost: {flight.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
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 |
---|---|---|
|
@@ -133,3 +133,4 @@ section.t-bq-section { | |
top: 45px; | ||
} | ||
} | ||
|
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