Skip to content

Commit

Permalink
Change background image for council
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-karlsson committed Mar 23, 2024
1 parent 58508fe commit c0b6425
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Binary file added client/public/images/council-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function App() {
setTopic(topic);
setFoods(foods);

setBackgroundImageURL("");
setBackgroundImageURL("/images/council-background.jpg");

setCurrentView("council");
}
Expand Down
12 changes: 11 additions & 1 deletion client/src/components/Council.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@ import React from "react";

function Council({ options }) {
const { name, topic, foods } = options;
const councilStyle = {
zIndex: 10,
color: "white",
textAlign: "center",
minHeight: "100vh",
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
alignItems: "center",
};

return (
<div>
<div style={councilStyle}>
<h1>Welcome to the council {name}</h1>
<h1>Topic: {topic}</h1>
<h1>Foods: {foods.join(", ")}</h1>
Expand Down
1 change: 0 additions & 1 deletion client/src/components/Overlay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useState, useEffect } from "react";
function Overlay({ isActive, children }) {
const [overlayStyle, setOverlayStyle] = useState({});

// Update overlay styles when visible prop changes
useEffect(() => {
if (isActive) {
setOverlayStyle({
Expand Down

0 comments on commit c0b6425

Please sign in to comment.