From 9ad852cda806fa368c57565132715be44f164f84 Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 13:30:06 -0700 Subject: [PATCH 1/6] making not static work --- credentials.pyc | Bin 0 -> 440 bytes models.pyc | Bin 0 -> 647 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 credentials.pyc create mode 100644 models.pyc diff --git a/credentials.pyc b/credentials.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa54141c3e6d60ea6bbc0057d7b6a00bbf32cfb6 GIT binary patch literal 440 zcmYk3T~ER=6o$)(#1M(sCf=HGgM*C?mKYV71jWIS!EiTZtR2jKL0gF1FY|x-2Rx{W z_N33rdHcTYMGK#m^6ukm>7w72gMJU2T>>ydHZX_m9Kv~I=MgR-yMS;JO{*th;1>W> z!=pZtSwk9StKnF~Q@mMZldj4|I9)xPq8%7`Vlf(WA9uzIf0=g<`$48=8a3-J2d^_v zHUin3Kj`k%V8>XaUYC?cLsXh|QB|9&DoZuVjMs0&QLvinmfrGp-Fb|yes5^Cb_*i& z8pPVZk&b(NC5Y1Q@O_i|Q9BxR_0_AGK3N<~1AJKcDV8$-piD;9B1HHZz)fPdj|g1` zB<1J-1x8#-I4^_dxGrJr+fw-(e+*R+&>z?xjKYi&%7oC*oEX!@qfYE5f<{=tldWJ< rLX6OfxgW2W8g)D_z)P5b;DqdYoAOh*<0eY*J|wrte_U7O510q;?mFh5 z^azXBh;Rg8qD7=dkiLk?%~IViMgWZ%af1kFfNexuA`cQ9flQ1*4vat!jSRG8Uu&8U zkt^z_$yaQiHt=L(53B2{kWI%j)??4i;)P$t63SdSRUf7T*Gs4NoZ51F4Nl8CZIB{* z2qJ!O=>e}v*&fvW{_Z}5CHKfy_e(f0hqbFw$06`}o#nZmL-Gy%bZ#Nt6q95l{ Idx-Y<1`=6@QUCw| literal 0 HcmV?d00001 From 24ed01de038269bdb0b919c4245b20e973d1fb03 Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 14:21:24 -0700 Subject: [PATCH 2/6] ugh git --- .DS_Store | Bin 0 -> 6148 bytes README.md | 1 - styles.css | 152 -------------------- style.css => templates/index.html | 63 ++++++++- templates/tree.html | 226 ++++++++++++++++++++++++++++++ tree.html | 57 -------- 6 files changed, 288 insertions(+), 211 deletions(-) create mode 100644 .DS_Store delete mode 100644 README.md delete mode 100644 styles.css rename style.css => templates/index.html (55%) create mode 100644 templates/tree.html delete mode 100644 tree.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3149a11171876d26aed6a19cf04e4ea40b15f3a0 GIT binary patch literal 6148 zcmeHKyG{c^3>=dbAv7r|_Y07yX;x7v=#cmU2#EyJK_Vqcl-K23_(~W*K)D>W6ktpC z?89@uo8r6+K&CH?b6^5sL|4R4L*H~?y=OUj0Kk1 z<6kwa`+2jPb6;QXf`0vO#u0GLDofT`v(lZ7HwTQj1BTHuqynixDv%1K0{>nC_H4D$ ziDSl8AQeajz7){^L!m3yz}C@z9SnMW*ZrZQ8pn2*AeNZdz}AsFG;u1?sS;NVaXQya zjnhg8RmsX!{wRbb%LiT3|X`VaU2E-7cJKq~O36p-QU zW;W#~MQ`nWoc7v6zomZ~b1j{ra|qx>Tk+{$UePi0YGCVVbgmnnmB4Fx^` DT#qR2 literal 0 HcmV?d00001 diff --git a/README.md b/README.md deleted file mode 100644 index 1eb5007..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# TreePlanting_Draft \ No newline at end of file diff --git a/styles.css b/styles.css deleted file mode 100644 index 7d79041..0000000 --- a/styles.css +++ /dev/null @@ -1,152 +0,0 @@ -html, body { - margin: 0; - padding: 0; -} - -body { - font-family: 'Roboto', sans-serif; - font-weight: 100; -} - -.container { - margin: 0 auto; - max-width: 940px; - padding: 0 10px; -} - -.header { - background: url(https://images.unsplash.com/photo-1535469420027-517674dad7a1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80) no-repeat center center; - background-size: cover; - height: 800px; - text-align: center; -} - -.header .container { - position: relative; - top: 200px; -} - -.header h1 { - color: #fff; - line-height: 100px; - font-size: 80px; - margin-top: 0; - margin-bottom: 80px; - text-transform: uppercase; -} - -@media (min-width:850px) { - .header h1 { - font-size: 120px; - } -} - -.header p { - color: #fff; - font-weight: 500; - letter-spacing: 8px; - margin-bottom: 40px; - margin-top: 0; - text-transform: uppercase; -} - -.btn { - color: #fff; - background: #000; - padding: 10px 40px; - text-decoration: none; - transition: background .5s; -} - -.nav { - background: #000; - height: 80px; - width: 100%; -} - -.nav ul { - height: 80px; - list-style: none; - margin: 0 auto; - padding: 0; -} - -.nav ul li { - color: #fff; - display: inline-block; - height: 80px; - line-height: 80px; - list-style: none; - padding: 0 10px; - transition: background .5s; -} - -.btn:hover, .nav ul li:hover { - background: #117bff; - cursor: pointer; - transition: background .5s; -} - -.main .container { - margin: 80px auto; -} - -.main img { - float: left; - margin: 50px 80px 50px 0; -} - -.jumbotron { - background: url(https://images.unsplash.com/photo-1571986584949-8ebd7cd2151b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80) center center; - background-size: cover; - height: 600px; -} - -.jumbotron .container { - position: relative; - top: 220px; -} - -.jumbotron h2 { - color: #fff; - text-align: right; -} - -.jumbotron p { - color: #fff; - text-align: right; -} - -.jumbotron .btn { - margin: 10px 0 0; - float: right; -} - -.footer { - background: #000; - height: 80px; - padding-bottom: 50px; -} - -.footer p { - color: #fff; - font-size: 14px; - height: 80px; - line-height: 80px; - margin: 0; -} - -@media (max-width: 500px) { - .header h1 { - font-size: 50px; - line-height: 64px; - } - - .main, .jumbotron { - padding: 0 30px; - } - - .main img { - width: 100%; - } -} diff --git a/style.css b/templates/index.html similarity index 55% rename from style.css rename to templates/index.html index c3b10e1..5429743 100644 --- a/style.css +++ b/templates/index.html @@ -1,4 +1,11 @@ -html, body { + + + + Freedom Forest + + + + + + + +
+
+

Freedom Forest

+

Here, we love to uplift and celebrate you winning the hardest health battles!

+ See Your Tree +
+
+ + + +
+
+ +

🦾 Congratulations on your defeat!

+

FreedomForest aims to uplift and be a part of welcoming you to your new beginning.

+

sampletextt sampletextt sampletextt sampletextt

+

sampletextt sampletextt sampletextt sampletextt

+
+
+ +
+
+

Stay Connected

+

Send a positive note to recent warriors.

+ Twitter + Donate to AIDS + Help Prevent Cancer + Email +
+
+ + + + \ No newline at end of file diff --git a/templates/tree.html b/templates/tree.html new file mode 100644 index 0000000..b30f847 --- /dev/null +++ b/templates/tree.html @@ -0,0 +1,226 @@ + + + + See Your Tree + + + + + + + +
+
+

See Your Tree

+

See yourself as a new plant in a larger garden of other overcomers!

+ + Search by Twitter Username +
+
+ + + +
+
+ +

Find your tree below!

+

+

+

+
+
+ +
+
+

Stay Connected

+

Send a positive note to recent warriors.

+ Twitter + Donate to AIDS + Help Prevent Cancer + Email +
+
+ + + + \ No newline at end of file diff --git a/tree.html b/tree.html deleted file mode 100644 index 84ac6a8..0000000 --- a/tree.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - See Your Tree - - - - - -
-
-

See Your Tree

-

See yourself as a new plant in a larger garden of other overcomers!

- Search by Twitter Username -
-
- - - -
-
- -

Find your tree below!

-

-

-

-
-
- -
-
-

Stay Connected

-

Send a positive note to recent warriors.

- Twitter - Donate to AIDS - Help Prevent Cancer - Email -
-
- - - - From 352f81d58e840347514163b1e7bdc79d026be1f0 Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 14:24:33 -0700 Subject: [PATCH 3/6] load on new web page instead of using the same --- templates/index.html | 4 ++-- templates/tree.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index 5429743..53a9a2c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -198,8 +198,8 @@

🦾 Congratulations on your defeat!

Stay Connected

Send a positive note to recent warriors.

Twitter - Donate to AIDS - Help Prevent Cancer + Donate to AIDS + Help Prevent Cancer Email diff --git a/templates/tree.html b/templates/tree.html index b30f847..7611a51 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -211,8 +211,8 @@

Find your tree below!

Stay Connected

Send a positive note to recent warriors.

Twitter - Donate to AIDS - Help Prevent Cancer + Donate to AIDS + Help Prevent Cancer Email From 5346a5f60aa4c107d57b64e3754615f94e81c6fb Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 14:48:50 -0700 Subject: [PATCH 4/6] fixed integration with py and structure --- .DS_Store | Bin 6148 -> 6148 bytes index.html | 57 ----------------------------------------------------- main.py | 48 ++++++++++++++++++++++++++++++++++++++++++++ models.py | 8 ++++++++ 4 files changed, 56 insertions(+), 57 deletions(-) delete mode 100644 index.html create mode 100644 main.py create mode 100644 models.py diff --git a/.DS_Store b/.DS_Store index 3149a11171876d26aed6a19cf04e4ea40b15f3a0..dd845c7dcdaa021acc38235b88a17ce3aec3e513 100644 GIT binary patch delta 214 zcmZoMXfc=|#>B`mu~2NHo}wrV0|Nsi1A_nqLn=caLkUABLn1@Y#E;AEK@$87$qYq6 zi4hGGUih6094hGfs2{N$vZ{3M`CpngViAg%Eq3>X+D_NZH00R?nm0zftwLoP!; z*svU&hO~kVnYcrjdj*i82GP9nqbl2Gb`E|HptCoA{LVa?U&N3D=xBxpAl~dDvWFP} DMHo3r delta 100 zcmZoMXfc=|#>CJ*u~2NHo}wrd0|Nsi1A_nqLj{8#Lk2?$LoP$k#6tDS1|lqzeHm3) zt$_*xCa+@DWnBqkZN9^(%{GbY(`I%Keh#29n?EvsXP(S2V#vra*@j1YbBxFeW&mjy B7zqFX diff --git a/index.html b/index.html deleted file mode 100644 index 97ea712..0000000 --- a/index.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - Freedom Forest - - - - - -
-
-

Freedom Forest

-

Here, we love to uplift and celebrate you winning the hardest health battles!

- See Your Tree -
-
- - - -
-
- -

🦾 Congratulations on your defeat!

-

FreedomForest aims to uplift and be a part of welcoming you to your new beginning.

-

sampletextt sampletextt sampletextt sampletextt

-

sampletextt sampletextt sampletextt sampletextt

-
-
- -
-
-

Stay Connected

-

Send a positive note to recent warriors.

- Twitter - Donate to AIDS - Help Prevent Cancer - Email -
-
- - - - diff --git a/main.py b/main.py new file mode 100644 index 0000000..9c5d86a --- /dev/null +++ b/main.py @@ -0,0 +1,48 @@ +import tweepy +import credentials +from models import UserTree +from flask import Flask, render_template, json + + +app = Flask(__name__) + +auth = tweepy.OAuthHandler(credentials.consumer_key, credentials.consumer_secret) +auth.set_access_token(credentials.access_key, credentials.access_secret) +api = tweepy.API(auth) + + +p_tweets = api.search("I beat cancer") + +accounts = {} + + +for tweet in p_tweets: + userInstance = UserTree(tweet.author.screen_name, tweet.author.name, + tweet.author.profile_image_url, tweet.text, tweet.author.created_at) + accounts[tweet.author.name] = userInstance + print(tweet.text) + +c = p_tweets[0].text + +#val = accounts['PJ'] +#print(val.tweet_text) + +@app.route('/') +def hello_world(): + return render_template('index.html') + +@app.route('/tree') +def tree_page(value): + val = "Charles" + return '{}'.format(value) + +@app.route('/test') +def test(): + for val in p_tweets: + g = tree_page(value=val) + return g + return + + +if __name__ == '__main__': + app.run() \ No newline at end of file diff --git a/models.py b/models.py new file mode 100644 index 0000000..0233852 --- /dev/null +++ b/models.py @@ -0,0 +1,8 @@ +class UserTree: + + def __init__(self, name, username, picture, tweet_text, date): + self.name = name + self.username = username + self.picture = picture + self.tweet_text = tweet_text + self.date = date \ No newline at end of file From 88ec617307f00af4b0d5fbe116e7376591e03606 Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 17:09:30 -0700 Subject: [PATCH 5/6] graident --- .DS_Store | Bin 6148 -> 6148 bytes templates/index.html | 8 +++++++- templates/tree.html | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index dd845c7dcdaa021acc38235b88a17ce3aec3e513..cfa4e00a9ea6669fad3fdaad0640bdd2db154e59 100644 GIT binary patch delta 151 zcmZoMXfc=|#>B)qu~2NHo+2ab#DLw4m>3yZC-X2mhO#r{G9)r&GUPGnF%&RVdgkOO zC*|ZPF)%O)FfcHF2GSb;!2rl&VBiF*&SywrNM*=jD8{CP!5XM)+2%6FRMySx9Q+(W aYd3#n{LVa?U&NAw5ojXFl+6JmTbKbv`XoUB delta 108 zcmZoMXfc=|#>B`mu~2NHo+2a5#DLw5ER%Vd95uNZG8yt1QW#PhDj4(_G8jr2av5?w zbMljua`KZH7#IYA*b0bsHZNjIW!>1I!?>B9gP#Lv)@DKG@640=MJzdh(hQ6Y3{0B? IM7A&k05kIz@Bjb+ diff --git a/templates/index.html b/templates/index.html index 53a9a2c..a971f9d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,13 +21,18 @@ padding: 0 10px; } + .header { - background: url(https://namimissouri.org/wp-content/uploads/sites/94/2019/07/PurpleFlowers_AdobeStock_cropped-e1563557028661.jpeg) no-repeat center center; + background: black; + overflow: hidden; + background: #C33764; + background: -webkit-linear-gradient(rgba(29, 38, 113, 0.6), rgba(195, 55, 100, 0.8)), url(https://namimissouri.org/wp-content/uploads/sites/94/2019/07/PurpleFlowers_AdobeStock_cropped-e1563557028661.jpeg); background-size: cover; height: 800px; text-align: center; } + .header .container { position: relative; top: 200px; @@ -156,6 +161,7 @@ .main img { width: 100%; } + } diff --git a/templates/tree.html b/templates/tree.html index 7611a51..efc8527 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -169,6 +169,8 @@ margin-top: 100%; padding-bottom: 25%; } + + } @@ -179,7 +181,11 @@

See Your Tree

See yourself as a new plant in a larger garden of other overcomers!

- + +
+ +
+ Search by Twitter Username
From 1169733f22623c1aa04933e82a1a4c458a7d5262 Mon Sep 17 00:00:00 2001 From: lizandrof273 Date: Sat, 1 Aug 2020 18:51:40 -0700 Subject: [PATCH 6/6] bottom part color --- templates/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index a971f9d..5b2859c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,7 +26,7 @@ background: black; overflow: hidden; background: #C33764; - background: -webkit-linear-gradient(rgba(29, 38, 113, 0.6), rgba(195, 55, 100, 0.8)), url(https://namimissouri.org/wp-content/uploads/sites/94/2019/07/PurpleFlowers_AdobeStock_cropped-e1563557028661.jpeg); + background: -webkit-linear-gradient(rgba(29, 38, 113, 0.4), rgba(195, 55, 100, 0.8)), url(https://namimissouri.org/wp-content/uploads/sites/94/2019/07/PurpleFlowers_AdobeStock_cropped-e1563557028661.jpeg); background-size: cover; height: 800px; text-align: center; @@ -109,9 +109,10 @@ } .jumbotron { - background: url(https://toledolibrary.s3.amazonaws.com/uploads/images/blog/_large/We-Shall-Overcome-featured-image-resized.jpg) center center; + background: black; + background: -webkit-linear-gradient(rgba(148, 0, 211, 0.2), rgba(0, 0, 0, 1)), url(https://toledolibrary.s3.amazonaws.com/uploads/images/blog/_large/We-Shall-Overcome-featured-image-resized.jpg); background-size: cover; - height: 600px; + height: 600px; } .jumbotron .container {