Skip to content

Commit

Permalink
add random quote machine
Browse files Browse the repository at this point in the history
  • Loading branch information
1hella committed Oct 1, 2023
1 parent 0139bae commit bd58e74
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 10 additions & 8 deletions Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@

df = pandas.read_csv('data/data.csv', sep=';')


def get_url_text(url):
if "github" or "codepen" in url:
return "Source Code"
else:
return "Link"


with col3:
for index, row in df[0:math.ceil(len(df)/2)].iterrows():
st.header(row['title'])
st.write(row['description'])
st.image('images/' + row['image'])
url = row['url']
if "github" in url:
text = "Source Code"
else:
text = "Link"
text = get_url_text(url)
st.write(f"[{text}]({url})")

with col4:
Expand All @@ -43,8 +48,5 @@
st.write(row['description'])
st.image('images/' + row['image'])
url = row['url']
if "github" in url:
text = "Source Code"
else:
text = "Link"
text = get_url_text(url)
st.write(f"[{text}]({url})")
3 changes: 2 additions & 1 deletion data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Webcam Object Detection App; An intelligent object detection application that us
Django Job Application Web App; A web application powered by Python and Django, designed to process job application forms, store information in a database, and allow admins to easily view the data on the admin panel.;https://github.com/1hella/Django-Job-Application-Form;photo22.png
Django Restaurant Menu Web App; A Django web application which powers a restaurant menu showcasing different categories of foods and their availabilities.;https://github.com/1hella/django-restaurant-menu;photo23.png
GPT Chatbot App; A PyQT6 application powered by OpenAI's ChatGPT language model, allowing for asynchronous chat between user and bot; https://github.com/1hella/Chatbot-GPT-GUI;photo24.png
When You Were There Unity Game; A Unity 2D Touhou Fan Game based on immortality where players perform the same tasks each day.;https://ampaulg.itch.io/when-you-were-there;wywt.png
When You Were There Unity Game; A Unity 2D Touhou Fan Game based on immortality where players perform the same tasks each day.;https://ampaulg.itch.io/when-you-were-there;wywt.png
Random Quote Machine; A React quote machine that will generate random quotes, with the ability to Tweet them out.;https://codepen.io/1hella/pen/oNJMpyq;photo25.png
Binary file added images/photo25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd58e74

Please sign in to comment.