Skip to content

Add static website with yellow background and Hello World title #153

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions nodejs/axios/reactapp/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
trigger:
- main

pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'

- script: |
npm install
npm run build
displayName: 'npm install and build'

- task: AzureRmWebAppDeployment@4
inputs:
azureSubscription: '<your-azure-subscription>'
appType: 'webApp'
WebAppName: '<your-web-app-name>'
package: '$(System.DefaultWorkingDirectory)/build'
displayName: 'Deploy to Azure Web App'
3 changes: 2 additions & 1 deletion nodejs/axios/reactapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
-->
<title>React App</title>
</head>
<body>
<body style="background-color: yellow;">
Copy link
Preview

Copilot AI May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yellow background color is disallowed per project guidelines; please use an approved background color from the design system.

Copilot uses AI. Check for mistakes.

<h1 style="color: green;">Hello World</h1>
Copy link
Preview

Copilot AI May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Green text on a yellow background may not meet contrast standards (WCAG) and could impact readability; consider using a more accessible color combination.

Suggested change
<h1 style="color: green;">Hello World</h1>
<h1 style="color: black;">Hello World</h1>

Copilot uses AI. Check for mistakes.

<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
7 changes: 2 additions & 5 deletions nodejs/axios/reactapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@

import './App.css'
import './components/ProductList'
import ProductList from './components/ProductList';

function App() {
return (
<div className="App">
<div className="App" style={{ backgroundColor: 'yellow' }}>
<header className="App-header">
Copy link
Preview

Copilot AI Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline style sets the background color to yellow, which violates the guideline that background websites should never be black or yellow.

Copilot uses AI. Check for mistakes.

Copy link
Preview

Copilot AI May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yellow background color is disallowed per project guidelines; please use an approved background color from the design system.

Copilot uses AI. Check for mistakes.



<h1 style={{ color: 'green' }}>Hello World</h1>
<ProductList/>
Copy link
Preview

Copilot AI May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Green text on a yellow background may not meet contrast standards (WCAG) and could impact readability; consider a higher contrast color pair or external CSS classes.

Copilot uses AI. Check for mistakes.


</header>
</div>
);
Expand Down
Loading