File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.section {
2- height : 100vh ;
3- border : 1px solid # d1d5db ;
2+ min-height : 100vh ;
3+ display : flex;
4+ align-items : center;
5+ justify-content : center;
6+ width : 100% ;
7+ box-sizing : border-box;
8+ border : 1px solid # d1d5db ;
9+ }
10+
11+ .viz_container {
12+ width : 100% ;
13+ display : grid;
14+ grid-template-columns : repeat (2 , minmax (0 , 1fr ));
15+ align-items : center;
16+ justify-items : center;
17+ gap : 2rem ;
18+ }
19+
20+ .viz_container .paragraph {
21+ display : flex;
22+ flex-direction : column;
23+ gap : 10px ;
24+ align-items : center;
25+ justify-content : center;
26+ text-align : center;
27+ min-height : 100% ;
28+ }
29+
30+ .viz_container .paragraph p {
31+ max-width : 60ch ;
32+ }
33+
34+ .viz_container .paragraph h2 {
35+ margin-bottom : 1rem ;
36+ text-align : left;
37+ margin : 0 ;
38+ width : 100% ;
39+ }
40+
41+ .viz_container .widget {
42+ justify-self : center;
443}
544
645footer {
7- height : 5% ;
46+ height : 5% ;
47+ }
48+
49+ .widget {
50+ border : 1px solid # 000 ; /* width + style + color */
51+ border-radius : 10px ;
52+ position : relative;
53+ width : 100% ;
54+ max-width : 500px ;
55+ height : 500px ;
56+ box-sizing : border-box;
57+ background-color : white;
58+ border-radius : 20px ;
59+ overflow : hidden;
60+ display : flex;
61+ align-items : center;
62+ justify-content : center;
63+ }
64+
65+ .interactive-svg {
66+ width : 80% ;
67+ transition : transform 0.3s ease;
68+ }
69+
70+ .hover-circle {
71+ fill : # 3498db ;
72+ cursor : pointer;
73+ transition : fill 0.3s ease;
74+ }
75+
76+ .hover-circle : hover {
77+ fill : # e74c3c ;
78+ }
79+
80+ .fullscreen-btn {
81+ position : absolute;
82+ top : 15px ;
83+ right : 15px ;
84+ background : white;
85+ border : none;
86+ border-radius : 50% ;
87+ padding : 8px ;
88+ cursor : pointer;
89+ display : flex;
890}
991
1092.site-footer {
11- min-height : 100px ;
12- display : flex;
13- align-items : center;
14- justify-content : center;
15- padding : 0.75rem 1rem ;
16- border-top : 1px solid # e5e7eb ;
17- color : white;
18- font-size : 0.875rem ;
19- background-color : # 282523 ;
20- text-align : center;
93+ min-height : 100px ;
94+ display : flex;
95+ align-items : center;
96+ justify-content : center;
97+ padding : 0.75rem 1rem ;
98+ border-top : 1px solid # d1d5db ;
99+ color : white;
100+ font-size : 0.875rem ;
101+ background-color : # 282523 ;
102+ text-align : center;
21103}
22104
23105.site-footer p {
24- margin : 0 ;
106+ margin : 0 ;
107+ }
108+
109+ @media (max-width : 1024px ) {
110+ .viz_container {
111+ grid-template-columns : 1fr ;
112+ }
113+
114+ .widget {
115+ max-width : 100% ;
116+ height : auto;
117+ aspect-ratio : 1 / 1 ;
118+ }
25119}
Original file line number Diff line number Diff line change 1+ # about {
2+ width : 100% ;
3+ height : 100vh ;
4+ background-color : # 282523 ;
5+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import './About.css'
22
33const About : React . FC = ( ) => {
44 return (
5- < div >
5+ < div id = 'about' >
66
77 </ div >
88 )
Original file line number Diff line number Diff line change 11# hero {
2- width : 100 vw ;
2+ width : 100 % ;
33 height : 100vh ;
44 background-color : beige;
5+ }
6+
7+ # hero-container {
8+ display : flex;
9+ align-items : center; /* vertical center */
10+ justify-content : center; /* horizontal center */
11+ height : 100vh
512}
Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ import './Hero.css'
22
33const Hero : React . FC = ( ) => {
44 return (
5- < div id = 'hero' > </ div >
5+ < div id = 'hero' >
6+ < div id = 'hero-container' >
7+ < h1 >
8+ How safe do you think flying is ?
9+ </ h1 >
10+ </ div >
11+ </ div >
612 )
713}
814export default Hero
Original file line number Diff line number Diff line change 11.abstract-container {
22 display : flex;
33 justify-content : center;
4+ align-items : center;
45 width : 100% ;
56 height : 50vh ;
67 padding : 32px 20px ;
Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ const Introduction: React.FC = () => {
44 return (
55 < div className = "abstract-container" >
66 < div className = "abstract" >
7- < h1 > Project of Data Visualization </ h1 >
7+ < h1 > COM-480 : Data Visualization</ h1 >
88 < p >
99 No matter how safe air travel might be, it's always difficult to
1010 completely shake off the feeling of insecurity of flying.
11- </ p >
12- < p >
1311 In an attempt to address these concerns, we aim to provide an
1412 interactive platform to assess the safety of air travel and the
1513 variable risks associated with specific criteria such as routes,
Original file line number Diff line number Diff line change 11# section1 {
2- background-color : whitesmoke;
3- }
2+ background-color : # 2b2927 ;
3+ }
4+
5+ # section1 h2 , # section1 p {
6+ color : white;
7+ }
8+
9+ # section1 .widget h2 {
10+ color : black;
11+ }
12+
Original file line number Diff line number Diff line change @@ -2,10 +2,35 @@ import './Viz1.css'
22
33const Viz1 : React . FC = ( ) => {
44 return (
5- < div id = 'section1' className = 'section' >
6-
5+ < div id = "section1" className = "section" >
6+ < div className = "viz_container" >
7+ < div className = "paragraph" >
8+ < h2 >
9+ VIZ 1
10+ </ h2 >
11+ < p >
12+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
13+ eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
14+ enim ad minim veniam, quis nostrud exercitation ullamco laboris
15+ nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
16+ reprehenderit in voluptate velit esse cillum dolore eu fugiat
17+ nulla pariatur. Excepteur sint occaecat cupidatat non proident,
18+ sunt in culpa qui officia deserunt mollit anim id est laborum.
19+ </ p >
20+ </ div >
21+ < div className = "widget" >
22+ < button className = "fullscreen-btn" aria-label = "Toggle Fullscreen" >
23+ < svg viewBox = "0 0 24 24" width = "20" height = "20" >
24+ < path d = "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" />
25+ </ svg >
26+ </ button >
27+ < h2 >
28+ data visualization will go here
29+ </ h2 >
30+ </ div >
731 </ div >
8- )
32+ </ div >
33+ ) ;
934}
1035
1136export default Viz1
Original file line number Diff line number Diff line change 11# section2 {
2- background-color : gainsboro ;
2+ background-color : # faf9f6 ;
33}
You can’t perform that action at this time.
0 commit comments