From a66344462e27780dd4fe561be317457895535f82 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Thu, 5 May 2022 11:57:48 -0600 Subject: [PATCH] update landing page --- src/lib/src/main/resources/swagger/index.css | 21 ++++++++++++++++-- src/lib/src/main/resources/swagger/index.html | 22 +++++++++---------- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/lib/src/main/resources/swagger/index.css b/src/lib/src/main/resources/swagger/index.css index 65654e1..b514b93 100644 --- a/src/lib/src/main/resources/swagger/index.css +++ b/src/lib/src/main/resources/swagger/index.css @@ -12,7 +12,7 @@ body { } #swagger-ui { - padding-top: 1em; + padding-top: 2em; padding-bottom: 50px; } @@ -74,8 +74,25 @@ body { /* ---- Disclaimer ---- */ +.wrapper { + box-sizing: border-box; + margin: 0 auto; + max-width: 1460px; + padding: 0 20px; + width: 100%; +} + +@media only screen and (max-width: 1000px) { + .alert { + line-height: 1.1 !important; + font-size: 10px !important; + } +} + .alert { - background-color: #fdf7dc; + background-color: #fff3cd; + border-color: #ffecb5; + box-shadow: 0 3px 1px -2px #0003, 0 2px 2px #00000024, 0 1px 5px #0000001f; line-height: 1.5; margin: 1em 1em 0 1em; overflow: hidden; diff --git a/src/lib/src/main/resources/swagger/index.html b/src/lib/src/main/resources/swagger/index.html index 625663f..9625e8d 100644 --- a/src/lib/src/main/resources/swagger/index.html +++ b/src/lib/src/main/resources/swagger/index.html @@ -35,21 +35,21 @@ </div> </header> - <div class="alert" role="alert"> - This software is preliminary or provisional and is subject to revision. - It is being provided to meet the need for timely best science. - The software has not received final approval by the U.S. Geological Survey (USGS). - No warranty, expressed or implied, is made by the USGS or the U.S. Government as to - the functionality of the software and related material nor shall the fact of release - constitute any such warranty. The software is provided on the condition that neither - the USGS nor the U.S. Government shall be held liable for any damages resulting from - the authorized or unauthorized use of the software. + <div class="wrapper"> + <div class="alert" role="alert"> + This software is preliminary or provisional and is subject to revision. + It is being provided to meet the need for timely best science. + The software has not received final approval by the U.S. Geological Survey (USGS). + No warranty, expressed or implied, is made by the USGS or the U.S. Government as to + the functionality of the software and related material nor shall the fact of release + constitute any such warranty. The software is provided on the condition that neither + the USGS nor the U.S. Government shall be held liable for any damages resulting from + the authorized or unauthorized use of the software. + </div> </div> <div id="swagger-ui"></div> - - <footer class="nshmp-template-footer"> <a href="https://code.usgs.gov/ghsc/nshmp/nshmp-ws-static/-/blob/main/LICENSE.md"> License -- GitLab