Skip to content

Commit

Permalink
homepage 2.0 announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed May 6, 2020
1 parent 41f9834 commit 6d21b6c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
15 changes: 12 additions & 3 deletions site/src/components/landing-page/landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ landing-page {
}

.announcement {
position: relative;
top: 60px;

a {
text-decoration: none;
color: #fff;
Expand Down Expand Up @@ -52,7 +55,7 @@ landing-page {
font-weight: 800;
padding: 2px 6px;
border-radius: 100px;
flex: 0 0 38px;
flex: 0 0 70px;
text-align: center;
}
.message {
Expand All @@ -66,7 +69,7 @@ landing-page {
color: $color-yellow;
font-weight: 600;
padding-right: 4px;
flex: 0 0 76px;
flex: 0 0 94px;
}
.icon {
fill: $color-yellow;
Expand All @@ -76,9 +79,15 @@ landing-page {
margin-left: 2px;
}

@media screen and (max-width: $breakpoint-lg) {
top: 20px;
}

@media screen and (max-width: $breakpoint-md) {
max-width: 100%;
padding: 0;
top: 0;

a {
display: flex;
width: 100%;
Expand All @@ -89,7 +98,7 @@ landing-page {
flex: 1;
}
.cta {
flex: 0 0 70px;
flex: 0 0 94px;
padding-right: 0;
}
}
Expand Down
12 changes: 12 additions & 0 deletions site/src/components/landing-page/landing-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ export class LandingPage {

render() {
return [
<div class="announcement container">
<stencil-route-link url="/blog/" >
<span class="pill">Live demo</span>
<span class="message">
Capacitor 2.0 features and capabilities
</span>
<span class="cta">
Register Now
<app-icon name="caret-right"></app-icon>
</span>
</stencil-route-link>
</div>,
<div class="container">
<section class="hero">
<hgroup>
Expand Down

0 comments on commit 6d21b6c

Please sign in to comment.