Here is the code for the HTML structure and JavaScript functionality to display the Emmy Awards nominees list:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Emmy Awards Nominees List</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 40px auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.section > div {
width: calc(33.33% - 10px);
margin: 10px;
padding: 10px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.section > div:hover {
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<div class="header">Emmy Awards Nominees List</div>
<div class="section">
<h2>Cat</h2>
<ul>
<!-- Add Emmy Awards nominees list for each category -->
<li>For Outstanding Drama Series: The Crown, House of the Dragon, Obi-Wan Kenobi and The Last of Us</li>
<li>For Outstanding Comedy Series: Abbott Elementary, A Black Lady Sketch Show, Better Things, Hacks, Only Murders in the Building and The Bear</li>
<!-- Add more nominees for each category -->
</ul>
</div>
<div class="section">
<h2>Cat</h2>
<ul>
<!-- Add Emmy Awards nominees list for each category -->
<li>For Outstanding Limited or Anthology Series: A Man Who Killed His Brother, The White Lotus and The Bear</li>
<li>For Outstanding Documentary or Nonfiction Special: A Haunting in Salem, All My Friends Hate Me and The Case of Richard Jewell</li>
<!-- Add more nominees for each category -->
</ul>
</div>
<!-- Continue adding categories and nominees as needed -->
<script>
// Function to generate a random image from an array
function getRandomImage(images) {
return images[Math.floor(Math.random() * images.length)];
}
// Example usage:
var images = [
'https://picsum.photos/200',
'https://picsum.photos/300',
'https://picsum.photos/400'
];
var randomImage = getRandomImage(images);
document.body.style.backgroundImage = `url(${randomImage})`;
</script>
</div>
</body>
</html>
```
Note that this code is just an example and you will need to replace the nominees lists with actual Emmy Awards nominees. Also, the JavaScript functionality at the end of the file generates a random image from an array, but it's not related to the Emmy Awards nominees list.
You can add more categories and nominees by adding more `<ul>` sections inside the `.section` elements, and updating the HTML structure accordingly. You can also use JavaScript to dynamically generate the nominees lists, for example, using API calls or data storage solutions like Firebase or MongoDB.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Emmy Awards Nominees List</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 40px auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.section > div {
width: calc(33.33% - 10px);
margin: 10px;
padding: 10px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.section > div:hover {
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<div class="header">Emmy Awards Nominees List</div>
<div class="section">
<h2>Cat</h2>
<ul>
<!-- Add Emmy Awards nominees list for each category -->
<li>For Outstanding Drama Series: The Crown, House of the Dragon, Obi-Wan Kenobi and The Last of Us</li>
<li>For Outstanding Comedy Series: Abbott Elementary, A Black Lady Sketch Show, Better Things, Hacks, Only Murders in the Building and The Bear</li>
<!-- Add more nominees for each category -->
</ul>
</div>
<div class="section">
<h2>Cat</h2>
<ul>
<!-- Add Emmy Awards nominees list for each category -->
<li>For Outstanding Limited or Anthology Series: A Man Who Killed His Brother, The White Lotus and The Bear</li>
<li>For Outstanding Documentary or Nonfiction Special: A Haunting in Salem, All My Friends Hate Me and The Case of Richard Jewell</li>
<!-- Add more nominees for each category -->
</ul>
</div>
<!-- Continue adding categories and nominees as needed -->
<script>
// Function to generate a random image from an array
function getRandomImage(images) {
return images[Math.floor(Math.random() * images.length)];
}
// Example usage:
var images = [
'https://picsum.photos/200',
'https://picsum.photos/300',
'https://picsum.photos/400'
];
var randomImage = getRandomImage(images);
document.body.style.backgroundImage = `url(${randomImage})`;
</script>
</div>
</body>
</html>
```
Note that this code is just an example and you will need to replace the nominees lists with actual Emmy Awards nominees. Also, the JavaScript functionality at the end of the file generates a random image from an array, but it's not related to the Emmy Awards nominees list.
You can add more categories and nominees by adding more `<ul>` sections inside the `.section` elements, and updating the HTML structure accordingly. You can also use JavaScript to dynamically generate the nominees lists, for example, using API calls or data storage solutions like Firebase or MongoDB.