-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI Updates for Port Drayage Web Service (#290)
* UI Updates for Port Drayage Web Service * Final UI updates + Clean up css files + Added comments + Renamed main to landing page + Inspection Tab only available at PORT area
- Loading branch information
1 parent
0ab59fa
commit 5a36e37
Showing
23 changed files
with
695 additions
and
165 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
16 changes: 16 additions & 0 deletions
16
tools/port-drayage-webservice/src/main/java/com/leidos/area/Area.java
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,16 @@ | ||
package com.leidos.area; | ||
|
||
public enum Area { | ||
STAGING_AREA("STAGING_AREA"), | ||
PORT_AREA("PORT_AREA"); | ||
private String name; | ||
|
||
Area(String name){ | ||
this.name =name; | ||
} | ||
|
||
public String getName(){ | ||
return name; | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
tools/port-drayage-webservice/src/main/java/com/leidos/area/AreaBean.java
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,28 @@ | ||
package com.leidos.area; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class AreaBean { | ||
|
||
private Area area; | ||
|
||
/** | ||
* Empty Constructor. | ||
*/ | ||
public AreaBean() { | ||
|
||
} | ||
|
||
public void stagingArea() { | ||
area = Area.STAGING_AREA; | ||
} | ||
|
||
public void portArea() { | ||
area = Area.PORT_AREA; | ||
} | ||
|
||
public Area getArea() { | ||
return area; | ||
} | ||
} |
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
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
99 changes: 99 additions & 0 deletions
99
tools/port-drayage-webservice/src/main/resources/static/css/index.css
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,99 @@ | ||
/* Index Page Style Sheet */ | ||
|
||
/* Navigation bar holds tabs and CARMA-Streets logo*/ | ||
.navigation-bar{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: space-between; | ||
} | ||
/*Overwrite bootstrap nav-tabs class stop tabs from wrapping when screen is resized*/ | ||
.nav-tabs{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
} | ||
.carma-streets-logo{ | ||
width: auto; | ||
max-height: 90px; | ||
} | ||
/* Align icons to bottom of tab */ | ||
.icons{ | ||
max-height:40px; | ||
max-width: 60px; | ||
align-self: flex-end; | ||
} | ||
/* Style individual tabs */ | ||
.tabs{ | ||
display: flex; | ||
clear: both; | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
align-self: center; | ||
width: 100%; | ||
height: 100%; | ||
/* overwrite some of the nav-link styling */ | ||
border: 2px black solid !important; | ||
border-bottom: none !important; | ||
color: lightgray !important; | ||
} | ||
/* Overwrite active tab styling for green backgrould */ | ||
.nav-link.active{ | ||
/* Override bootstrap styling */ | ||
background-color: hsla(120, 100%, 25%, 0.4) !important; | ||
border: 2px black solid !important; | ||
border-bottom: none !important; | ||
color: black !important; | ||
outline: none !important; | ||
box-shadow: none !important; | ||
} | ||
/* Set tab label styling */ | ||
.tab-label{ | ||
align-self: flex-end; | ||
margin-left: 7px; | ||
margin-bottom: 0 !important; | ||
} | ||
/* Overwrite bootstrap badge style for notification badges for tabs */ | ||
.badge { | ||
height: fit-content; | ||
color: black; | ||
} | ||
|
||
/* Styling for Tab Content */ | ||
|
||
/* Add border to bootstrap tab content styling*/ | ||
.tab-content{ | ||
border: 2px black solid; | ||
padding: 10px; | ||
} | ||
/* Overwrite bootstrap jumbotron styling for dialog popup */ | ||
.jumbotron{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
padding: 1rem 1rem !important; | ||
} | ||
/* Left part of dialog popup*/ | ||
.action-dialog-left{ | ||
width: 60%; | ||
height: 100%; | ||
} | ||
/* Right part of dialog popup*/ | ||
.action-dialog-right{ | ||
width: 40%; | ||
color: darkblue; | ||
border: 2px black dashed ; | ||
border-radius: 5px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: xxx-large; | ||
} | ||
/* Clear Actions button styling */ | ||
.clear-button{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
} |
31 changes: 31 additions & 0 deletions
31
tools/port-drayage-webservice/src/main/resources/static/css/landing.css
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,31 @@ | ||
/* Landing Page Style Sheet */ | ||
/* */ | ||
.main-splash{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
} | ||
/* Style CARMA-Streets Description */ | ||
.main-splash-description{ | ||
width: 80%; | ||
} | ||
|
||
/* Style CARMA-Streets Logo */ | ||
.splash-logo{ | ||
width: 60%; | ||
max-height: 45%; | ||
margin-top: 20px; | ||
} | ||
|
||
/* Style container holding area selection buttons */ | ||
.area-select{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
} | ||
/* Style buttons to be the same size */ | ||
.area-select-btn{ | ||
width: 190px; | ||
} |
Oops, something went wrong.