diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..fbd2e5a Binary files /dev/null and b/.DS_Store differ diff --git a/TVTime/TVTime/__init__.py b/TVTime/TVTime/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/TVTime/TVTime/asgi.py b/TVTime/TVTime/asgi.py new file mode 100644 index 0000000..faea62a --- /dev/null +++ b/TVTime/TVTime/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for TVTime 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/5.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TVTime.settings') + +application = get_asgi_application() diff --git a/TVTime/TVTime/settings.py b/TVTime/TVTime/settings.py new file mode 100644 index 0000000..fa36dc8 --- /dev/null +++ b/TVTime/TVTime/settings.py @@ -0,0 +1,124 @@ +""" +Django settings for TVTime project. + +Generated by 'django-admin startproject' using Django 5.1.2. + +For more information on this file, see +https://docs.djangoproject.com/en/5.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/5.1/ref/settings/ +""" + +from pathlib import Path + +# 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/5.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-y9h85elx76kl%kf^+ms8mn+6p*6w0%j06p#^atb3shs^)o+jb4' + +# 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', + 'main', +] + +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 = 'TVTime.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + '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 = 'TVTime.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/5.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/5.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/5.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/5.1/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/TVTime/TVTime/urls.py b/TVTime/TVTime/urls.py new file mode 100644 index 0000000..6b2d33a --- /dev/null +++ b/TVTime/TVTime/urls.py @@ -0,0 +1,23 @@ +""" +URL configuration for TVTime project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/5.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('admin/', admin.site.urls), + path('', include("main.urls")), +] diff --git a/TVTime/TVTime/wsgi.py b/TVTime/TVTime/wsgi.py new file mode 100644 index 0000000..3395a09 --- /dev/null +++ b/TVTime/TVTime/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for TVTime 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/5.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TVTime.settings') + +application = get_wsgi_application() diff --git a/TVTime/main/__init__.py b/TVTime/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/TVTime/main/admin.py b/TVTime/main/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/TVTime/main/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/TVTime/main/apps.py b/TVTime/main/apps.py new file mode 100644 index 0000000..167f044 --- /dev/null +++ b/TVTime/main/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MainConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'main' diff --git a/TVTime/main/migrations/__init__.py b/TVTime/main/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/TVTime/main/models.py b/TVTime/main/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/TVTime/main/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/TVTime/main/static/images/Ball.png b/TVTime/main/static/images/Ball.png new file mode 100644 index 0000000..4de230d Binary files /dev/null and b/TVTime/main/static/images/Ball.png differ diff --git a/TVTime/main/static/images/Free.png b/TVTime/main/static/images/Free.png new file mode 100644 index 0000000..92dae0f Binary files /dev/null and b/TVTime/main/static/images/Free.png differ diff --git a/TVTime/main/static/images/Image 4.png b/TVTime/main/static/images/Image 4.png new file mode 100644 index 0000000..92ccf83 Binary files /dev/null and b/TVTime/main/static/images/Image 4.png differ diff --git a/TVTime/main/static/images/Space.png b/TVTime/main/static/images/Space.png new file mode 100644 index 0000000..6773c5b Binary files /dev/null and b/TVTime/main/static/images/Space.png differ diff --git a/TVTime/main/static/images/ai-applications.jpeg b/TVTime/main/static/images/ai-applications.jpeg new file mode 100644 index 0000000..0b616ce Binary files /dev/null and b/TVTime/main/static/images/ai-applications.jpeg differ diff --git a/TVTime/main/static/images/color.jpg b/TVTime/main/static/images/color.jpg new file mode 100644 index 0000000..113f2db Binary files /dev/null and b/TVTime/main/static/images/color.jpg differ diff --git a/TVTime/main/static/images/hi.jpeg b/TVTime/main/static/images/hi.jpeg new file mode 100644 index 0000000..a93d648 Binary files /dev/null and b/TVTime/main/static/images/hi.jpeg differ diff --git a/TVTime/main/static/images/wall.jpg b/TVTime/main/static/images/wall.jpg new file mode 100644 index 0000000..d7dcc0e Binary files /dev/null and b/TVTime/main/static/images/wall.jpg differ diff --git a/TVTime/main/static/videos/ai-future.mp4 b/TVTime/main/static/videos/ai-future.mp4 new file mode 100644 index 0000000..d931146 Binary files /dev/null and b/TVTime/main/static/videos/ai-future.mp4 differ diff --git a/TVTime/main/templates/main/css_intro.html b/TVTime/main/templates/main/css_intro.html new file mode 100644 index 0000000..e21cde9 --- /dev/null +++ b/TVTime/main/templates/main/css_intro.html @@ -0,0 +1,251 @@ + + + + {% load static %} + + + CSS Intro + + + + + +
+

CSS Introduction

+
+ + +
+ +
+

Basic Syntax and Selectors

+

+ This is an example of an element selector. +

+

+ This is a class selector example. +

+

This is an ID selector example.

+ +
+ +
+ + +
+

Colors and Backgrounds

+

This text has a color applied using HEX.

+

+ This text has a color applied using RGB. +

+
+
+ This div has a background and color applied. +
+
This div has a background image
+ + +
+ + +
+

Text Styling

+

+ This paragraph demonstrates different text styling properties. +

+

This text uses Google Fonts.

+
+ +
+ + +
+

Unit of Measurements & Positions

+
This is a positioned element.
+
+ +
+ + +
+

Box Model

+
+ This box demonstrates the CSS box model. +
+
+ +
+ + +
+

Layout Basics

+
+
Block Element
+ Inline Element +
Inline-Block Element
+
+
+ +
+ + +
+

Flexbox Basics

+
+
Flex Item 1
+
Flex Item 2
+
Flex Item 3
+
+
+
+ + + + diff --git a/TVTime/main/templates/main/home.html b/TVTime/main/templates/main/home.html new file mode 100644 index 0000000..c464b0b --- /dev/null +++ b/TVTime/main/templates/main/home.html @@ -0,0 +1,70 @@ + + + + {% load static %} + + + Home + + + + + + + +

Hi,

+

Welcome to My Practice

+

Thank you for stepping by and seeing my prograsse

+

Please Click Any of the Links Below to Follow Me Through My Learning Journey

+ + + + + + + + + \ No newline at end of file diff --git a/TVTime/main/templates/main/html_intro.html b/TVTime/main/templates/main/html_intro.html new file mode 100644 index 0000000..3fff53e --- /dev/null +++ b/TVTime/main/templates/main/html_intro.html @@ -0,0 +1,233 @@ + + + + {% load static %} + + + HTML Intro + + + + + +
+

HTML Introduction

+
+ + + +
This is a Link to Go to Home Page:
+ + +
+ + + + +
This is an Image:
+ Hi Image + +
+ + + +
This is an Ordered List:
+
    + +
  1. Finish the Lab
  2. +
  3. Go to the supermarket
  4. +
+ +
+ + + + +
This is Unordered List:
+ + +
+ + + + +
This is Definition List:
+
+
My First Item
+
My First Description
+
My Second Item
+
My Second Description
+
+ +
+ + + + +
This is a Table:
+ + + + + + + + + + + + + + + + + + + + + + + + + +
SunMonTueWedThuFriSat
Start The Week RightFinish all My WorkRestRestRestRestRest
+ +
+ + + + + +
This is a Form:
+
+ {% csrf_token %} + +

+ +

+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/TVTime/main/templates/main/my_ai_article.html b/TVTime/main/templates/main/my_ai_article.html new file mode 100644 index 0000000..500fbeb --- /dev/null +++ b/TVTime/main/templates/main/my_ai_article.html @@ -0,0 +1,230 @@ + + + + {% load static %} + + + + AI Article + + + + +
+

The AI Revolution

+ +
+ + +
+ +
+

What is AI?

+

+ AI, also known as Artificial intelligence, is a technology with + human-like problem-solving capabilities. AI in action appears to + simulate human intelligence—it can recognize images, write poems, and + make data-based predictions. Modern organizations collect large data + volumes from diverse sources, such as smart sensors, human-generated + content, monitoring tools, and system logs. Artificial intelligence + technologies analyze the data and use it to assist business operations + effectively. For example, AI technology can respond to human + conversations in customer support, create original images and text for + marketing, and make smart suggestions for analytics. Ultimately, + artificial intelligence is about making software smarter for + customized user interactions and complex problem-solving. +

+
+ + +
+

Applications of AI

+

AI has diverse applications such as:

+ + AI Applications +
+ + +
+

The Future of AI

+

+ With the rapid advancements in AI, its future holds immense + potential... +

+ +
+
+ + + + + + + + diff --git a/TVTime/main/templates/main/my_cv.html b/TVTime/main/templates/main/my_cv.html new file mode 100644 index 0000000..7e3e207 --- /dev/null +++ b/TVTime/main/templates/main/my_cv.html @@ -0,0 +1,401 @@ + + + + {% load static %} + + + + My CV + + + + + +
+ +
+ +
+
+ My Pic +
+

Hello, I'm Khulood

+

+ Soon to be Full Stack Web Developer & Digital Transformation + Specialist +

+
+
+
+ +
+

About Me

+ +
+ +
+

Projects

+
+
+ Project 1 +
+

iOS App - Space Travel

+

+ An app that helps users gain more knowledge about space and all the important space discoveries by NASA. +

+ View Details +
+
+
+ Project 2 +
+

iOS App - Knowledge Game

+

+ A game app for all ages to have fun and learn new information that you can share with your family and friends. +

+ View Details +
+
+
+ Project 3 +
+

UI/UX Case Study

+

+ A case study for a mobile app + connect freelancers and businesses owners to exchange digital services in one platform. +

+ View Details +
+
+
+
+ + + + diff --git a/TVTime/main/tests.py b/TVTime/main/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/TVTime/main/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/TVTime/main/urls.py b/TVTime/main/urls.py new file mode 100644 index 0000000..3838826 --- /dev/null +++ b/TVTime/main/urls.py @@ -0,0 +1,13 @@ +from django.urls import path +from . import views + +app_name = "main" + +urlpatterns = [ + path("", views.main_view, name="main_view"), + path("html/introduction/", views.html_intro_view, name="html_intro"), + path("css/introduction/", views.css_intro_view, name="css_intro"), + path("article/ai/", views.article_view, name="my_ai_article"), + path("careers/cv/", views.cv_view, name="my_cv"), + +] \ No newline at end of file diff --git a/TVTime/main/views.py b/TVTime/main/views.py new file mode 100644 index 0000000..d5e337c --- /dev/null +++ b/TVTime/main/views.py @@ -0,0 +1,28 @@ +from django.shortcuts import render +from django.http import HttpRequest, HttpResponse + +# Create your views here. + +def main_view(request:HttpRequest): + + return render(request, "main/home.html") + + +def html_intro_view(request:HttpRequest): + + return render(request, "main/html_intro.html") + + +def css_intro_view(request:HttpRequest): + + return render(request, "main/css_intro.html") + + +def article_view(request:HttpRequest): + + return render(request, "main/my_ai_article.html") + + +def cv_view(request:HttpRequest): + + return render(request, "main/my_cv.html") diff --git a/TVTime/manage.py b/TVTime/manage.py new file mode 100755 index 0000000..b9820f8 --- /dev/null +++ b/TVTime/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', 'TVTime.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()