platzky 0.2.16__py3-none-any.whl → 0.2.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
platzky/static/styles.css CHANGED
@@ -3,24 +3,11 @@ body {
3
3
  height: 100%;
4
4
  }
5
5
 
6
- body {
7
- font-family: {{ font.name }};
8
- }
9
-
10
6
  .logo {
11
7
  max-height: 6rem;
12
8
  max-width: 50vw;
13
9
  }
14
10
 
15
- .header-row {
16
- z-index: 1;
17
- background-color: {{ primary_color }};
18
- height: min-content;
19
- display: flex;
20
- justify-content: center;
21
- align-items: center;
22
- }
23
-
24
11
  #main-row {
25
12
  position: relative;
26
13
  flex-grow: 1;
@@ -31,22 +18,6 @@ body {
31
18
  padding: 16px;
32
19
  }
33
20
 
34
- .left-panel {
35
- background-color: {{ secondary_color }};
36
- }
37
-
38
- #left-panel {
39
- background-color: {{ secondary_color }};
40
- position: absolute;
41
- height: 100%;
42
- max-width: 80vw;
43
- overflow-y: auto;
44
- color: white;
45
- inline-size: 80vw;
46
- overflow-wrap: break-word;
47
- z-index: 999999999;
48
- }
49
-
50
21
  @media only screen and (min-width: 768px) {
51
22
  #left-panel {
52
23
  inline-size: calc(100vw * 0.1666666667);
@@ -58,13 +29,6 @@ body {
58
29
  font-weight: normal;
59
30
  }
60
31
 
61
- #languages-menu {
62
- background-color: {{ secondary_color }};
63
- padding: 5px 10px;
64
- border-radius: 5px;
65
- color: white;
66
- }
67
-
68
32
  .offcanvas-lg.offcanvas-start {
69
33
  top: auto;
70
34
  width: auto;
@@ -2,8 +2,10 @@
2
2
  <html lang="{{ current_language }}-{{ current_lang_country }}">
3
3
  <head>
4
4
  {% include "head_meta.html" %}
5
+ {% include "dynamic_css.html" %}
5
6
  {% block head_meta %}{% endblock %}
6
7
  {{ dynamic_head | safe }}
8
+
7
9
  <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}">
8
10
  <title>{% block title %}{{app_name}}{% endblock %}</title>
9
11
  <meta name="description" content="{% block description %} {{ app_description }} {% endblock %}">
@@ -0,0 +1,38 @@
1
+ <style>
2
+
3
+ body {
4
+ font-family: {{ font.name }};
5
+ }
6
+
7
+ .left-panel {
8
+ background-color: {{ secondary_color }};
9
+ }
10
+
11
+ #left-panel {
12
+ background-color: {{ secondary_color }};
13
+ position: absolute;
14
+ height: 100%;
15
+ max-width: 80vw;
16
+ overflow-y: auto;
17
+ color: white;
18
+ inline-size: 80vw;
19
+ overflow-wrap: break-word;
20
+ z-index: 999999999;
21
+ }
22
+
23
+ #languages-menu {
24
+ background-color: {{ secondary_color }};
25
+ padding: 5px 10px;
26
+ border-radius: 5px;
27
+ color: white;
28
+ }
29
+
30
+ .header-row {
31
+ z-index: 1;
32
+ background-color: {{ primary_color }};
33
+ height: min-content;
34
+ display: flex;
35
+ justify-content: center;
36
+ align-items: center;
37
+ }
38
+ </style>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: platzky
3
- Version: 0.2.16
3
+ Version: 0.2.18
4
4
  Summary: Not only blog engine
5
5
  License: MIT
6
6
  Requires-Python: >=3.10,<4.0
@@ -19,6 +19,7 @@ Requires-Dist: aiohttp (>=3.9.5,<4.0.0)
19
19
  Requires-Dist: google-cloud-storage (>=2.5.0,<3.0.0)
20
20
  Requires-Dist: gql (>=3.4.0,<4.0.0)
21
21
  Requires-Dist: humanize (>=4.9.0,<5.0.0)
22
+ Requires-Dist: platzky-sendmail (>=0.1.1,<0.2.0)
22
23
  Requires-Dist: pydantic (>=2.7.1,<3.0.0)
23
24
  Description-Content-Type: text/markdown
24
25
 
@@ -17,22 +17,21 @@ platzky/platzky.py,sha256=A_ku8ZFseCde12vXL9PLNn9ybMszXDcBIqZbWj1rxMo,4996
17
17
  platzky/plugin_loader.py,sha256=kYLaBOc8MA4b0T2yhVpSxZsX1rTxfcAnyGJCNKPGBXY,2428
18
18
  platzky/plugins/google-tag-manager/entrypoint.py,sha256=Z4npXtmCdrSuUG_ZvFdPhUZg5QcwIPGQWj9Uw9dcm8A,1021
19
19
  platzky/plugins/redirections/entrypoint.py,sha256=yoqHsRLqRALdICs5_UMSREkfEo1Lbsjj9tqEA7dsseg,1555
20
- platzky/plugins/sendmail/entrypoint.py,sha256=16GszfLaYhVUSuCdL4SPVKYN9-mONp-hK5ZWSiLluPo,1215
21
20
  platzky/seo/seo.py,sha256=N_MmAA4KJZmmrDUh0hYNtD8ycOwpNKow4gVSAv8V3N4,2631
22
21
  platzky/static/blog.css,sha256=TrppzgQbj4UtuTufDCdblyNTVAqgIbhD66Cziyv_xnY,7893
23
- platzky/static/styles.css,sha256=Kz6qzE7JKn2Fo0GiYLf4YkN950ocHRS3H27960A8G0s,1298
22
+ platzky/static/styles.css,sha256=U5ddGIK-VcGRJZ3BdOpMp0pR__k6rNEMsuQXkP4tFQ0,686
24
23
  platzky/templates/404.html,sha256=EheoLSWylOscLH8FmcMA4c6Jw14i5HkSvE_GXzGIrUo,78
25
- platzky/templates/base.html,sha256=O7b2Wsd3OzhW2g09GjrjlDkeYCRQ4VsCMQYgcDWT65E,3675
24
+ platzky/templates/base.html,sha256=0YuB7EG_5QIK5RZ4n_HTe0Iwa1zjbhhuZd9YYJGqhog,3711
26
25
  platzky/templates/blog.html,sha256=aPl-DzLX85bHv7tN8UjlABR086PUJ9IGlGbIBioFHGA,1281
27
26
  platzky/templates/body_meta.html,sha256=bRHG_BF-jloBLXASrpJVO6hDfpzq3MqMpJTXt9fLHJk,323
27
+ platzky/templates/dynamic_css.html,sha256=a1AeodEVwM_JAw1ySQkYN1xnKLydTXm2YzQwmjqlSyg,629
28
28
  platzky/templates/feed.xml,sha256=I9cz7vnxx-TfbLIDHFXfrC3S2Nt9B6PrWf3u4zSIi78,863
29
29
  platzky/templates/head_meta.html,sha256=MO6bWpjngujrSMc2WSTFCTd58LmOI4gQWuexKSXJHmc,1368
30
- platzky/templates/home.html,sha256=nqoVVvaNBd1ceun6KOZB_eY20xf4Mjtu8LTl1Q_Ap6c,3900
31
30
  platzky/templates/page.html,sha256=8tS9K5dXfCKItvOlpEuURnWohnWjs6WW6zeBJFLARUM,647
32
31
  platzky/templates/post.html,sha256=GSgjIZsOQKtNx3cEbquSjZ5L4whPnG6MzRyoq9k4B8Q,1906
33
32
  platzky/templates/robots.txt,sha256=2_j2tiYtYJnzZUrANiX9pvBxyw5Dp27fR_co18BPEJ0,116
34
33
  platzky/templates/sitemap.xml,sha256=iIJZ91_B5ZuNLCHsRtsGKZlBAXojOTP8kffqKLacgvs,578
35
34
  platzky/www_handler.py,sha256=pF6Rmvem1sdVqHD7z3RLrDuG-CwAqfGCti50_NPsB2w,725
36
- platzky-0.2.16.dist-info/METADATA,sha256=ArWmjjn7maWxbohHBUYkz4iAVaab2XW_GuZlwm8584Q,1643
37
- platzky-0.2.16.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
38
- platzky-0.2.16.dist-info/RECORD,,
35
+ platzky-0.2.18.dist-info/METADATA,sha256=SuoQGVWFGG_sFQ_YxyIqaZ2kni2Mh9ARrouJu03vmUk,1692
36
+ platzky-0.2.18.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
37
+ platzky-0.2.18.dist-info/RECORD,,
@@ -1,39 +0,0 @@
1
- import smtplib
2
-
3
- from pydantic import BaseModel, Field
4
-
5
-
6
- def send_mail(sender_email, password, smtp_server, port, receiver_email, subject, message):
7
- full_message = f"From: {sender_email}\nTo: {receiver_email}\nSubject: {subject}\n\n{message}"
8
- server = smtplib.SMTP_SSL(smtp_server, port)
9
- server.ehlo()
10
- server.login(sender_email, password)
11
- server.sendmail(sender_email, receiver_email, full_message)
12
- server.close()
13
-
14
-
15
- class SendMailConfig(BaseModel):
16
- user: str = Field(alias="sender_email")
17
- password: str = Field(alias="password")
18
- server: str = Field(alias="smtp_server")
19
- port: int = Field(alias="port")
20
- receiver: str = Field(alias="receiver_email")
21
- subject: str = Field(alias="subject")
22
-
23
-
24
- def process(app, config):
25
- plugin_config = SendMailConfig.model_validate(config)
26
-
27
- def notify(message):
28
- send_mail(
29
- sender_email=plugin_config.user,
30
- password=plugin_config.password,
31
- smtp_server=plugin_config.server,
32
- port=plugin_config.port,
33
- receiver_email=plugin_config.receiver,
34
- subject=plugin_config.subject,
35
- message=message,
36
- )
37
-
38
- app.add_notifier(notify)
39
- return app
@@ -1,195 +0,0 @@
1
- {% extends "base.html" %}
2
- {% block content %}
3
-
4
- <style>
5
- .content {
6
- padding-top:150px;
7
- }
8
-
9
- .envelope {
10
- position: relative;
11
- margin: 50px auto 0;
12
- width: 400px;
13
- height: 200px;
14
- background: #00528c;
15
- border-radius: 0 0 5px 5px;
16
- box-shadow: 0 0 1px #c94548 inset;
17
- }
18
-
19
- .envelope:before,
20
- .envelope:after {
21
- content: '';
22
- position: absolute;
23
- width: 0;
24
- height: 0;
25
- border: 0 solid transparent;
26
- border-width: 100px 200px;
27
- }
28
- .envelope:before {
29
- border-bottom-color: #255e87;
30
- top: -100%;
31
- left: 0px;
32
- }
33
- .envelope:after {
34
- border-right-color: #b3d7ff;
35
- border-left-color: #97b3d3;
36
- border-bottom-color:#b3d7e0;
37
- top: 0;
38
- border-radius: 0 0 5px 5px;
39
- transform: rotate(360deg);
40
- box-shadow: 0 1px 1px rgba(0,0,0,0.25);
41
- z-index:3;
42
- }
43
-
44
- .triangle {
45
- border-style:solid;
46
- border-width: 150px 300px;
47
- position: absolute;
48
- z-index:3;
49
- }
50
-
51
- .triangle-down {
52
- border-color: #00528c transparent transparent transparent;
53
- z-index:1;
54
- }
55
-
56
-
57
- .rect {
58
- left: 5%;
59
- bottom:0;
60
- border-radius:6px;
61
- width: 90%;
62
- height:200px;
63
- background: white;
64
- display: inline-block;
65
- border-style:solid;
66
- border-color:#b3d7ff;
67
- box-shadow: inset -3px 3px 10px #b3d7ff;
68
- position:absolute;
69
- padding-bottom:30px;
70
- }
71
- .recto {
72
- position:relative;
73
- width: 100%;
74
- height: 700px;
75
- background: white;
76
- display: inline-block;
77
- z-index:20;
78
- }
79
- .go-up {
80
- animation-delay:0.6s;
81
- animation-name: go-up;
82
- animation-duration: 2s;
83
- animation-fill-mode: forwards;
84
- }
85
-
86
- .scale-up {
87
- animation-delay:0.6s;
88
- animation-name: scale-up;
89
- animation-duration: 2s;
90
- animation-fill-mode: forwards;
91
- }
92
-
93
-
94
- .go-behind {
95
- animation-delay:1s;
96
- animation-name: go-behind;
97
- animation-duration: 1s;
98
- animation-fill-mode: forwards;
99
- }
100
-
101
- .open
102
- {
103
- animation-name: open;
104
- animation-duration: 2s;
105
- animation-fill-mode: forwards;
106
- transform-origin: top;
107
- }
108
-
109
- .boldos
110
- {
111
- color:#007bff;
112
- font-size:1.2rem;
113
- font-weight:bold;
114
- }
115
-
116
- .envelopeso
117
- {
118
- position:relative;
119
- margin-top:500px;
120
- text-align: center;
121
- width:400px;
122
- height:500px;
123
- }
124
-
125
- .begin {
126
- position:relative;
127
- bottom: 160px;
128
- left: 45%;
129
- z-index:5;
130
- transition: 0.3s;
131
- animation: fadein 2s;
132
- animation-delay:1.6s;
133
- opacity: 0;
134
- animation-fill-mode: forwards;
135
- }
136
-
137
- @keyframes fadein {
138
- from { opacity: 0; }
139
- to { opacity: 1; }
140
- }
141
-
142
- @keyframes go-up {
143
- 0% { bottom:0px;}
144
- 100% { bottom:100px;
145
- z-index:1;}
146
- }
147
-
148
-
149
- @keyframes open {
150
- from { transform: scaleY(1);}
151
- to { transform: scaleY(-1);z-index:0}
152
- }
153
-
154
- h1 {
155
- font-size:1rem;
156
- }
157
- h2 {
158
- font-size:0.7rem;
159
- }
160
- p {
161
- font-size:0.8rem;
162
- }
163
-
164
-
165
- </style>
166
-
167
-
168
- <div class="envelope">
169
- <div class="rect go-up" style="display: inline-block">
170
- <div style="display: inline-block;position:relative">
171
- <div class="col-lg-12 text-center mt-3" style="position:relative; text-align:center;">
172
- <p style="margin-bottom:0">
173
- So you are looking for best
174
- <br>
175
- <span class="boldos"> Email Marketing Service
176
- </span>?
177
- </p>
178
- <div style="width:80%; padding-left:20%;">
179
- <p style="margin-bottom:.1rem;color:#4c85c2;">
180
- Please, answer few questions.
181
- </p>
182
- <p>
183
- When you'll be ready hit button "No more questions. ANSWERS!"
184
- </p>
185
- </div>
186
- </div>
187
- </div>
188
- </div>
189
- </div>
190
- <form method="post" class="begin">
191
- <button type="submit" style="z-index:6;" class="btn btn-primary">Begin</button>
192
- </form>
193
-
194
-
195
- {% endblock %}