Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Arrebola committed Jun 13, 2022
0 parents commit e4c7770
Show file tree
Hide file tree
Showing 154 changed files with 105,410 additions and 0 deletions.
155 changes: 155 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
db.sqlite3-journal
media

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
# <django-project-name>/staticfiles/

# End of https://mrkandreev.name/snippets/gitignore-generator/#Python,Django


1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Personal Web
Empty file added core/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions core/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.contrib import admin
from .models import ContactMessage

# Register your models here.
class ContactMessageAdmin(admin.ModelAdmin):
readonly_fields = ()


admin.site.register(ContactMessage, ContactMessageAdmin)
7 changes: 7 additions & 0 deletions core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
name = 'core'
verbose_name = 'Contacto'
8 changes: 8 additions & 0 deletions core/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.forms import ModelForm
from .models import ContactMessage

class ContactMessageForm(ModelForm):
class Meta:
model = ContactMessage
field = ['name', 'email', 'message']
exclude = []
28 changes: 28 additions & 0 deletions core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 2.1.5 on 2019-01-20 19:17

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='ContactMessage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, verbose_name='Nombre')),
('email', models.EmailField(max_length=254, verbose_name='Email')),
('message', models.TextField(verbose_name='Mensaje')),
],
options={
'verbose_name': 'mensaje',
'verbose_name_plural': 'mensajes',
'ordering': ['-email'],
},
),
]
Empty file added core/migrations/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions core/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from django.db import models

# Create your models here.
class ContactMessage(models.Model):
name = models.CharField(max_length=200, verbose_name="Nombre")
email = models.EmailField(verbose_name="Email")
message = models.TextField(verbose_name="Mensaje")

class Meta:
verbose_name = "mensaje"
verbose_name_plural = "mensajes"
ordering = ["-email"]

def __str__(self):
return self.email
15 changes: 15 additions & 0 deletions core/services/emailService.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from django.core import mail
from django.core.mail import send_mail

class EmailService():

def __init__(self, fromMail, recipient_list, subject, message):
self.fromMail = fromMail
self.recipient_list = recipient_list
self.subject = subject
self.message = message
self.sended = False

def send(self):
emailBackend = mail.get_connection()
send_mail(self.subject, self.message, self.fromMail, self.recipient_list, False, connection=emailBackend)
1 change: 1 addition & 0 deletions core/static/core/css/clean-blog.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
17 changes: 17 additions & 0 deletions core/static/core/css/experience.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.experience {
border: none;
background: none;
}

.experience-header {
background-color: #0D6EFD;
}

.experience-body {
background-color: #151829;
}

.experience-footer {
background-color: #151829;
border: none;
}
4 changes: 4 additions & 0 deletions core/static/core/css/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#lottie-home {
width: 380px;
height: 320px;
}
22 changes: 22 additions & 0 deletions core/static/core/css/portfolio.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.project {
background-color: #16192A;
border: none;
margin-bottom: 3vh;
width: 24rem;
}

#container {
margin-top: 5vh;
margin-bottom: 5vh;
}

.card-project-body {
display: flex;
justify-content: space-between;
align-items: stretch;
flex-direction: column;
}

.pimage {
border-radius: 25%;
}
Loading

0 comments on commit e4c7770

Please sign in to comment.