Skip to content

Commit

Permalink
Menu Styling
Browse files Browse the repository at this point in the history
update margin and padding for course menu
  • Loading branch information
kmcwharter committed Nov 15, 2024
1 parent 6bf336e commit 58553fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body class="flex justify-center items-center h-screen bg-gray-100">
<div id="container" class="grid grid-cols-3 w-full">
<div id="course-list" class="p-4 mt-8 overflow-y-auto z-10"></div>
<div id="course-list" class="p-4 my-4 overflow-y-auto z-10"></div>
<div
id="venn-diagram"
class="fixed top-0 flex w-full justify-center items-center z-0"
Expand Down
7 changes: 3 additions & 4 deletions venn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ function setup() {
area.r = randR[index];
area.color = randColors[index];
});

background(255);
background(200);
renderCourseList();
renderAreas();
plotCourseDots();
}

function draw() {
// Clear the background and redraw areas and highlighted circles
background(255);
background(200);
renderAreas();

// Draw any highlighted circles from the active course
Expand Down Expand Up @@ -129,7 +128,7 @@ function displayDescription(area) {
const descriptionDiv = createDiv()
.parent(descriptionBox)
.addClass(
"description p-2 mb-2 shadow-lg rounded bg-gray-100 bg-opacity-75"
"description p-2 mb-2 shadow-lg rounded bg-gray-300 bg-opacity-50"
);

descriptionDiv.html(`<strong>${area.name}</strong>: ${area.description}`);
Expand Down

0 comments on commit 58553fa

Please sign in to comment.