diff --git a/backend/app/views.py b/backend/app/views.py index 95d0124..6742358 100644 --- a/backend/app/views.py +++ b/backend/app/views.py @@ -23,7 +23,7 @@ 'component_name': 'ExampleId' } """ -from django.shortcuts import render, redirect +from django.shortcuts import render def index(request): @@ -31,14 +31,14 @@ def index(request): Home page """ - _context = { + context = { 'page_metadata': { 'title': 'Home page' }, 'component_name': 'Home' } - return redirect("/competitiveness") + return render(request, 'index.html', context) def competitiveness(request): diff --git a/frontend/components/Home.js b/frontend/components/Home.js index e382c17..1e06884 100644 --- a/frontend/components/Home.js +++ b/frontend/components/Home.js @@ -1,10 +1,39 @@ import React from "react"; +import "../scss/home.scss"; +import homepage_pic from "./homepage_pic.jpg"; const Home = () => { return ( - <> -

Hello world!

- +
+
+

Data Driven Democracy

+

Spring 2024 Cohort

+

+ Mapping India's 2024 Elections "Data-Driven Democracy" is a project designed to + illuminate the complexities of India's electoral process through the lens of + digital humanities, aligning closely with the DH goals of interdisciplinary + research and innovative public scholarship. At the heart of this initiative is a + collaboration between MIT's UROP students and Indian journalists, aimed at + developing a dynamic website that presents real-time election data, opinion + polls, and demographic analyses in an accessible, visual format. This project + not only seeks to demystify the vast electoral landscape of the world's largest + democracy but also to engage UROP students in the practical application of + digital tools and methodologies in social sciences research. By integrating data + visualization, statistical analysis, and digital mapping, students will gain + hands-on experience in translating complex datasets into compelling, + user-friendly narratives. +

+

+ This website contains sample mapping and graphical depictions of data from + three different datasources from the Ashoka University Trivedi Centre for + Political Data, the Election Commission of India, and the Lokniti: Programme + for Competitive Democracy. +

+
+
+ Data Driven Democracy Image +
+
); }; diff --git a/frontend/components/global/Nav.js b/frontend/components/global/Nav.js index b7fc4f6..ef51656 100644 --- a/frontend/components/global/Nav.js +++ b/frontend/components/global/Nav.js @@ -7,24 +7,30 @@ const Nav = () => { Data Driven Democracy -