Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Basic css changes, and added inference card under graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
JayMuppidi committed Apr 22, 2024
1 parent 05ba811 commit b29d4fb
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 27 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,12 @@
});
</script>
</div>

<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>
<button onclick="window.location.href = 'vis2.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">Go
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; margin-bottom:30px">Go
to Word Cloud - Most Winning Teams</button>
</div>

Expand Down
55 changes: 41 additions & 14 deletions static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@
font-style: normal;
}

body {
/* removing default margin */
margin: 0;
padding: 0;
overflow: auto;
font-family: 'Anton', sans-serif;
}


#main_div {
/* main background div */
background-color: #e9f1ed;
justify-content: center;
/* justify-content: center; */
align-items: center;
padding: 20px;
overflow: auto;
Expand Down Expand Up @@ -45,19 +39,24 @@ body {

.graph_titles {
display: flex;
font-size: 59px;

text-align: center;
/* position: relative; */
align-items: center;
justify-content: center;
margin-top: 100px;
margin-top: 50px;

/* font family to cursive */
font-family: "Permanent Marker", cursive;
font-weight: 400;
font-size: 59px;
font-style: normal;
}

body {
width: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
#choropleth {
/* for the choropleth */
display: flex;
Expand All @@ -72,9 +71,6 @@ body {
align-items: center;
justify-content: center;

/* border work */
border: 7px dashed rgb(172, 172, 255);
border-radius: 20px;
}

#bar_race_chart {
Expand All @@ -93,6 +89,37 @@ svg {
height: auto;
border-width: 10px;
}
.inference-card {
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
margin-top: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inference-title {


text-align: center;
/* position: relative; */

justify-content: center;

/* font family to cursive */
font-family: "Permanent Marker", cursive;
font-weight: 400;
font-size: 59px;
font-style: normal;
}

.inference-text {
font-size: 24px;
font-family: "Permanent Marker", cursive;
font-weight: 400;
font-style: normal;
}

.tooltip {
color: black;
Expand Down
9 changes: 6 additions & 3 deletions vis2.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@
</button>
</div>


<div id="word_cloud">
<!-- Adding an image in the center, taking up most of the screen size and responsive -->
<img id="wordcloud_image" src="./static/wordclouds/WCWinners_wordcloud1.jpg"
style="width: 100%; height: auto;">
</div>

<div>
<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>
<!-- Button to go to another page -->
<button onclick="window.location.href = 'vis3.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; margin-top: 20px;">
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px;">
Go to Top Goal Scorers (Nations)
</button>
</div>
Expand Down
5 changes: 4 additions & 1 deletion vis3.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
<iframe width="100%" height="733" frameborder="0"
src="https://observablehq.com/embed/c7e796558b4c7fe4@3127?cells=viewof+keyframe%2Cchart"></iframe>
</div>

<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>
<button onclick="window.location.href = 'vis4.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">Go
to Zoomable Packing</button>
Expand Down
12 changes: 7 additions & 5 deletions vis4.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@
<div id="main_div">
<div id="top_bar">The FIFA Story</div>

<div class="graph_titles">Top Goal Scoring Nations</div>
<div class="graph_titles">Cups Won By Each Continent</div>

<div id="zoomable_packing" height="700">
<iframe width="100%" height="1004" frameborder="0"
src="https://observablehq.com/embed/2ab74b23f1db7fef?cells=chart"></iframe>
<iframe width="100%" height="1103" frameborder="0"
src="https://observablehq.com/embed/c9a4a9d158444ea6@665?cells=chart"></iframe>
</div>
<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>


<button onclick="window.location.href = 'vis5.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">Go
to French Field Analysis</button>
Expand Down
5 changes: 4 additions & 1 deletion vis5.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
<!-- <div id="image_container"></div> -->
<div id="image_container" style="width: 100%; height: 40%;"></div>
</div>

<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>
<div><button onclick="window.location.href = 'vis6.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">Go
to Top 5 World-Class Player comparision</button></div>
Expand Down
5 changes: 4 additions & 1 deletion vis6.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
<iframe width="100%" height="1000" frameborder="0"
src="https://observablehq.com/embed/8c2b7ae25b3c17cd?cells=viewof+watching%2Clegend%2Cchart"></iframe>
</div>

<div class="inference-card">
<h2 class="inference-title">Inference</h2>
<p class="inference-text">This is the inference text for the graph.</p>
</div>
<button onclick="window.location.href = 'vis6.html';"
style="font-size: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">Next</button>
</div>
Expand Down

0 comments on commit b29d4fb

Please sign in to comment.