diff --git a/CssHtml/CssHtml/__init__.py b/CssHtml/CssHtml/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/CssHtml/CssHtml/asgi.py b/CssHtml/CssHtml/asgi.py new file mode 100644 index 0000000..ed8e44b --- /dev/null +++ b/CssHtml/CssHtml/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for CssHtml 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', 'CssHtml.settings') + +application = get_asgi_application() diff --git a/CssHtml/CssHtml/settings.py b/CssHtml/CssHtml/settings.py new file mode 100644 index 0000000..0f701d2 --- /dev/null +++ b/CssHtml/CssHtml/settings.py @@ -0,0 +1,89 @@ +import os +from pathlib import Path +import os +BASE_DIR = Path(__file__).resolve().parent.parent + +# Security +SECRET_KEY = 'your-secret-key' +DEBUG = True +ALLOWED_HOSTS = [] + +# Applications +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'main', +] + + +# Middleware +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 = 'CssHtml.urls' + +# Templates +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [BASE_DIR / 'main' / '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', + ], + }, + }, +] + +# Database +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + +# Static Files +STATIC_URL = '/static/' +STATICFILES_DIRS = [BASE_DIR / 'main' / 'static'] + +# Default primary key field type +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' + +# Password validation +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 settings +LANGUAGE_CODE = 'en-us' +TIME_ZONE = 'UTC' +USE_I18N = True +USE_L10N = True +USE_TZ = True + diff --git a/CssHtml/CssHtml/urls.py b/CssHtml/CssHtml/urls.py new file mode 100644 index 0000000..adefb39 --- /dev/null +++ b/CssHtml/CssHtml/urls.py @@ -0,0 +1,11 @@ +from django.contrib import admin +from django.urls import path +from main import views + +urlpatterns = [ + path('admin/', admin.site.urls), + path('html/introduction/', views.view_html, name='view_home'), # For introduction.html + path('css/introduction/', views.view_css, name='view_css'), + path('article/ai/', views.view_article, name='view_article'), + path('careers/cv/', views.view_cv,name="cv") +] diff --git a/CssHtml/CssHtml/wsgi.py b/CssHtml/CssHtml/wsgi.py new file mode 100644 index 0000000..ea92dc3 --- /dev/null +++ b/CssHtml/CssHtml/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for CssHtml 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', 'CssHtml.settings') + +application = get_wsgi_application() diff --git a/CssHtml/main/Static/ai.css b/CssHtml/main/Static/ai.css new file mode 100644 index 0000000..5fff515 --- /dev/null +++ b/CssHtml/main/Static/ai.css @@ -0,0 +1,3 @@ +*{ +text-align:center +} \ No newline at end of file diff --git a/CssHtml/main/Static/style.css b/CssHtml/main/Static/style.css new file mode 100644 index 0000000..9e16e05 --- /dev/null +++ b/CssHtml/main/Static/style.css @@ -0,0 +1,12 @@ + +label { + display: block; + margin-bottom: 5px; +} +.red { + background: red; + color: red; +} + +div{ +background:red;} \ No newline at end of file diff --git a/CssHtml/main/Static/style2.css b/CssHtml/main/Static/style2.css new file mode 100644 index 0000000..3240c59 --- /dev/null +++ b/CssHtml/main/Static/style2.css @@ -0,0 +1,83 @@ + +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: Arial, sans-serif; +} + +html { + background-color: #fff; + color: #333; + line-height: 1.6; + scroll-behavior: smooth; +} + +.container { + display: flex; + max-width: 1200px; + margin: 50px auto; +} + +.left-column { + width: 25%; + padding-right: 40px; +} + +.left-column h2 { + margin-bottom: 20px; +} + +.left-column li { + list-style: none; + line-height: 2; +} + +.left-column { + margin-bottom: 10px; +} + +.left-column a { + color: #0077b6; + font-weight: bold; + text-decoration: none; + transition: color 0.3s ease; +} + +.left-column a:hover { + color: #023e8a; +} + + +.right-column { + width: 75%; + padding-left: 40px; + border-left: 2px ; +} + +.intro { + margin-bottom: 30px; +} + +.intro h1 { + margin-bottom: 20px; +} + + + + +.content-section { + margin-bottom: 40px; +} + +.content-section h2, +.content-section h3 { + margin-bottom: 10px; +} + .a-link { + text-decoration: none; + transition: 0.3s all ease ,impotent; +} +.a-link:hover{ +margin-left:20px; +} \ No newline at end of file diff --git a/CssHtml/main/__init__.py b/CssHtml/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/CssHtml/main/admin.py b/CssHtml/main/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/CssHtml/main/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/CssHtml/main/apps.py b/CssHtml/main/apps.py new file mode 100644 index 0000000..167f044 --- /dev/null +++ b/CssHtml/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/CssHtml/main/migrations/__init__.py b/CssHtml/main/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/CssHtml/main/models.py b/CssHtml/main/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/CssHtml/main/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/CssHtml/main/templates/main/article.html b/CssHtml/main/templates/main/article.html new file mode 100644 index 0000000..db95cec --- /dev/null +++ b/CssHtml/main/templates/main/article.html @@ -0,0 +1,59 @@ + + + + + + Document + + + + +
+

Essay on Artificial Intelligence +

+ ai +

Artificial Intelligence is the intelligence possessed by the machines under which they can perform various functions with human help. With the help of A.I, machines will be able to learn, solve problems, plan things, think, etc. Artificial Intelligence, for example, is the simulation of human intelligence by machines. In the field of technology, Artificial Intelligence is evolving rapidly day by day and it is believed that in the near future, artificial intelligence is going to change human life very drastically and will most probably end all the crises of the world by sorting out the major problems. + + +Our life in this modern age depends largely on computers. It is almost impossible to think about life without computers. We need computers in everything that we use in our daily lives. So it becomes very important to make computers intelligent so that our lives become easy. Artificial Intelligence is the theory and development of computers, which imitates the human intelligence and senses, such as visual perception, speech recognition, decision-making, and translation between languages. Artificial Intelligence has brought a revolution in the world of technology.

+

Artificial Intelligence Applications +

+

AI is widely used in the field of healthcare. Companies are attempting to develop technologies that will allow for rapid diagnosis. Artificial Intelligence would be able to operate on patients without the need for human oversight. Surgical procedures based on technology are already being performed. + + +Artificial Intelligence would save a lot of our time. The use of robots would decrease human labour. For example, in industries robots are used which have saved a lot of human effort and time. + + +In the field of education, AI has the potential to be very effective. It can bring innovative ways of teaching students with the help of which students will be able to learn the concepts better. + + +Artificial intelligence is the future of innovative technology as we can use it in many fields. For example, it can be used in the Military sector, Industrial sector, Automobiles, etc. In the coming years, we will be able to see more applications of AI as this technology is evolving day by day.

+ +

History of Artificial Intelligence

+

Artificial Intelligence may seem to be a new technology but if we do a bit of research, we will find that it has roots deep in the past. In Greek Mythology, it is said that the concepts of AI were used. + + +The model of Artificial neurons was first brought forward in 1943 by Warren McCulloch and Walter Pits. After seven years, in 1950, a research paper related to AI was published by Alan Turing which was titled 'Computer Machinery and Intelligence. The term Artificial Intelligence was first coined in 1956 by John McCarthy, who is known as the father of Artificial Intelligence. + + +To conclude, we can say that Artificial Intelligence will be the future of the world. As per the experts, we won't be able to separate ourselves from this technology as it would become an integral part of our lives shortly. AI would change the way we live in this world. This technology would prove to be revolutionary because it will change our lives for good.

+
+ +
+ +
+ + + + + \ No newline at end of file diff --git a/CssHtml/main/templates/main/css.html b/CssHtml/main/templates/main/css.html new file mode 100644 index 0000000..b3f006c --- /dev/null +++ b/CssHtml/main/templates/main/css.html @@ -0,0 +1,14 @@ +{% load static %} + + + + + CSS Page + + + +
Good
+Check html introduction +check Ai topic + + diff --git a/CssHtml/main/templates/main/cv.html b/CssHtml/main/templates/main/cv.html new file mode 100644 index 0000000..27fabf1 --- /dev/null +++ b/CssHtml/main/templates/main/cv.html @@ -0,0 +1,105 @@ +{% load static %} + + + + + Saleh Alrashidi - Journey and CV + + + +
+
+

Saleh Alrashidi

+
+ +
+
+ +
+
+

Saleh bin Hamed Alrashidi - Journey and CV

+

In this project, I talk about myself and my CV.

+
+ +
+

In the North of Saudi Arabia Near Ha'il City

+

Ha'il

+

+ I started my life in Ha'il and moved to the capital city where I grew up and made friends for about 15 years.
+ The weird thing is, I loved this city, but after going back to Ha'il, I can't imagine myself going outside of the city. I love it. +

+
+ +
+

My Academic Journey

+

University of Ha'il

+

+ I started my school journey at Riyadh Al-Muwahhid Private Schools. After that, I moved to Ibn Aqil School.
+ This was before returning to Ha'il city, and I studied at the University of Ha'il after we got back.
+ In this university, I experienced multiple positive impacts on my personal life and certainly in my professional path. I learned various concepts of programming, databases, and marketing. +

+
+ +
+

My Skills

+
    +
  • React
  • +
  • SQL Server
  • +
  • MongoDB
  • +
  • Firebase
  • +
  • Full-Stack Development
  • +
  • Continuous Learning
  • +
  • HTML
  • +
  • CSS
  • +
  • JavaScript
  • +
+
+ +
+

courses

+

Bachelor of Software Engineering

+ + +
+ +
+

Hobbies

+

+ I love watching different stories and reading; I enjoy these stories and the meaningful messages in them. The weird thing is, I also love watching football, which has no meaningful messages, and playing story-driven games.

+
+ +
+

Experience

+ +

Internship at King Fahad Medical City

+

+ Riyadh, Saudi Arabia | July 2023 - December 2023
+ At King Fahad Medical City, I had the invaluable opportunity to enhance my skills and knowledge in various aspects of software development and data analysis. This experience allowed me to gain practical exposure to C#, Power BI, and as I embark on the final five months of my co-op, I am excited to continue learning and contributing. +

+ +

Programming Member at PGC

+

+ University of Ha'il | May 2023 - December 2023
+ As a member of the programming team at PGC, my role involves developing programming projects, sharing my work, and conducting workshops to enhance students' understanding and application of programming, thereby contributing significantly to the organization's educational mission. +

+
+ +
+
+ + \ No newline at end of file diff --git a/CssHtml/main/templates/main/introduction.html b/CssHtml/main/templates/main/introduction.html new file mode 100644 index 0000000..a3f2cf6 --- /dev/null +++ b/CssHtml/main/templates/main/introduction.html @@ -0,0 +1,46 @@ + + + + + + Document + + + + +
+
+ +
+ check my css + +
+ + \ No newline at end of file diff --git a/CssHtml/main/tests.py b/CssHtml/main/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/CssHtml/main/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/CssHtml/main/views.py b/CssHtml/main/views.py new file mode 100644 index 0000000..3bb732e --- /dev/null +++ b/CssHtml/main/views.py @@ -0,0 +1,14 @@ +from django.http import HttpRequest +from django.shortcuts import render + +def view_html(request:HttpRequest): + return render(request, "main/introduction.html") + +def view_css(request:HttpRequest): + return render(request, "main/css.html") + +def view_article(request:HttpRequest): + return render(request, "main/article.html") +def view_cv(request:HttpRequest): + return render(request,"main/cv.html") + diff --git a/CssHtml/manage.py b/CssHtml/manage.py new file mode 100644 index 0000000..0b24d6c --- /dev/null +++ b/CssHtml/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', 'CssHtml.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()