navbar, login refinements

This commit is contained in:
2024-03-15 08:39:22 -05:00
parent 61b6dc8a35
commit 58c870ce7c
6 changed files with 131 additions and 138 deletions

View File

@@ -14,6 +14,7 @@
*= require_tree . *= require_tree .
*= require_self *= require_self
*/ */
@import url("/font/helvetica-now/stylesheet.css");
@font-face { @font-face {
font-family: "MuseoSansRounded100Regular"; font-family: "MuseoSansRounded100Regular";
src: url("https://teamsnap-ui.teamsnap.com/assets/fonts/museo/MuseoSansRounded-100-webfont.eot"); src: url("https://teamsnap-ui.teamsnap.com/assets/fonts/museo/MuseoSansRounded-100-webfont.eot");
@@ -6908,12 +6909,46 @@ input:-webkit-autofill:focus {
background-color: #d6d6d6; background-color: #d6d6d6;
} }
header.Header { header {
background: #323669; background: #323669;
padding: 8px 0; padding: 8px 0;
box-shadow: 0 4px 0 rgba(0, 0, 25, 0.1); box-shadow: 0 4px 0 rgba(0, 0, 25, 0.1);
border-bottom: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6;
color: white; color: white;
text-decoration: none;
}
header .Header-banner {
display: flex;
justify-content: center;
}
header .filler {
flex-grow: 1;
}
header :has(> .Header-bannerLogo):has(> .Header-bannerTitle) {
display: inline-flex;
}
header .Header-bannerLogo, header .Header-bannerTitle {
margin: 0;
padding: 0;
margin-left: 0.5em;
}
header .Header-bannerLogo img {
height: 36px;
width: auto;
}
header .Header-bannerTitle {
font-family: "Helvetica", sans-serif;
text-transform: uppercase;
font-weight: bold;
text-align: left;
color: white;
font-size: 28px;
}
.btn--Full {
display: block;
width: 100%;
text-align: center;
} }
body { body {
@@ -6970,44 +7005,10 @@ body {
text-align: center; text-align: center;
} }
.Header-bannerLogo, .Header-bannerTitle {
margin: 0;
padding: 0;
margin-left: 0.5em;
}
.Header-bannerLogo img {
height: 36px;
width: auto;
}
.Header-bannerTitle {
font-family: "Helvetica", sans-serif;
text-transform: uppercase;
font-weight: bold;
text-align: left;
color: white;
font-size: 28px;
}
.benchcoach-nav {
background-color: #323669;
margin-bottom: 2em;
padding: 0.5em;
color: white;
}
a.Panel-row { a.Panel-row {
color: inherit; color: inherit;
} }
.benchcoach-nav h3 {
font-family: "Helvetica", sans-serif;
font-weight: bolder;
color: white;
text-transform: uppercase;
}
.lineup-slot .Panel-cell { .lineup-slot .Panel-cell {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;

File diff suppressed because one or more lines are too long

View File

@@ -15,6 +15,7 @@
*/ */
@import "../../node_modules/@teamsnap/teamsnap-ui/src/css/teamsnap-ui.scss"; @import "../../node_modules/@teamsnap/teamsnap-ui/src/css/teamsnap-ui.scss";
@import url('/font/helvetica-now/stylesheet.css');
$color-success: #b7e1cd; $color-success: #b7e1cd;
@@ -62,12 +63,54 @@ $monospace-font: "Inconsolata", monospace;
} }
} }
header.Header { header {
background: #323669; background: #323669;
padding: 8px 0; padding: 8px 0;
// margin: 0 0 16px 0;
box-shadow: 0 4px 0 rgba(0, 0, 25, 0.1); box-shadow: 0 4px 0 rgba(0, 0, 25, 0.1);
border-bottom: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6;
color: white; color: white;
text-decoration: none;
.Header-banner {
display: flex;
justify-content: center;
}
.filler {
flex-grow:1,
}
:has(>.Header-bannerLogo):has(>.Header-bannerTitle) {
display: inline-flex
}
.Header-bannerLogo, .Header-bannerTitle {
margin: 0;
padding: 0;
margin-left: 0.5em;
}
.Header-bannerLogo img {
height: 36px;
width: auto;
}
.Header-bannerTitle {
font-family: "Helvetica", sans-serif;
text-transform: uppercase;
font-weight: bold;
text-align: left;
color: white;
font-size: 28px;
}
}
.btn--Full {
display: block;
width: 100%;
text-align: center;
} }
body { body {
@@ -137,44 +180,10 @@ body {
text-align: center; text-align: center;
} }
.Header-bannerLogo, .Header-bannerTitle {
margin: 0;
padding: 0;
margin-left: 0.5em;
}
.Header-bannerLogo img {
height: 36px;
width: auto;
}
.Header-bannerTitle {
font-family: "Helvetica", sans-serif;
text-transform: uppercase;
font-weight: bold;
text-align: left;
color: white;
font-size: 28px;
}
.benchcoach-nav {
background-color: #323669;
margin-bottom: 2em;
padding: 0.5em;
color: white;
}
a.Panel-row { a.Panel-row {
color: inherit; color: inherit;
} }
.benchcoach-nav h3 {
font-family: "Helvetica", sans-serif;
font-weight: bolder;
color: white;
text-transform: uppercase;
}
.lineup-slot .Panel-cell { .lineup-slot .Panel-cell {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="/css/application.css"> <link rel="stylesheet" href="/css/application.css">
{{#if style}}<link rel="stylesheet" href="/css/{{style}}">{{/if}} {{#if style}}<link rel="stylesheet" href="/css/{{style}}">{{/if}}
<title>{{#if title}}{{title}}{{else}}BenchCoach{{/if}}</title> <title>{{#if title}}{{title}}{{else}}BenchCoach{{/if}}</title>
@@ -19,13 +20,13 @@
</script> </script>
</head> </head>
<body class="bg-light"> <body>
<header class="Header"> <header>
{{> navbar }} {{> navbar }}
{{{_sections.header}}} {{{_sections.header}}}
</header> </header>
<div class="u-padSidesMd u-xs-padSidesLg"> <div class="u-padSidesMd u-xs-padSidesLg">
<div class="u-max1200 u-flexExpandSides u-xs-size5of6 u-sm-size2of3 u-md-sizeFull u-padBottomMd u-xs-padEndsLg u-sm-padEndsXl"> <div class="u-max1200 u-flexExpandSides u-xs-size5of6 u-sm-size2of3 u-md-sizeFull u-padEndsLg u-sm-padEndsXl">
{{{ body }}} {{{ body }}}
</div> </div>
</div> </div>

View File

@@ -1,27 +1,10 @@
<div class="Grid Grid--fit Grid--withGutter u-max1200 u-flexExpandSides u-xs-size5of6 u-sm-size2of3 u-md-sizeFull u-padBottomMd u-xs-padEndsLg u-sm-padEndsXl"> <div class="Panel u-maxWidthXs u-padLg u-spaceSidesAuto">
<div class="Grid-cell u-size5of12"> <h1 class="u-textCenter">Sign in</h1>
<div class="Panel u-padLg u-spaceSidesAuto"> <p class="u-spaceEndsMd">Sign into BenchCoach using your TeamSnap account</p>
<h1 class="u-spaceSidesAuto u-spaceBottomLg">Sign in</h1> <a class="Button Button--large Button--orange u-spaceSidesAuto btn--Full" href="/login/federated/teamsnap">
<div>
<a class="Button Button--large Button--orange u-spaceSidesAuto" href="/login/federated/teamsnap">
{{{embeddedSvgFromPath "/media/teamsnap_star.svg"}}} {{{embeddedSvgFromPath "/media/teamsnap_star.svg"}}}
<span>TeamSnap</span> <span>TeamSnap</span>
</a> </a>
</div>
</div>
</div>
<div class="Grid-cell u-size7of12 u-textCenter">
<h1>
<img src="/media/benchcoach.svg" style="width: 2.5em;">
</h1>
<h1>
<strong>
Welcome to
<span class="text-nowrap">BenchCoach</span>
</strong>
</h1>
<div class="lead fst-italic fw-light">
An assistant coach for TeamSnap
</div>
</div>
</div> </div>

View File

@@ -1,13 +1,15 @@
<div class="Header-container Grid u-flexAlignItemsCenter"> <div class="Header-banner">
<div class="Grid-cell u-sizeFill"> <a href="/" class="">
<div class="Header-banner Grid u-flexAlignItemsCenter">
<a href="/" class="Grid-cell u-sizeFit u-flexInline u-flexAlignItemsCenter u-textDecorationNone">
<div class="Header-bannerLogo"> <div class="Header-bannerLogo">
<img class="logo" src="/media/benchcoach.svg" alt="BenchCoach Logo"> <img class="logo" src="/media/benchcoach.svg" alt="BenchCoach Logo">
</div> </div>
<div class="Header-bannerTitle">
BenchCoach
</div>
</a> </a>
<div class="Grid-cell u-flexInline u-flexJustifyEnd u-sizeFill u-padSidesSm">
{{#if user}} {{#if user}}
<div class="filler"></div>
<div class="u-padSidesSm u-spaceAuto">
<div class="Popup"> <div class="Popup">
<div class="Button Button--small Popup-toggle" onclick="this.closest('.Popup').querySelector('.Popup-container').classList.toggle('is-open')"> <div class="Button Button--small Popup-toggle" onclick="this.closest('.Popup').querySelector('.Popup-container').classList.toggle('is-open')">
Account Account
@@ -31,10 +33,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
{{/if}} {{/if}}
</div>
</div>
</div>
</div> </div>