-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add survey to nav bar #2184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add survey to nav bar #2184
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,7 @@ | |
| <a class="nav-link" href="/2.18/api/" role="tab" aria-selected="">Keras 2 API documentation</a> | ||
| <a class="nav-link" href="/keras_tuner/" role="tab" aria-selected="">KerasTuner: Hyperparam Tuning</a> | ||
| <a class="nav-link" href="/keras_hub/" role="tab" aria-selected="">KerasHub: Pretrained Models</a> | ||
| <a class="nav-link" href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC" role="tab" aria-selected="" style="color:blue;">2025 Survey</a> | ||
| </div> | ||
| </div> | ||
| <a href="/"> | ||
|
|
@@ -121,6 +122,7 @@ | |
| <li class="nav__item"><a class="nav__link" href="/keras_tuner/">KERAS TUNER</a></li> | ||
| <li class="nav__item"><a class="nav__link" href="/keras_rs/">KERAS RS</a></li> | ||
| <li class="nav__item"><a class="nav__link" href="/keras_hub/">KERAS HUB</a></li> | ||
| <li class="nav__item"><a class="nav__link" href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC" style="color:blue;">2025 SURVEY</a></li> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous comment, this line has a hardcoded URL and an inline style.
|
||
| </ul> | ||
|
|
||
| <form class="nav__search"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -127,6 +127,7 @@ | |||||
| <a class="nav-link" href="/2.18/api/" role="tab" aria-selected="">Keras 2 API documentation</a> | ||||||
| <a class="nav-link" href="/keras_tuner/" role="tab" aria-selected="">KerasTuner: Hyperparam Tuning</a> | ||||||
| <a class="nav-link" href="/keras_hub/" role="tab" aria-selected="">KerasHub: Pretrained Models</a> | ||||||
| <a class="nav-link" href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC" role="tab" aria-selected="">Take Our Survey!</a> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
| </div> | ||||||
| </div> | ||||||
| <a href="/"> | ||||||
|
|
@@ -149,6 +150,7 @@ | |||||
| <li class="nav__item"><a class="nav__link" href="/keras_tuner/">KERAS TUNER</a></li> | ||||||
| <li class="nav__item"><a class="nav__link" href="/keras_rs/">KERAS RS</a></li> | ||||||
| <li class="nav__item"><a class="nav__link" href="/keras_hub/">KERAS HUB</a></li> | ||||||
| <li class="nav__item"><a class="nav__link" href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC" style="color:blue;">2025 SURVEY</a></li> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line contains a hardcoded URL and an inline style, which should be addressed.
Suggested change
|
||||||
| </ul> | ||||||
|
|
||||||
| <form class="nav__search"> | ||||||
|
|
@@ -170,7 +172,7 @@ | |||||
| <div class="hero"> | ||||||
| <div class="hero__content--wrapper"> | ||||||
| <div class="hero__content"> | ||||||
| <a class="button__round" href="/keras_3/">KERAS 3.0 RELEASED</a> | ||||||
| <a class="button__round" href="https://google.qualtrics.com/jfe/form/SV_5psTvNYQKv2mAwC">TAKE OUR SURVEY!</a> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
|
|
||||||
| <h1 class="hero__title text--white">A superpower for ML developers</h1> | ||||||
|
|
||||||
|
|
@@ -698,4 +700,4 @@ <h2 class="contacts__title text--white">Contributions welcome!</h2> | |||||
| <script src="./js/prism.min.js"></script> | ||||||
| <script src="./js/prism-python.min.js"></script> | ||||||
| </body> | ||||||
| </html> | ||||||
| </html> | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line has two areas for improvement:
Hardcoded URL: The survey URL is hardcoded. Since this URL is used in multiple files, it's best to define it as a Jinja variable (e.g.,
survey_url) and reuse it. This will make future updates much easier.Inline CSS: Using
style="color:blue;"is not ideal for maintainability. It's better practice to move this styling to a CSS file. You could create a new class, for example.nav__link--highlight, in your CSS and apply it to the link.Here's a suggested change that addresses the inline style. Please also address the hardcoded URL by defining and using a variable.