diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..271a64f Binary files /dev/null and b/.DS_Store differ diff --git a/EvenTofy.pdf b/EvenTofy.pdf index bf8516e..9cdd754 100644 Binary files a/EvenTofy.pdf and b/EvenTofy.pdf differ diff --git a/EvenTofy2 phase 2.pdf b/EvenTofy2 phase 2.pdf new file mode 100644 index 0000000..3bb88de Binary files /dev/null and b/EvenTofy2 phase 2.pdf differ diff --git a/README.md b/README.md index 82ca1f7..ae33f35 100644 --- a/README.md +++ b/README.md @@ -1 +1,25 @@ -# Hack-infinity \ No newline at end of file +# EvenTofy + +#### EvenTofy is a platform for you to organise,plan and schedule all your events,no more hassle of event planning. Event planning can be a stressful process but with EvenTofy you can ensure that your event runs smoothly. Whether it is a formal event, a birthday party or corporate event EvenTofy has everything you need.EevnTofy is a platform which lets you plan and organise your event with ease. + +## Features +* Plan your events +* Manage your events +* Send invitation +* Track replies +* Create schedule + +## How to Use +* Sign up for an account +* Create a new event or view upcoming events +* Add details such as location, date ,time +* Send invites and track RSVPs +* With the help of schedule manage your events + +##Support +#### For any queries or feedback please reach out to us at . Always happy to help! + + +## Conclusion + +#### EvenTofy is a great platform to manage all your big and small celebrations,Why wait? Get Started Today! and experience the convenience. diff --git a/hack_infinity/.DS_Store b/hack_infinity/.DS_Store new file mode 100644 index 0000000..7951d8c Binary files /dev/null and b/hack_infinity/.DS_Store differ diff --git a/hack_infinity/Templates/.DS_Store b/hack_infinity/Templates/.DS_Store new file mode 100644 index 0000000..403f523 Binary files /dev/null and b/hack_infinity/Templates/.DS_Store differ diff --git a/hack_infinity/Templates/.vscode/settings.json b/hack_infinity/Templates/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/hack_infinity/Templates/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/hack_infinity/Templates/LICENSE b/hack_infinity/Templates/LICENSE new file mode 100644 index 0000000..b3f34ca --- /dev/null +++ b/hack_infinity/Templates/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Devvrat Singh Rathod + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/hack_infinity/Templates/README.md b/hack_infinity/Templates/README.md new file mode 100644 index 0000000..82ca1f7 --- /dev/null +++ b/hack_infinity/Templates/README.md @@ -0,0 +1 @@ +# Hack-infinity \ No newline at end of file diff --git a/hack_infinity/Templates/create_event.html b/hack_infinity/Templates/create_event.html new file mode 100644 index 0000000..8e90544 --- /dev/null +++ b/hack_infinity/Templates/create_event.html @@ -0,0 +1,124 @@ + + + + + + + + + + Create event + + + + +
+ +

Create Your events here!

+
+ + +
+ + +
+

Enter flow of events

+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/hack_infinity/Templates/event.css b/hack_infinity/Templates/event.css new file mode 100644 index 0000000..c70b4a3 --- /dev/null +++ b/hack_infinity/Templates/event.css @@ -0,0 +1,178 @@ +*{ + padding:0; + margin:0; +} + +.main-container { + display: grid; + grid-template-rows: 1fr 3fr 3fr 2fr; + height:100vh; +} + +.main-container .container-top { + height: 100%; + position: sticky; + top: 0; + background-image: url(./images/bg2.png) + +} +.main-container .container-top h1{ + height:10vh; + text-align:center; + margin-top: 60px; + margin-bottom: 30px; + font-size: 50px; + font-family: sans-serif; + color: #fff; + + +} +.main-container .container-middle { + height:40vh; + margin-top: 30px; +} +.main-container .container-middle p{ + text-align: center; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + margin-top: 5px; + font-size: 22px; +} +.main-container .container-bottom { + height:20vh; +} +.main-container .container-bottom h2 { + text-align: center; + text-transform: uppercase; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + font-size: 30px; + margin-bottom: 30px; + +} + +.main-container .container-bottom p{ + text-align: center; + margin-top:10vh; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + font-size: 22px; +} +#testimonials{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 100%; + margin-top: 50px; + height: 80%; +} +.main-container .testimonial-heading{ + letter-spacing: 1px; + margin: 30px 0px; + padding: 10px 20px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +.main-container .testimonial-heading h1{ + font-size: 2.2rem; + font-weight: 500; + background-color: #202020; + color: #fff; + padding: 10px 20px; +} +.main-container .testimonial-heading span{ + font-size: 1.3rem; + color: #252525; + margin-bottom: 10px; + letter-spacing: 2px; + text-transform: uppercase; + +} +.main-container .testimonial-box-container{ + display: flex; + justify-content: center; + align-items: center; + flex-wrap: wrap; + width: 100%; +} +.main-container .testimonial-box{ + width: 500px; + margin: 15px; + cursor: pointer; + background-color: #ffffff; + padding: 20px; + box-shadow: 2px 2px 30px rgba(0,0,0,0.1); +} +.main-container .profile-img{ + width: 50px; + height: 50px; + border-radius: 50%; + overflow: hidden; + margin-right: 10px; +} +.main-container .profile-img img{ + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} +.main-container .profile{ + display: flex; + align-items: center; +} +.main-container .name-user{ + display: flex; + flex-direction: column; +} +.main-container .name-user strong{ + color: #3d3d3d; + font-size: 1.1rem; + letter-spacing: 0.5px; +} +.main-container .name-user span{ + color: #979797; + font-size: 0.8rem; + letter-spacing: 0.5px; +} +.main-container .reviews{ + color: #f9d71c; +} +.main-container .box-top{ + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; +} +.main-container .client-comment p{ + color: #4b4b4b; + font-size: 0.9rem; + letter-spacing: 0.5px; + margin-top: 10px; +} +.main-container .testimonial-box:hover{ + transform: translateY(-10px); + transition: all ease 0.3s; +} + + +.main-container .container-end { + height:20vh; + margin-top:10vh; +} +.main-container .container-end i{ + color:#990988; + font-size:30px; + padding: 30px; + margin-left:30vh; +} +.main-container .container-end i:hover{ + color:#3b0235; + transform: translateY(-10px); + transition: all ease 0.3s; +} \ No newline at end of file diff --git a/hack_infinity/Templates/eventofy.html b/hack_infinity/Templates/eventofy.html new file mode 100644 index 0000000..d2e9fbf --- /dev/null +++ b/hack_infinity/Templates/eventofy.html @@ -0,0 +1,356 @@ + + + + + + + + + About us + + + + + + + +
+
+

ABOUT US

+
+
+

EvenTofy is a website which is designed to make event planning a easy process for users. It helps users organize events and schedules. It is an essential tool for your event planning and managing.


+

It is a user-friendly planner for all your big and small events either it be a wedding or a corporate event.


+

Plan all your event with ease!

+
+
+

Our Strategy

+

It is to create a user-friendly website that helps you create event or manage existing event with the help of features such as sending invite,tracking replies and scheduling.


+

It is to meet all your neads so that you dont have to hassel on your big day.

+ +
+
+
+ Comments +

Clients Says

+ +
+
+
+
+
+
+ +
+
+ Rahul Dua + rahuldua@web +
+
+ +
+ + + + + +
+ + +
+
+

"I recently used EvenTofy for a family gathering and it was a game-changer. The app made it so easy to manage all aspects of the event, from sending invitations to tracking RSVPs and creating a schedule. Highly recommend!"

+
+ + +
+
+
+
+
+ +
+
+ Prem Chopra + premchopra@mail +
+
+ +
+ + + + + +
+ + +
+
+

"This app is a must-have for anyone who wants to plan and organize an event. EvenTofy made it so easy to keep everything in one place, and the user-friendly interface made it a breeze to use."

+
+ + +
+
+
+
+
+ +
+
+ Rakesh Patel + rakeshpatel@web +
+
+ +
+ + + + + +
+ + +
+
+

I used EvenTofy for a baby shower and it was amazing. I was able to send out invitations, track RSVPs, and create a schedule all in one place. I would highly recommend this app to anyone planning an event.

+
+ + +
+
+
+
+ +
+
+ Anjali Rai + raianjali@mail +
+
+ +
+ + + + + +
+ + +
+
+

"I was so impressed with EvenTofy for a friend's wedding. The app made it so easy to manage all the details and I was able to keep everything organized. I would definitely use it again for any future events."

+
+ + +
+ +
+ + + + +
+
+ + + + + +
+ + +
+ + + + + \ No newline at end of file diff --git a/hack_infinity/Templates/images/.DS_Store b/hack_infinity/Templates/images/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/hack_infinity/Templates/images/.DS_Store differ diff --git a/hack_infinity/Templates/images/1st.jpeg b/hack_infinity/Templates/images/1st.jpeg new file mode 100644 index 0000000..30bf7b9 Binary files /dev/null and b/hack_infinity/Templates/images/1st.jpeg differ diff --git a/hack_infinity/Templates/images/2nd.jpeg b/hack_infinity/Templates/images/2nd.jpeg new file mode 100644 index 0000000..bec413a Binary files /dev/null and b/hack_infinity/Templates/images/2nd.jpeg differ diff --git a/hack_infinity/Templates/images/3rd.jpeg b/hack_infinity/Templates/images/3rd.jpeg new file mode 100644 index 0000000..9822959 Binary files /dev/null and b/hack_infinity/Templates/images/3rd.jpeg differ diff --git a/hack_infinity/Templates/images/4th.jpeg b/hack_infinity/Templates/images/4th.jpeg new file mode 100644 index 0000000..fd880e3 Binary files /dev/null and b/hack_infinity/Templates/images/4th.jpeg differ diff --git a/hack_infinity/Templates/images/EvenTofy_logo.png b/hack_infinity/Templates/images/EvenTofy_logo.png new file mode 100644 index 0000000..fa7097c Binary files /dev/null and b/hack_infinity/Templates/images/EvenTofy_logo.png differ diff --git a/hack_infinity/Templates/images/WhatsApp Image 2023-02-04 at 1.22.37 AM.jpeg b/hack_infinity/Templates/images/WhatsApp Image 2023-02-04 at 1.22.37 AM.jpeg new file mode 100644 index 0000000..ce7c97e Binary files /dev/null and b/hack_infinity/Templates/images/WhatsApp Image 2023-02-04 at 1.22.37 AM.jpeg differ diff --git a/hack_infinity/Templates/images/bg copy.jpg b/hack_infinity/Templates/images/bg copy.jpg new file mode 100644 index 0000000..361ab5c Binary files /dev/null and b/hack_infinity/Templates/images/bg copy.jpg differ diff --git a/hack_infinity/Templates/images/bg.jpg b/hack_infinity/Templates/images/bg.jpg new file mode 100644 index 0000000..361ab5c Binary files /dev/null and b/hack_infinity/Templates/images/bg.jpg differ diff --git a/hack_infinity/Templates/images/bg2.png b/hack_infinity/Templates/images/bg2.png new file mode 100644 index 0000000..ee9c8ec Binary files /dev/null and b/hack_infinity/Templates/images/bg2.png differ diff --git a/hack_infinity/Templates/images/bg3.jpg b/hack_infinity/Templates/images/bg3.jpg new file mode 100644 index 0000000..27187d5 Binary files /dev/null and b/hack_infinity/Templates/images/bg3.jpg differ diff --git a/hack_infinity/Templates/images/bg4.png b/hack_infinity/Templates/images/bg4.png new file mode 100644 index 0000000..98afd98 Binary files /dev/null and b/hack_infinity/Templates/images/bg4.png differ diff --git a/hack_infinity/Templates/images/bg_final.png b/hack_infinity/Templates/images/bg_final.png new file mode 100644 index 0000000..e2c0a5b Binary files /dev/null and b/hack_infinity/Templates/images/bg_final.png differ diff --git a/hack_infinity/Templates/images/cloud.png b/hack_infinity/Templates/images/cloud.png new file mode 100644 index 0000000..5710f78 Binary files /dev/null and b/hack_infinity/Templates/images/cloud.png differ diff --git a/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png b/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png new file mode 100644 index 0000000..48b6253 Binary files /dev/null and b/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png differ diff --git a/hack_infinity/Templates/images/link.txt b/hack_infinity/Templates/images/link.txt new file mode 100644 index 0000000..6968f0a --- /dev/null +++ b/hack_infinity/Templates/images/link.txt @@ -0,0 +1,11 @@ +https://i.ibb.co/4NVVTKh/1st.jpg +https://i.ibb.co/QvxyJVV/2nd.jpg +https://i.ibb.co/GFMsWqm/3rd.jpg +https://i.ibb.co/F0Z09h4/4th.jpg +https://i.ibb.co/VWdwQHW/bg.jpg +https://i.ibb.co/CBnL9GZ/bg-final.png +https://i.ibb.co/swZsdqk/Even-Tofy-logo.png +https://i.ibb.co/G9YX7R0/logo.png +https://i.ibb.co/QmBxszT/undraw-Login-re-4vu2-removebg-preview.png +https://i.ibb.co/vJZF9dt/undraw-Mobile-login-re-9ntv-removebg-preview.png +https://i.ibb.co/xLMQyWM/Whats-App-Image-2023-02-04-at-1-22-37-AM.jpg \ No newline at end of file diff --git a/hack_infinity/Templates/images/logo copy.png b/hack_infinity/Templates/images/logo copy.png new file mode 100644 index 0000000..c589364 Binary files /dev/null and b/hack_infinity/Templates/images/logo copy.png differ diff --git a/hack_infinity/Templates/images/logo.png b/hack_infinity/Templates/images/logo.png new file mode 100644 index 0000000..c589364 Binary files /dev/null and b/hack_infinity/Templates/images/logo.png differ diff --git a/hack_infinity/Templates/images/mountain.png b/hack_infinity/Templates/images/mountain.png new file mode 100644 index 0000000..e90d87b Binary files /dev/null and b/hack_infinity/Templates/images/mountain.png differ diff --git a/hack_infinity/Templates/images/p1.png b/hack_infinity/Templates/images/p1.png new file mode 100644 index 0000000..f4274a5 Binary files /dev/null and b/hack_infinity/Templates/images/p1.png differ diff --git a/hack_infinity/Templates/images/p2.png b/hack_infinity/Templates/images/p2.png new file mode 100644 index 0000000..edc739e Binary files /dev/null and b/hack_infinity/Templates/images/p2.png differ diff --git a/hack_infinity/Templates/images/p3.png b/hack_infinity/Templates/images/p3.png new file mode 100644 index 0000000..161ff6e Binary files /dev/null and b/hack_infinity/Templates/images/p3.png differ diff --git a/hack_infinity/Templates/images/p4.png b/hack_infinity/Templates/images/p4.png new file mode 100644 index 0000000..3a6e1ab Binary files /dev/null and b/hack_infinity/Templates/images/p4.png differ diff --git a/hack_infinity/Templates/images/pdf2png.png b/hack_infinity/Templates/images/pdf2png.png new file mode 100644 index 0000000..fd4d830 Binary files /dev/null and b/hack_infinity/Templates/images/pdf2png.png differ diff --git a/hack_infinity/Templates/images/start.png b/hack_infinity/Templates/images/start.png new file mode 100644 index 0000000..2296eb1 Binary files /dev/null and b/hack_infinity/Templates/images/start.png differ diff --git a/hack_infinity/Templates/images/undraw_Login_re_4vu2-removebg-preview.png b/hack_infinity/Templates/images/undraw_Login_re_4vu2-removebg-preview.png new file mode 100644 index 0000000..2290ed0 Binary files /dev/null and b/hack_infinity/Templates/images/undraw_Login_re_4vu2-removebg-preview.png differ diff --git a/hack_infinity/Templates/images/undraw_Mobile_login_re_9ntv-removebg-preview.png b/hack_infinity/Templates/images/undraw_Mobile_login_re_9ntv-removebg-preview.png new file mode 100644 index 0000000..64b51a3 Binary files /dev/null and b/hack_infinity/Templates/images/undraw_Mobile_login_re_9ntv-removebg-preview.png differ diff --git a/hack_infinity/Templates/index.html b/hack_infinity/Templates/index.html new file mode 100644 index 0000000..8d250f8 --- /dev/null +++ b/hack_infinity/Templates/index.html @@ -0,0 +1,169 @@ + + + + + + + GetStarted + + + + +
+
+ + \ No newline at end of file diff --git a/hack_infinity/Templates/invite.html b/hack_infinity/Templates/invite.html new file mode 100644 index 0000000..ec568df --- /dev/null +++ b/hack_infinity/Templates/invite.html @@ -0,0 +1,20 @@ + + + + + + + Document + + + + + +
+ + + + +
+ + \ No newline at end of file diff --git a/hack_infinity/Templates/landing_page.html b/hack_infinity/Templates/landing_page.html new file mode 100644 index 0000000..ce08439 --- /dev/null +++ b/hack_infinity/Templates/landing_page.html @@ -0,0 +1,141 @@ + + + + + + + Functions + + + +
+ + +
+
+ +
+ My Event +
+ +
+ + + \ No newline at end of file diff --git a/hack_infinity/Templates/login.html b/hack_infinity/Templates/login.html new file mode 100644 index 0000000..2fb4d20 --- /dev/null +++ b/hack_infinity/Templates/login.html @@ -0,0 +1,89 @@ + + + + + + + Document + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ +
+ logo + +
+ +
+ {% csrf_token %} +

Login to your account

+ +
+ + +
+ +
+ + +
+ +
+ + + Forgot password? +
+ +
+

Don't have an account?

+
+ +
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/hack_infinity/Templates/my_event.html b/hack_infinity/Templates/my_event.html new file mode 100644 index 0000000..e69de29 diff --git a/hack_infinity/Templates/my_invitations.html b/hack_infinity/Templates/my_invitations.html new file mode 100644 index 0000000..12e8dc1 --- /dev/null +++ b/hack_infinity/Templates/my_invitations.html @@ -0,0 +1,120 @@ + + + + + + + + + + Schedule + + + + + + +
+
+

Here is your day

+ +
+ +
+ +
+ +

Here is your schedule

+
+ {% for i in eves %} +
+ + +
+
+ {% endfor %} + + +
+
+
+ + +
+ +
+ + + \ No newline at end of file diff --git a/hack_infinity/Templates/registration.html b/hack_infinity/Templates/registration.html new file mode 100644 index 0000000..3d9501e --- /dev/null +++ b/hack_infinity/Templates/registration.html @@ -0,0 +1,113 @@ + + + + + + + Document + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ +
+ logo + +
+ + +
+ {% csrf_token %} +

Register your account

+
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+

Already have an account?

+
+ +
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/hack_infinity/Templates/rsvp.html b/hack_infinity/Templates/rsvp.html new file mode 100644 index 0000000..e5024b7 --- /dev/null +++ b/hack_infinity/Templates/rsvp.html @@ -0,0 +1,157 @@ + + + + + + + + + + Schedule + + + + + + +
+
+

You are invited by, Username

+ +
+ +
+ +
+

Here is your schedule

+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+
+

Confirm your presence:

+ + + + + + +
+ + +
+ + + + + \ No newline at end of file diff --git a/hack_infinity/Templates/schedule.html b/hack_infinity/Templates/schedule.html new file mode 100644 index 0000000..bc03870 --- /dev/null +++ b/hack_infinity/Templates/schedule.html @@ -0,0 +1,120 @@ + + + + + + + + + + Schedule + + + + +
+ + + + + \ No newline at end of file diff --git a/hack_infinity/Templates/schedule1.html b/hack_infinity/Templates/schedule1.html new file mode 100644 index 0000000..4650246 --- /dev/null +++ b/hack_infinity/Templates/schedule1.html @@ -0,0 +1,121 @@ + + + + + + + + + + Schedule + + + + +
+ +

Here is your day

+ +
+ +
+ +
+

Here is your schedule

+ {% for i in eves %} +
+ + +
+
+ {% endfor %} + + +
+
+
+ + +
+ + + + + +
+
+ +
+ + + \ No newline at end of file diff --git a/hack_infinity/Templates/started.css b/hack_infinity/Templates/started.css new file mode 100644 index 0000000..1e9f5eb --- /dev/null +++ b/hack_infinity/Templates/started.css @@ -0,0 +1,122 @@ +*{ + margin: 0; + padding: 0; +} +body{ + background-image:url(./images/bg.jpg) ; + background-size: cover; + background-position: center; +} + +.main-container { + display: grid; + grid-template-rows: 1fr 3fr 4fr; + height:100h; + background-size: cover; + background-position: center; + margin-bottom: 2rem; + +} +.main-container .navbar{ + height: 75px; + width: 1200px; + margin: auto; + background-size: cover; + background-position: center; +} + + +.about{ + text-align: right; + color: #fff; + font-size: 20px; + font-family: dm sans; + margin-right: 350px; + margin-top: -5rem; + font-weight: bold; +} +.about a{ + text-decoration: none; + color: #fff; + background-color: #000; + padding: 1rem; + border-width: 1px; + padding-left: 1rem; + padding-top: 0.7rem; + padding-bottom: 0.7rem; + padding-right: 1rem; + +} +.about a:hover{ + background-color: #fff; + color: #000; + transition: all 0.5s ease-in-out; +} +.container-bottom{ + display: grid; + grid-template-columns: 1fr 1.5fr; + height: 100%; + width: 1200px; + margin: auto; + background-size: cover; + background-position: center; +} +.start-img{ + height: 100%; + width: 75%; + margin-left: 14rem; + +} +.container-middle{ + text-align: left; + height: 100%; + width: 100%; + margin: auto; + margin-top: 2rem; + font-size: 3rem; + font-family: Itim; + font-weight: bold; + +} +.right{ + font-size: 1.2rem; + font-family:ds sans; + color: #000; + margin-top: rem; + margin-bottom: 1rem; + padding: 1rem; + +} + +.button a{ + background-color: #8F7CF8; + + text-decoration: none; + color: #fff; + padding-left: 1rem; + padding-top: 0.7rem; + padding-bottom: 0.7rem; + padding-right: 1rem; + font-size: 1.2rem; + font-family: dm sans; + font-weight: bold; + margin-right: 30px; +} +.button { + margin-right: 60px; + margin-left: -310px; + margin-top: -5rem; +} +.button a:hover{ + background-color: #c87fd6; + + color: #000; + transition: all 0.5s ease-in-out; +} + +.icon img{ + height: 60px; + width: 150px; + margin-top: 1rem; +} + diff --git a/hack_infinity/Templates/styles.css b/hack_infinity/Templates/styles.css new file mode 100644 index 0000000..6c6b99b --- /dev/null +++ b/hack_infinity/Templates/styles.css @@ -0,0 +1,63 @@ +/* body::before { + display:block; + content:''; + height:60px; +} */ + +@media (min-width: 768px) { + .news-input { + width: 50%; + } +} + +.divider:after, +.divider:before { +content: ""; +flex: 1; +height: 1px; +background: #eee; +} +.h-custom { +height: calc(100% - 73px); +} + +#title-image { + size: 20%; +} + +#left { + width: 50%; + background-color: blue; +} + +.grid-container { + display: grid; + } + + .gradient-custom-2 { + /* fallback for old browsers */ + background: #fccb90; + + /* Chrome 10-25, Safari 5.1-6 */ + background: #d02e9f; + + /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ + background: #e2d9e1; + } + + @media (min-width: 768px) { + .gradient-form { + height: 100vh !important; + } + } + @media (min-width: 769px) { + .gradient-custom-2 { + border-top-right-radius: .3rem; + border-bottom-right-radius: .3rem; + } + } + +#bordersss { + border-radius: rem; + +} \ No newline at end of file diff --git a/hack_infinity/hack_infinity/__init__.py b/hack_infinity/hack_infinity/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hack_infinity/hack_infinity/__pycache__/__init__.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..81eafd6 Binary files /dev/null and b/hack_infinity/hack_infinity/__pycache__/__init__.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000..b5d74a6 Binary files /dev/null and b/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000..306d5ba Binary files /dev/null and b/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000..07cc552 Binary files /dev/null and b/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/asgi.py b/hack_infinity/hack_infinity/asgi.py new file mode 100644 index 0000000..64c734f --- /dev/null +++ b/hack_infinity/hack_infinity/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for hack_infinity project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hack_infinity.settings') + +application = get_asgi_application() diff --git a/hack_infinity/hack_infinity/settings.py b/hack_infinity/hack_infinity/settings.py new file mode 100644 index 0000000..96be5ac --- /dev/null +++ b/hack_infinity/hack_infinity/settings.py @@ -0,0 +1,131 @@ +""" +Django settings for hack_infinity project. + +Generated by 'django-admin startproject' using Django 4.1.6. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.1/ref/settings/ +""" + +from pathlib import Path +import os + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-e_7b*^j0#4$tpr=in_on$$phb*+(4n()d52!bcmo&32+e2ijqx' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'website.apps.WebsiteConfig', + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'hack_infinity.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [os.path.join(BASE_DIR,"Templates")], + # os.path.join(BASE_DIR,"harshita"), + # os.path.join(BASE_DIR,"Khushi"), + # os.path.join(BASE_DIR,"prem")], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'hack_infinity.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'hack_infinity', + 'USER': 'root', + 'PASSWORD':'root', + 'HOST':'localhost' + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.1/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.1/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/hack_infinity/hack_infinity/urls.py b/hack_infinity/hack_infinity/urls.py new file mode 100644 index 0000000..fa0f46d --- /dev/null +++ b/hack_infinity/hack_infinity/urls.py @@ -0,0 +1,22 @@ +"""hack_infinity URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.1/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path,include + +urlpatterns = [ + path('',include('website.urls')), + path('admin/', admin.site.urls), +] diff --git a/hack_infinity/hack_infinity/wsgi.py b/hack_infinity/hack_infinity/wsgi.py new file mode 100644 index 0000000..c1d5f74 --- /dev/null +++ b/hack_infinity/hack_infinity/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for hack_infinity project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hack_infinity.settings') + +application = get_wsgi_application() diff --git a/hack_infinity/manage.py b/hack_infinity/manage.py new file mode 100644 index 0000000..8174423 --- /dev/null +++ b/hack_infinity/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hack_infinity.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/hack_infinity/website/__init__.py b/hack_infinity/website/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hack_infinity/website/__pycache__/__init__.cpython-310.pyc b/hack_infinity/website/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..3e954fb Binary files /dev/null and b/hack_infinity/website/__pycache__/__init__.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/admin.cpython-310.pyc b/hack_infinity/website/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000..361aa3a Binary files /dev/null and b/hack_infinity/website/__pycache__/admin.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/apps.cpython-310.pyc b/hack_infinity/website/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000..564bde2 Binary files /dev/null and b/hack_infinity/website/__pycache__/apps.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/models.cpython-310.pyc b/hack_infinity/website/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000..b701f49 Binary files /dev/null and b/hack_infinity/website/__pycache__/models.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/urls.cpython-310.pyc b/hack_infinity/website/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000..1bcbe31 Binary files /dev/null and b/hack_infinity/website/__pycache__/urls.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/views.cpython-310.pyc b/hack_infinity/website/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000..50240ec Binary files /dev/null and b/hack_infinity/website/__pycache__/views.cpython-310.pyc differ diff --git a/hack_infinity/website/admin.py b/hack_infinity/website/admin.py new file mode 100644 index 0000000..c763e1f --- /dev/null +++ b/hack_infinity/website/admin.py @@ -0,0 +1,7 @@ +from django.contrib import admin +from .models import Invitation,Invitation_confirmation,CreateEventInfo,events +# Register your models here. +admin.site.register(Invitation) +admin.site.register(Invitation_confirmation) +admin.site.register(CreateEventInfo) +admin.site.register(events) diff --git a/hack_infinity/website/apps.py b/hack_infinity/website/apps.py new file mode 100644 index 0000000..77a2163 --- /dev/null +++ b/hack_infinity/website/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class WebsiteConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'website' diff --git a/hack_infinity/website/migrations/0001_initial.py b/hack_infinity/website/migrations/0001_initial.py new file mode 100644 index 0000000..bd28309 --- /dev/null +++ b/hack_infinity/website/migrations/0001_initial.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.6 on 2023-02-03 20:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Name', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=32, verbose_name='user name')), + ('username', models.CharField(max_length=32, verbose_name='username')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0002_remove_name_username.py b/hack_infinity/website/migrations/0002_remove_name_username.py new file mode 100644 index 0000000..40ad704 --- /dev/null +++ b/hack_infinity/website/migrations/0002_remove_name_username.py @@ -0,0 +1,17 @@ +# Generated by Django 4.1.6 on 2023-02-03 21:02 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='name', + name='username', + ), + ] diff --git a/hack_infinity/website/migrations/0003_user_info.py b/hack_infinity/website/migrations/0003_user_info.py new file mode 100644 index 0000000..2561697 --- /dev/null +++ b/hack_infinity/website/migrations/0003_user_info.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.6 on 2023-02-03 21:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0002_remove_name_username'), + ] + + operations = [ + migrations.CreateModel( + name='user_info', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('username', models.CharField(max_length=32, verbose_name='username')), + ('invitee', models.CharField(max_length=32, verbose_name='invitee')), + ('response', models.CharField(max_length=32, verbose_name='response')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0004_invitation.py b/hack_infinity/website/migrations/0004_invitation.py new file mode 100644 index 0000000..4be5d7d --- /dev/null +++ b/hack_infinity/website/migrations/0004_invitation.py @@ -0,0 +1,20 @@ +# Generated by Django 4.1.6 on 2023-02-03 22:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0003_user_info'), + ] + + operations = [ + migrations.CreateModel( + name='invitation', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('invitation', models.TextField(max_length=32, verbose_name='invitation')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0005_name_username.py b/hack_infinity/website/migrations/0005_name_username.py new file mode 100644 index 0000000..c930aeb --- /dev/null +++ b/hack_infinity/website/migrations/0005_name_username.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.6 on 2023-02-03 22:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0004_invitation'), + ] + + operations = [ + migrations.AddField( + model_name='name', + name='username', + field=models.CharField(default=None, max_length=32, verbose_name='username'), + ), + ] diff --git a/hack_infinity/website/migrations/0006_delete_invitation_delete_name_delete_user_info.py b/hack_infinity/website/migrations/0006_delete_invitation_delete_name_delete_user_info.py new file mode 100644 index 0000000..b3e24a3 --- /dev/null +++ b/hack_infinity/website/migrations/0006_delete_invitation_delete_name_delete_user_info.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.6 on 2023-02-04 12:24 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0005_name_username'), + ] + + operations = [ + migrations.DeleteModel( + name='invitation', + ), + migrations.DeleteModel( + name='Name', + ), + migrations.DeleteModel( + name='user_info', + ), + ] diff --git a/hack_infinity/website/migrations/0007_initial.py b/hack_infinity/website/migrations/0007_initial.py new file mode 100644 index 0000000..a497f7a --- /dev/null +++ b/hack_infinity/website/migrations/0007_initial.py @@ -0,0 +1,23 @@ +# Generated by Django 4.1.6 on 2023-02-04 12:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('website', '0006_delete_invitation_delete_name_delete_user_info'), + ] + + operations = [ + migrations.CreateModel( + name='Invitation', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('username', models.CharField(max_length=32, verbose_name='Username')), + ('Invitee', models.CharField(max_length=32, verbose_name='Invitee')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0008_invitation_confirmation.py b/hack_infinity/website/migrations/0008_invitation_confirmation.py new file mode 100644 index 0000000..53b522a --- /dev/null +++ b/hack_infinity/website/migrations/0008_invitation_confirmation.py @@ -0,0 +1,21 @@ +# Generated by Django 4.1.6 on 2023-02-04 13:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0007_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Invitation_confirmation', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('username', models.CharField(max_length=32, verbose_name='Username')), + ('Invitee', models.CharField(max_length=32, verbose_name='Invitee')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0009_invitation_confirmation_response.py b/hack_infinity/website/migrations/0009_invitation_confirmation_response.py new file mode 100644 index 0000000..2b51e47 --- /dev/null +++ b/hack_infinity/website/migrations/0009_invitation_confirmation_response.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.6 on 2023-02-04 13:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0008_invitation_confirmation'), + ] + + operations = [ + migrations.AddField( + model_name='invitation_confirmation', + name='Response', + field=models.CharField(default='No', max_length=32, verbose_name='Invitee'), + ), + ] diff --git a/hack_infinity/website/migrations/0010_createeventinfo_and_more.py b/hack_infinity/website/migrations/0010_createeventinfo_and_more.py new file mode 100644 index 0000000..245eee9 --- /dev/null +++ b/hack_infinity/website/migrations/0010_createeventinfo_and_more.py @@ -0,0 +1,29 @@ +# Generated by Django 4.1.6 on 2023-02-04 14:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0009_invitation_confirmation_response'), + ] + + operations = [ + migrations.CreateModel( + name='CreateEventInfo', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('event_name', models.CharField(max_length=32, verbose_name='event_name')), + ('venue', models.CharField(max_length=32, verbose_name='venue')), + ('date', models.DateField(default='No', max_length=32, verbose_name='date')), + ('sub_event', models.CharField(default='No', max_length=32, verbose_name='sub_event')), + ('time', models.TimeField(default='No', max_length=32, verbose_name='time')), + ], + ), + migrations.AlterField( + model_name='invitation_confirmation', + name='Response', + field=models.CharField(default='No', max_length=32, verbose_name='Response'), + ), + ] diff --git a/hack_infinity/website/migrations/0011_alter_createeventinfo_date_and_more.py b/hack_infinity/website/migrations/0011_alter_createeventinfo_date_and_more.py new file mode 100644 index 0000000..b46a1e6 --- /dev/null +++ b/hack_infinity/website/migrations/0011_alter_createeventinfo_date_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 4.1.6 on 2023-02-04 18:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0010_createeventinfo_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='createeventinfo', + name='date', + field=models.DateField(max_length=32, verbose_name='date'), + ), + migrations.AlterField( + model_name='createeventinfo', + name='sub_event', + field=models.CharField(max_length=32, verbose_name='sub_event'), + ), + migrations.AlterField( + model_name='createeventinfo', + name='time', + field=models.TimeField(max_length=32, verbose_name='time'), + ), + ] diff --git a/hack_infinity/website/migrations/0012_events.py b/hack_infinity/website/migrations/0012_events.py new file mode 100644 index 0000000..ab1b6bf --- /dev/null +++ b/hack_infinity/website/migrations/0012_events.py @@ -0,0 +1,19 @@ +# Generated by Django 4.1.6 on 2023-02-04 19:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0011_alter_createeventinfo_date_and_more'), + ] + + operations = [ + migrations.CreateModel( + name='events', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py b/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py new file mode 100644 index 0000000..5ed8f17 --- /dev/null +++ b/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py @@ -0,0 +1,17 @@ +# Generated by Django 4.1.6 on 2023-02-04 21:20 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0012_events'), + ] + + operations = [ + migrations.RemoveField( + model_name='invitation_confirmation', + name='Response', + ), + ] diff --git a/hack_infinity/website/migrations/__init__.py b/hack_infinity/website/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hack_infinity/website/migrations/__pycache__/0001_initial.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0001_initial.cpython-310.pyc new file mode 100644 index 0000000..4e67e10 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0001_initial.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0002_remove_name_username.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0002_remove_name_username.cpython-310.pyc new file mode 100644 index 0000000..856bb61 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0002_remove_name_username.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0003_user_info.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0003_user_info.cpython-310.pyc new file mode 100644 index 0000000..321fb80 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0003_user_info.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0004_invitation.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0004_invitation.cpython-310.pyc new file mode 100644 index 0000000..2db101c Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0004_invitation.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0005_name_username.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0005_name_username.cpython-310.pyc new file mode 100644 index 0000000..2e30240 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0005_name_username.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc new file mode 100644 index 0000000..0d6007f Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc new file mode 100644 index 0000000..50aa8bc Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc new file mode 100644 index 0000000..17772a9 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc new file mode 100644 index 0000000..f972498 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc new file mode 100644 index 0000000..c8456e2 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc new file mode 100644 index 0000000..112efe5 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc new file mode 100644 index 0000000..61937c4 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc new file mode 100644 index 0000000..92aa5d4 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/__init__.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..19fc387 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/hack_infinity/website/models.py b/hack_infinity/website/models.py new file mode 100644 index 0000000..816e4f0 --- /dev/null +++ b/hack_infinity/website/models.py @@ -0,0 +1,69 @@ +from django.db import models + +# Create your models here. +class Invitation(models.Model): + username=models.CharField('Username',max_length=32) + Invitee=models.CharField('Invitee',max_length=32) + + + + def create(username,invitee): + book = Invitation(username=username,Invitee=invitee) + # do something with the book + return book + + def __str__(self): + return self.username + +class CreateEventInfo(models.Model): + event_name=models.CharField('event_name',max_length=32) + venue=models.CharField('venue',max_length=32) + date=models.DateField('date',max_length=32) + sub_event=models.CharField('sub_event',max_length=32) + time=models.TimeField('time',max_length=32) + # venue=models.CharField('venue',max_length=32) + + + + def create(event_name,venue,date,sub_event,time): + book = CreateEventInfo(event_name=event_name,venue=venue,date=date,sub_event=sub_event,time=time) + # do something with the book + return book + + def __str__(self): + return self.event_name + +class Invitation_confirmation(models.Model): + username=models.CharField('Username',max_length=32) + Invitee=models.CharField('Invitee',max_length=32) + + + + def create(username,invitee): + book = Invitation_confirmation(username=username,Invitee=invitee) + + # do something with the book + return book + + def __str__(self): + return self.username + +class events(models.Model): + id:int + event:str + time:str + +# class user_info(models.Model): +# username=models.CharField('username',max_length=32) +# invitee=models.CharField('invitee',max_length=32) +# response=models.CharField('response',max_length=32) + +# def create(name): +# book = Name(name=name) +# # do something with the book +# return book + +# def __str__(self): +# return self.name + + diff --git a/hack_infinity/website/tests.py b/hack_infinity/website/tests.py new file mode 100644 index 0000000..de8bdc0 --- /dev/null +++ b/hack_infinity/website/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/hack_infinity/website/urls.py b/hack_infinity/website/urls.py new file mode 100644 index 0000000..0428842 --- /dev/null +++ b/hack_infinity/website/urls.py @@ -0,0 +1,30 @@ +from django.urls import path +from . import views + + + +urlpatterns=[ + path('',views.index,name='index'), + path('registration',views.registration,name='registration'), + # path('store_data',views.store_data,name='store_data'), + path('register',views.register,name='register'), + # path('index.html',views.index) + path('login',views.login,name='login'), + path('logging',views.logging,name='logging'), + path('logout',views.logout,name='logout'), + path('inviting',views.inviting,name='inviting'), + path('invite',views.invite,name='invite'), + path('create_event',views.create_event,name='create_event'), + path('create_schedule',views.create_schedule,name='create_schedule'), + path('show_event_details',views.show_event_details,name='show_event_details'), + path('rsvp',views.rsvp,name='rsvp'), + path('eventofy',views.eventofy,name='eventofy'), + path('landing_page',views.landing_page,name='landing_page'), + # path('display_names',views.display_names,name='display_names'), + # path('send_mail',views.send_mail,name='send_mail'), + # path('sending_mail',views.sending_mail,name='sending_mail'), + + # path('user_page',views.user_page,name='user_page'), + + +] diff --git a/hack_infinity/website/views.py b/hack_infinity/website/views.py new file mode 100644 index 0000000..9462347 --- /dev/null +++ b/hack_infinity/website/views.py @@ -0,0 +1,171 @@ +from django.shortcuts import render +from django.contrib.auth.models import User,auth +from django.contrib.auth.decorators import login_required +from .models import Invitation,Invitation_confirmation,CreateEventInfo,events + +from django.db import connection +# Create your views here.def register(request): +# def send_mail(request): + # return render(request,'send_mail.html') +def invite(request): + return render(request,'invite.html') + +def eventofy(request): + return render(request,'eventofy.html') + +def inviting(request): + username=request.GET['admin'] + numb_of_people=request.GET['users'] + list=numb_of_people.split(',') + # print(username) + # curr=request.user + # invitee=User.username + invitee=username + print(list) + # print(numb_of_people) + for i in list: + print(i) + invitation=Invitation.create(username=i,invitee=invitee) + invitation.save() + return render(request,'landing_page.html',{'msg':numb_of_people,'msg2':username}) + +def create_event(request): + return render(request,'create_event.html') + +def rsvp(request): + return render(request,'rsvp.html') + +def create_schedule(request): + event_name=request.GET.get('event_name') + venue=request.GET.get('venue') + date=request.GET.get('date') + + list_event=['event1','event2','event3','event4','event5','event6'] + list_time=['time1','time2','time3','time4','time5','time6'] + x=0 + for i in range(6): + # if x==0: + sub_event=request.GET.get(list_event[i]) + time=request.GET.get(list_time[i]) + new=CreateEventInfo.create(event_name=event_name,venue=venue,date=date,sub_event=sub_event,time=time) + new.save() + # x+=1 + # else: + # return render(request,'landing_page.html ') + event1=events() + event1.event=request.GET.get('event1') + event1.time=request.GET.get('time1') + + event2=events() + event2.event=request.GET.get('event2') + event2.time=request.GET.get('time2') + + event3=events() + event3.event=request.GET.get('event3') + event3.time=request.GET.get('time3') + + event4=events() + event4.event=request.GET.get('event4') + event4.time=request.GET.get('time4') + + event5=events() + event5.event=request.GET.get('event5') + event5.time=request.GET.get('time5') + + event6=events() + event6.event=request.GET.get('event6') + event6.time=request.GET.get('time6') + + userid=request.user.username + print(userid) + + eves=[event1,event2,event3,event4,event5,event6] + return render(request,'my_invitations.html',{'event_name':event_name,'venue':venue,'date':date,'eves':eves,'user':userid}) + +def show_event_details(request): + userid = request.user + values=CreateEventInfo.objects.values_list('event_name') + x=list(values) + print(x) + for i in x: + if i==('hackathon',): + print("\n yes") + return render(request,'index.html',{'user':userid}) + + # invitee=request.user + # print(invitee) + # return render(request,'send_mail.html') +# def store_data(request): + # name=request.GET['trynowbitch'] + # book.save() + # t=Name() + # print(t) + # return render(request,'show_data.html',{'name':name}) + +# def display_names(request): + # values=Name.objects.all() + # val="NO data available" + # list=[] + # for i in (values): + # print(i) + # x=str(i) + # list.append(x) + # if x=="first": + # print("code succesful") + # val=x + # break + + # # return render(request,'display_names.html',{'val':val}) + # print(val) + # return render(request,'display_names.html',{'val':val}) + + # print(list) + # print(val) + +def index(request): + return render(request,'index.html') +def registration(request): + # pass + return render(request,'registration.html') + +def register(request): + firstname=request.POST['firstname'] + lastname=request.POST['lastname'] + username=request.POST['username'] + email=request.POST['email'] + pw=request.POST['pw'] + cpw=request.POST['cpw'] + # type=request.POST['user_type'] + # msg="" + if cpw!=pw: + return render(request,'index.html',{'msg':"Password not matching !!!"}) + + elif User.objects.filter(username=username).exists() or User.objects.filter(email=email).exists(): + msg=("Username Already Exists \n Please select different username ") + return render(request,'index.html',{'msg':msg}) + + + user=User.objects.create_user(username=username,password=pw,email=email,first_name=firstname,last_name=lastname) + user.save(); + + return render(request,'login.html') + +def login(request): + return render(request,'login.html') + +def logging(request): + username=request.POST['username'] + + password=request.POST['pw'] + user=auth.authenticate(username=username,password=password) + if user is not None: + + return render(request,'landing_page.html',{'user':user}) + +def landing_page(request): + return render(request,'landing_page.html') + +def logout(request): + + auth.logout(request) + return render(request,'index.html')