Code Monkey home page Code Monkey logo

portfolio2's Introduction

portfolio2

Personal Portfolio page written in next.js and Djnago

http://zoloto.cx.ua/

Successor of the portfolio project


About

The project is separated into two parts:


Features

  • Django based admin located at: https://api.zoloto.cx.ua/admin that allows full control of the web application content;
  • Both single and collection type models that are used to store data with a tinyMCE rich text editor;
  • REST endpoinds with nested serializers;
  • Telegram based form forwarding;
  • SEO attributes customization;
  • Fast loading speeds on account on next.js (prerendered pages and image optimizations);
  • light and dark themes;
  • advanced form validation;
  • adaptive design;

Used libraries and frameworks

Backend

  • Django 4.1
  • jazzmin-jazzmin
  • django-solo
  • pillow
  • djangorestframework
  • requests

The backend is based on Django of 4.1 version with a DRF, as it provides ease of use of REST interfaces. To allow full content control, both repetitive (e.g porfolio cases, about tabs and contact cards) and individual models (e.g.hero section, footer and header) can be changed via the admin page.

Some of the models can be edited with a tinyMCE rich text editor field.

The individuality of the corresponding models are preserved via the django-solo SingletonModel.

Some of the model use media in a form of images, so the Pillow library is used.

Form message is stored and then sent via a telegram bot using requests library. The message model creation is intercepted using Django signals.


Frontend

  • react
  • react-dom
  • next
  • next-themes
  • framer-motion
  • react-awesome-reveal

The frontend is written using next.js react framework with a server side rendering aproach. The project itself is split in a multiple of function based components.

Dark and Light themes are provided by next-themes. To avoid complex code, framer-motion is used to animate projects filtering.

Project is written in TypeScript and SASS, styling is heavely inspired yet developed from scratch by dewi bootstrap template.

The form is validated using onChange listeners and regular expressions, for example to validate a name the following re is used: NAME_REGEX = /.{3,120}/;.


Installation

git clone https://github.com/Denis-Source/portfolio2

Backend

cd backend/

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

python manage.py runserver

Frontend

cd frontend/

npm install
npm run dev

# Or
npm run build
npm run start

Tests

web.dev

https://i.ibb.co/PDxpztj/image.png

Desktop LightHouse test

https://i.ibb.co/QCvC99g/image.png

Mobile LightHouse test

https://i.ibb.co/0V028xj/image.png

GMetrix

https://i.ibb.co/XCz0tqF/image.png

portfolio2's People

Contributors

denis-source avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.