diff --git a/app/api/book.php b/app/api/book.php index 92d4d10..c335971 100644 --- a/app/api/book.php +++ b/app/api/book.php @@ -21,7 +21,7 @@ function bookid_kuri($slug) { if (isset($book['price_id'])){ - $book['pic'] = IMGSRV."price/180x280/{$book['price_id']}.{$book['priceimg']}"; + $book['pic'] = IMGSRV."price/300x470/{$book['price_id']}.{$book['priceimg']}"; $book['links']['pdf'] = SITE.'read/'.$book['pricehash']; $book['links']['text'] = SITE.'readtext/'.$book['pricehash']; $book['links']['download'] = SITE.'pub/files/pdf/'.$book['pricehash'].'.pdf'; diff --git a/app/composer.json b/app/composer.json index 40c1ff4..0a459a6 100644 --- a/app/composer.json +++ b/app/composer.json @@ -5,7 +5,8 @@ "masterforweb/kuri":"dev-master", "masterforweb/db_lite":"dev-master", "mobiledetect/mobiledetectlib": "^2.8", - "phpmailer/phpmailer": "^6.1" + "phpmailer/phpmailer": "^6.1", + "yoomoney/yookassa-sdk-php": "^2.0" }, "repositories":[ diff --git a/app/functions/ykassa.php b/app/functions/ykassa.php new file mode 100644 index 0000000..e69de29 diff --git a/app/pub/css/an.css b/app/pub/css/an.css index 5f082f7..99fbcec 100644 --- a/app/pub/css/an.css +++ b/app/pub/css/an.css @@ -7,6 +7,49 @@ body.books-body { width: 65%; font-size: .8em; } +#row { + width: 100%; + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; + margin: 5px 0; + background: #e4e4e4; +} + #book_id { + width: calc(33.333% - 14px); + box-sizing: border-box; + position: relative; + background: #fff; + margin: 7px; + border-radius: 7px; + } + .pricename { + font-weight: bold; + text-align: center; + } + #priceanons { + width: calc(65% - 20px); + background: white; + margin: 10px; + border-radius: 5px; + padding: 20px; + box-sizing: border-box; + letter-spacing: 0.1px; + line-height: 25px; + } + .price { + background: #0e920e; + margin: 7px; + padding: 5px; + text-align: center; + } + .price a { + color: white; + text-decoration: none; + text-transform: uppercase; + letter-spacing: 0.2px; + } #book-html p { width: 70%; display: block; @@ -319,12 +362,11 @@ input[type="email"],input[type="password"]{ flex-wrap: wrap; } .book_skeleton { - width:25%; - margin-bottom: 30px; - margin-top: 30px; + width:calc(25% - 20px); + margin: 10px; } .book_mini { - width: 60%; + width: 100%; background: white; border-radius: 7px; border: 1px solid #cdd8e2; @@ -367,11 +409,7 @@ input[type="email"],input[type="password"]{ } @media screen and (max-width: 1260px) { - .book_skeleton{ - margin-top: 20px; - } .book_mini{ - width: 70%; font-size: .9em; } } @@ -411,9 +449,6 @@ input[type="email"],input[type="password"]{ @media screen and (max-width: 1100px) { - .book_skeleton{ - margin-top: 15px; - } #logo { width: 170px; } @@ -425,12 +460,6 @@ input[type="email"],input[type="password"]{ } } @media screen and (max-width: 1000px) { - .book_mini{ - width: 75%; - } - .book_skeleton{ - margin-top: 10px; - } header .lite-logo { width: 30%; } @@ -465,10 +494,8 @@ input[type="email"],input[type="password"]{ width: 35%; } .book_skeleton{ - width: 50%; - } - .book_mini{ - width: 75%; + width: calc(50% - 40px); + margin: 20px;; } #logo { width: 125px; diff --git a/app/views/book.phtml b/app/views/book.phtml index 3f85df7..c20d33f 100644 --- a/app/views/book.phtml +++ b/app/views/book.phtml @@ -1,18 +1,19 @@ -
-
- -

- -

Читать PDF

- - -

Скачать PDF

- - - -

руб.

-

Купить

- -
-
-
\ No newline at end of file +
+
+ +
+
+

+ + +

Читать PDF

+ + +

Скачать PDF

+ + + +

Купить за руб.

+ +
+
\ No newline at end of file diff --git a/app/views/layout.phtml b/app/views/layout.phtml index 00cbb86..55233f1 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -5,7 +5,7 @@ - +