|
3 | 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
4 | 4 | // |
5 | 5 |
|
6 | | -import Contributing from "./Contributing"; |
7 | | -import Overview from "./Overview"; |
8 | | -import Releasing from "./Releasing"; |
9 | | -import Tools from "./Tools"; |
10 | | -import Using from "./Using"; |
11 | | - |
12 | 6 | import { Metadata } from 'next'; |
13 | 7 |
|
| 8 | +import ProgramDynamicContent from './Content'; |
| 9 | +import Contributing from './Contributing'; |
| 10 | +import Overview from './Overview'; |
| 11 | +import Releasing from './Releasing'; |
| 12 | +import ProgramTabs from './Tabs'; |
| 13 | +import Tools from './Tools'; |
| 14 | +import Using from './Using'; |
| 15 | + |
14 | 16 | export const metadata: Metadata = { |
15 | 17 | title: 'Microsoft\'s Open Source Program', |
16 | 18 | }; |
@@ -58,37 +60,38 @@ export default function Program() { |
58 | 60 | <nav className="wrapper my-6" data-require-javascript="yes" data-javascript-show="immediate"> |
59 | 61 | <div className="col-md-10 col-lg-7 mx-auto"> |
60 | 62 | <div className="tabs__tabs" role="tablist"> |
61 | | - <a className="tabs__tab is-active" role="tab" href="#program-overview" data-tab="program-overview">Overview</a> |
62 | | - <a className="tabs__tab" role="tab" href="#program-tools" data-tab="program-tools">Tools & resources</a> |
63 | | - <a className="tabs__tab" role="tab" href="#program-using" data-tab="program-using">Using open source</a> |
64 | | - <a className="tabs__tab" role="tab" href="#program-contributing" data-tab="program-contributing">Contributing</a> |
65 | | - <a className="tabs__tab" role="tab" href="#program-releasing" data-tab="program-releasing">Releasing projects</a> |
| 63 | + <ProgramTabs /> |
66 | 64 | </div> |
67 | 65 | </div> |
68 | 66 | </nav> |
69 | 67 | <div className="wrapper my-6 pt-lg-3 pb-4"> |
70 | | - <div className="col-md-10 col-lg-7 mx-auto"> |
71 | | - <noscript><h2>Overview</h2></noscript> |
72 | | - <div className="tabs__content is-active" data-tab="program-overview"> |
73 | | - <Overview /> |
74 | | - </div> |
75 | | - <div className="tabs__content" data-tab="program-tools"> |
76 | | - <noscript><h2>Tools & resources</h2></noscript> |
77 | | - <Tools /> |
| 68 | + {/* No JavaScript entire set of content */} |
| 69 | + <noscript> |
| 70 | + <div className="col-md-10 col-lg-7 mx-auto"> |
| 71 | + <h2>Overview</h2> |
| 72 | + <div className="tabs__content is-active" data-tab="program-overview"> |
| 73 | + <Overview /> |
| 74 | + </div> |
| 75 | + <div className="tabs__content" data-tab="program-tools"> |
| 76 | + <h2>Tools & resources</h2> |
| 77 | + <Tools /> |
| 78 | + </div> |
| 79 | + <div className="tabs__content" data-tab="program-using"> |
| 80 | + <h2>Using open source</h2> |
| 81 | + <Using /> |
| 82 | + </div> |
| 83 | + <div className="tabs__content" data-tab="program-contributing"> |
| 84 | + <h2>Contributing</h2> |
| 85 | + <Contributing /> |
| 86 | + </div> |
| 87 | + <div className="tabs__content" data-tab="program-releasing"> |
| 88 | + <h2>Releasing projects</h2> |
| 89 | + <Releasing /> |
| 90 | + </div> |
78 | 91 | </div> |
79 | | - <div className="tabs__content" data-tab="program-using"> |
80 | | - <noscript><h2>Using open source</h2></noscript> |
81 | | - <Using /> |
82 | | - </div> |
83 | | - <div className="tabs__content" data-tab="program-contributing"> |
84 | | - <noscript><h2>Contributing</h2></noscript> |
85 | | - <Contributing /> |
86 | | - </div> |
87 | | - <div className="tabs__content" data-tab="program-releasing"> |
88 | | - <noscript><h2>Releasing projects</h2></noscript> |
89 | | - <Releasing /> |
90 | | - </div> |
91 | | - </div> |
| 92 | + </noscript> |
| 93 | + {/* Equivalent content for JavaScript */} |
| 94 | + <ProgramDynamicContent /> |
92 | 95 | </div> |
93 | 96 | </div> |
94 | 97 | </article> |
|
0 commit comments