Blog
Corporate site
A small site, usually consisting of several web pages, and containing basic information about a commercial or non-profit organization, individual, company, goods or services, price lists, contact details and a feedback form.
Product Catalog
Product Catalog - this is your storefront, catalog of goods on the Internet. On the pages of the catalog site, visitors can look at the appearance of the goods you offer, often in several ways, find out their characteristics, read about the features of use. The catalog site helps sales of your products, and sometimes carries them out directly.
Types of catalog site:
Drupal.org dark theme
I'm used to working with dark themes everywhere: PhpStorm, Ubuntu, Chrome, phone applications. It's pretty annoying when you switched from dark theme to fully white browser tab. I don't know when Drupal.org will have dark theme, so I added this CSS hack for yourself:
https://gist.github.com/levmyshkin/c127f1ff539965923fdac6679c530a5b
You can use Chome extension User CSS and add CSS code separately for Drupal.org site:
Install xdebug on Ubuntu LAMP
Firstly, we need to install php library for xdebug:
sudo apt update
sudo apt install php7.2-xdebug
For other versions of PHP you can use php7.x-xdebug or php5.x-xdebug for PHP 5.x versions.
Further we need to see /usr/lib/php folder and find our xdebug.so file.
How to make modal window with colorbox
The main problem of modal windows is different behavior for scrollTop property in iphone and android. So we need to use long list of commands to find scrollTop position.
Install LAMP on Ubuntu
Install Apache
sudo apt-get update
sudo apt-get install apache2
Also update settings for apache:
sudo ufw app list
sudo ufw allow in "Apache Full"
You can use /var/www folder for one site, but it will be good to have another folder in your home ~/ directory. So let's add these settings in your apache configs:
sudo nano /etc/apache2/apache2.conf