mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-07-24 21:12:27 +00:00
Better mobile styling for top banner (#24)
This commit is contained in:
committed by
GitHub
parent
469518e776
commit
82b20253b2
@@ -6,9 +6,11 @@ import Footer from './footer';
|
||||
|
||||
function Banner({ data }) {
|
||||
return (
|
||||
<Link href={data.link}>
|
||||
<a target="_blank" className="banner">{data.text}</a>
|
||||
</Link>
|
||||
<div className="banner">
|
||||
<Link href={data.link}>
|
||||
<a target="_blank" className="wrap">{data.text}</a>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -11,10 +11,10 @@ latest:
|
||||
- Sign up <a href="https://jambonz.us/register" target="_blank">here</a> for your free development account,
|
||||
- and <a href="https://www.telecomsxchange.com/jambonz" target="_blank">visit our partner TelecomXChange</a> for $20 free credit!
|
||||
-
|
||||
active: false
|
||||
label: econnect
|
||||
headline: jambonz will be at Enterprise Connect 2021
|
||||
subtext: Ping us at <a href="mailto:sales@jambonz.org" target="_blank">sales@jambonz.org</a> to set up a meeting!
|
||||
active: false
|
||||
label: econnect
|
||||
headline: jambonz will be at Enterprise Connect 2021
|
||||
subtext: Ping us at <a href="mailto:sales@jambonz.org" target="_blank">sales@jambonz.org</a> to set up a meeting!
|
||||
-
|
||||
active: true
|
||||
label: aws
|
||||
|
||||
+12
-5
@@ -36,19 +36,26 @@
|
||||
*******************************************************************************/
|
||||
.banner {
|
||||
@include flex-cols();
|
||||
@include ms();
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
color: $white;
|
||||
background: $jambonz;
|
||||
font-family: $font-medium;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: $navi-index + 1;
|
||||
text-align: center;
|
||||
|
||||
@media (max-width: $width-mobile) {
|
||||
@include mxs();
|
||||
a {
|
||||
@include ms();
|
||||
color: $white;
|
||||
font-family: $font-medium;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@media (max-width: $width-mobile) {
|
||||
@include mxs();
|
||||
}
|
||||
}
|
||||
|
||||
// Effects .navi @see _navi.scss
|
||||
|
||||
Reference in New Issue
Block a user