diff --git a/public/_data.json b/public/_data.json index cc7f331656..1232f0a1de 100644 --- a/public/_data.json +++ b/public/_data.json @@ -31,21 +31,5 @@ "presskit": { "title": "Press Kit" - }, - - "books": { - "title": "Books" - }, - - "training": { - "title": "Training" - }, - - "communities": { - "title": "Communities" - }, - - "tooling": { - "title": "Tooling and Libraries" } } diff --git a/public/resources/_data.json b/public/resources/_data.json index 43a2a280be..3fc44bb733 100644 --- a/public/resources/_data.json +++ b/public/resources/_data.json @@ -1,5 +1,5 @@ { "index": { - "title": "Resources" + "title": "Explore Angular Resources" } -} +} \ No newline at end of file diff --git a/public/resources/css/module/_resources.scss b/public/resources/css/module/_resources.scss index 8c29d7a091..01b71ac5f1 100644 --- a/public/resources/css/module/_resources.scss +++ b/public/resources/css/module/_resources.scss @@ -1,100 +1,126 @@ .resources { - .flex { - display: flex; - flex-wrap: wrap; + + .h-affix { + position: fixed; } - .showcase-content { - @media(max-width: 320px) { - padding: 0; + .affix-top { + top: 50px; + } + + .c-resource { + h4 { + margin: 0; + line-height: 24px; + } + + p { margin: 0; } } - - .resource-tabs { - margin: 0; - padding: 0; - list-style: none; + + .c-resource-nav { + margin-top: 48px; + width: $unit * 20; + z-index: $layer-1; + background-color: #fff; + border-radius: 2px; + + a { + color: #373E41; + text-decoration: none; + } + + .category { + padding: 10px 0; + + .category-link { + display: block; + margin: 2px 0; + padding: 3px 14px; + font-size: 18px !important; + + &:hover { + background: #edf0f2; + color: #2B85E7; + } + } + } + + .subcategory { + .subcategory-link { + display: block; + margin: 2px 0; + padding: 4px 14px; + + &:hover { + background: #edf0f2; + color: #2B85E7; + } + } + } + } + + .h-anchor-offset { + display: block; + position: relative; + top: -20px; + visibility: hidden; + } + + .l-flex--column { display: flex; - flex-direction: row-reverse; - - @media(max-width: 500px) { - flex-direction: column-reverse; - } - - .resource-tab { - display: inline; - background-color: #CFD8DC; - padding: $unit (3 * $unit); - border-radius: 2px; - margin-right: 16px; - color: #455A64; - - @media(max-width: 500px) { - margin-right: 0; - margin-bottom: 12px; - } - - &:hover { - cursor: pointer; - background-color: #B0BEC5; - } - - &.selected { - color: #1D77CE; - background-color: #E3F2FB; - font-weight: bold; - } - } + flex-direction: column; } - .subsection { - margin-bottom: 64px; + .c-resource-header { + margin-bottom: 16px; } - .subsection-title { - font-weight: 400; + .c-contribute { + margin-bottom: 24px; } - .card { - display: inline-block; - width: 320px; - margin-right: $unit * 4; - - @media(max-width: 320px) { - margin-right: 0; - width: 275px; - } + .c-resource-header h2 { + margin: 0; } - .title-link { - padding: 0 16px; + .subcategory-title { + padding: 16px 23px; + margin: 0; + background-color: $mist; + color: #373E41; } - .description { - padding-bottom: 32px; - line-height: 21px; + .h-capitalize { + text-transform: capitalize; } - a { - font-size: 16px; + .h-hide { + display: none; + } + + .resource-row-link { color: #1a2326; - - &.card-link { - font-size: 14px; - color: #1D77CE; - } - - &:hover { - color: #1D77CE; - } + border: transparent solid 1px; + margin: 0; + padding: 16px 23px 16px 23px; + position: relative; + text-decoration: none; + transition: all .3s; } - .form a { - color: $regal; + .resource-row-link:hover { + text-decoration: none; + border-color: #2B85E7; + border-radius: 4px; + box-shadow: 0 8px 8px rgba(1, 67, 163, .24), 0 0 8px rgba(1, 67, 163, .12), 0 6px 18px rgba(43, 133, 231, .12); + transform: translate3d(0, -2px, 0); + } + + @media(max-width: 900px) { + .c-resource-nav { + display: none; + } } } - -.capitalize { - text-transform: capitalize !important; -} \ No newline at end of file diff --git a/public/resources/index.ejs b/public/resources/index.ejs index d2a54af0ff..fa4f07bcb8 100644 --- a/public/resources/index.ejs +++ b/public/resources/index.ejs @@ -1,39 +1,27 @@ -
- Would you like to be listed in this page? Fill out this form. -
-{{ resource.desc }}
-No information found. Submit a description by filling out this form.
-