Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSoC2101 - Saravan Krishna tasks submission #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Frontend Tasks/TASK-1-homepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VIT-AP Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style_homepage.css">
</head>
<div class="section">
<div class="continer">
<div class="title">
<h1 style="text-align: center">VIT-AP</h1>
</div>

<div class="content-section">
<div class="content">
<h3 style="text-align:center">Profile Page</h3>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ut vulputate leo. Mauris posuere tincidunt arcu. Etiam lacinia tincidunt elit. Aenean mi metus, mattis sit amet scelerisque eu, volutpat a nibh. Duis vel laoreet elit. Phasellus semper aliquam tortor, ut porta ex congue id. Suspendisse potenti. Phasellus ut orci id arcu lobortis suscipit vulputate eu diam. Donec aliquet auctor odio, ac porta tellus.

Fusce non risus at leo blandit tempor et a tellus. Donec in odio sed ligula commodo imperdiet nec vel neque. Morbi iaculis elementum magna, sed malesuada leo volutpat in. Maecenas at tempor libero. In tempus nibh elit, sit amet tempus nisl faucibus sit amet. Aliquam volutpat, velit eu porttitor mollis, quam lacus vehicula arcu, ut interdum nisi justo eget ligula. Nullam blandit, dui vel iaculis congue, ligula mi faucibus justo, non vestibulum nunc elit non enim. Aenean a iaculis magna. Ut urna enim, finibus sed urna vel, auctor sollicitudin massa. Morbi ipsum nunc, pellentesque eu pharetra id, egestas in nibh. Pellentesque elementum sit amet orci at tincidunt. Duis non fermentum metus. Fusce ex quam, gravida id metus ut, euismod tincidunt nulla. </p>
</div>
</div>
<div class="image-section">
<img src="resources/college_image.jpeg">
</div>
</div>
</div>
</div>
<footer>
<p>Made by saravan_krishna 20bcn7013</p>
</footer>
<body>

</body>
</html>
29 changes: 29 additions & 0 deletions Frontend Tasks/TASK-2-login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="stylesheet" href="css/style_login.css">
</head>
<body>
<div class="center">
<h1>Login</h1>
<form>
<div class="text-field">
<input type="text" required>
<label>Username</label>
</div>
<div class="text-field">
<input type="text" required>
<label>Password</label>
</div>
<div class="pas-for">Forgot Password?</div>
<input type="submit" value="Login">
<div class="sign-up">
Not a member? <a href="#">Sign up</a>
</div>
</form>
</div>

</body>
</html>
45 changes: 45 additions & 0 deletions Frontend Tasks/css/style_homepage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@import url('https://fonts.googleapis.com/css2?family=Besley:ital,wght@1,500&display=swap');

*{
margin:0px;
padding:0px;
box-sizing:border-box;
font-family: 'Besley', serif;
}
.section{
width:100%;
min-height:100vh;
background-color:#ddd;
}
.container{
width:80%
display:block;
margin:auto;
padding-top:100px;
}
.content-section{
float:left;
width:40%
}
.image-section{
float:right;
width:60%
}
.image-section img{
width:100%;
height:auto;
}
.container .title{
text-transform:uppercase;
font-size: 30px
}
.container-section .content h3{
margin-top:20px;
color:#3d3d39;
}
.container-section .content p{
margin-top:10px;
font-family:sans-serif;
font-size:18px;
line-height:1.5;
}
82 changes: 82 additions & 0 deletions Frontend Tasks/css/style_login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
body{
margin:0px;
padding:0px;
font-family:montserrat;
background:linear-gradient(90deg, rgba(3,108,148,1) 0%, rgba(9,9,121,0.9977124638918067) 45%, rgba(82,40,200,1) 100%);
height:100vh;
overflow:hidden;
}
.center{
position:absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
width:400px;
background: white;
border-radius:10px;
box-shadow: 10px 10px 15px rgba(0,0,0,0.05);
}
.center h1{
text-align: center;
padding: 20px 0;
border-bottom: 1px solid silver;
}
.center form{
padding: 0 40px;
box-sizing: border-box;
}
form .text-field{
position: relative;
border-bottom: 2px solid #adadad;
margin: 30px 0;
}
.text-field input{
width: 100%;
padding: 0 5px;
height: 40px;
font-size: 16px;
border: none;
background: none;
outline: none;
}
.text-field label{
position: absolute;
top: 50%;
left: 5px;
color: #adadad;
transform: translateY(-50%);
font-size: 16px;
pointer-events: none;
transition: .5s;
}
.text-field input:focus ~ label,
.text-field input:valid ~ label{
top: -5px;
color: #2691d9;
}
.text-field input:focus ~ span::before,
.text-field input:valid ~ span::before{
width: 100%;
}
input[type="submit"]{
width: 100%;
height: 50px;
border: 1px solid;
background: #2691d9;
border-radius: 25px;
font-size: 18px;
color: #e9f4fb;
font-weight: 700;
cursor: pointer;
outline: none;
}
input[type="submit"]:hover{
border-color: #2691d9;
transition: .5s;
}
.sign-up{
margin: 30px 0;
text-align: center;
font-size: 16px;
color: #666666;
}
Binary file added Frontend Tasks/resources/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend Tasks/resources/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend Tasks/resources/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend Tasks/resources/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend Tasks/resources/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend Tasks/resources/college_image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions NotesAdder/NotesAdder/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
ASGI config for NotesAdder 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/3.2/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NotesAdder.settings')

application = get_asgi_application()
129 changes: 129 additions & 0 deletions NotesAdder/NotesAdder/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
"""
Django settings for NotesAdder project.

Generated by 'django-admin startproject' using Django 3.2.6.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/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
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-r$z5887@agiu-ttm@_bec#(ukpfx3^-26pir$0e287jf+1)(xh'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'notes_app',
]

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 = 'NotesAdder.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, "notes_app/templates")],
'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',
],
},
},
]
# import pdb;pdb.set_trace()

WSGI_APPLICATION = 'NotesAdder.wsgi.application'


# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR +'/'+ 'db.sqlite3',
}
}


# Password validation
# https://docs.djangoproject.com/en/3.2/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/3.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_URL = '/static/'

# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
22 changes: 22 additions & 0 deletions NotesAdder/NotesAdder/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""NotesAdder URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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('admin/', admin.site.urls),
path('', include('notes_app.urls'))
]
16 changes: 16 additions & 0 deletions NotesAdder/NotesAdder/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
WSGI config for NotesAdder 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/3.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NotesAdder.settings')

application = get_wsgi_application()
Binary file added NotesAdder/db.sqlite3
Binary file not shown.
Loading