|
import streamlit as st |
|
import requests |
|
import re |
|
import json |
|
import hashlib |
|
import base64 |
|
import sqlite3 |
|
import os |
|
|
|
|
|
current_dir = os.path.dirname(os.path.abspath(__file__)) |
|
|
|
|
|
rarbg_db_file = os.path.join(current_dir, 'rarbg_db.db') |
|
|
|
my_style = ''' |
|
<style> |
|
.tag { |
|
display: inline-block; |
|
padding: 2px 6px; |
|
background-color: #f2f2f2; /* 默认的背景颜色 */ |
|
border-radius: 5px; /* 圆角效果 */ |
|
margin: 0 2px; |
|
transition: background-color 0.3s; /* 平滑的颜色过渡效果 */ |
|
} |
|
|
|
.tag:hover { |
|
background-color: #cffd51; /* 鼠标经过时的背景颜色 */ |
|
} |
|
|
|
.tag:active { |
|
background-color: #cffd51; /* 鼠标按下时的背景颜色 */ |
|
} |
|
</style> |
|
''' |
|
|
|
|
|
|
|
def image_to_base64(img_path): |
|
with open(img_path, "rb") as image_file: |
|
return base64.b64encode(image_file.read()).decode() |
|
|
|
|
|
st.set_page_config(page_title="花醉红尘 — 花酒果酒连锁品牌", page_icon="🌞", layout='centered', initial_sidebar_state='auto') |
|
|
|
|
|
st.markdown( |
|
f'# <a href="https://huazuihongchen.cn/" target="_self"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("huazuihongchen_logo_block.png"))}" alt="Image" width="52px" height="86px" style="border-radius: 8px; box-shadow: 0px 0px 0px rgba(0,0,0,0.1);"/></a> 花醉红尘 — 花酒果酒连锁品牌', |
|
unsafe_allow_html=True) |
|
st.subheader('', anchor=False, divider='red') |
|
st.video('huazuihongchen.mp4', format="video/mp4", start_time=0) |
|
st.markdown( |
|
'在中国,也有着许多美丽的爱情故事。这些故事,不仅仅是一段段浪漫的爱情故事,更是体现了一个民族丰富的文化底蕴、精神内涵和价值观念,赋予了人们对爱情的新的定义和理解。') |
|
st.markdown( |
|
'品牌花醉红尘,正是基于这些美丽的爱情故事而诞生的。品牌以红色为主调,象征着热情与浪漫,也寓意着品牌对红尘世界的热爱和关注。品牌旗下的鲜花酒系列,则将鲜花的美丽与酒的香醇融合,打造出一种兼具美感、风味和具有文化内涵的新型酒品。') |
|
|
|
brand_story = st.expander('品牌故事', expanded=False) |
|
brand_story.markdown('## 《爱的千鹊桥》') |
|
|
|
brand_story.markdown( |
|
'我是花醉红尘创始人黄朝阳,品牌的创立源于我的一段爱情故事。那时是我奋斗的年龄,遇到了一位令我心动的女生。虽两心相悦,但爱情来临的时候我恰好一无所有,于是我努力打拼希望有足够能力照顾女生的时候再去表白。努力了一段时间后,当我回来想要向女生表白的时候,发现女生已经嫁人了。') |
|
|
|
brand_story.markdown( |
|
'女生犹如花一样娇美,爱是一种甜蜜的醉意,回想起相遇的种种经历,于是我把所有的爱意化作一份祝福,创立鲜花酒品牌“花醉红尘”,以此品牌祝福所有有情人终成眷属。') |
|
|
|
brand_story.markdown('**愿以后所有男生都能无所畏惧,勇敢向喜欢的女生告白。**') |
|
|
|
brand_story.markdown('**愿所有的女生都能被温柔以待。**') |
|
|
|
brand_story.markdown('**愿爱永葆这份朝气。**') |
|
|
|
|
|
st.markdown('## 系列产品') |
|
tab1, tab2, tab3, tab4, tab5, tab6, tab7 = st.tabs(["告白款 - 菊花酒", "告白款 - 桃花醉", "告白款 - 桂花酒", "告白款 - 茉莉花酒", "告白款 - 洛神花酒", "告白款 - 樱花醉", "告白款 - 玫瑰花酒"]) |
|
with tab1: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款菊花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 菊花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab2: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款桃花醉.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 桃花醉') |
|
st.markdown('类型:果酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab3: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款桂花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 桂花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab4: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款茉莉花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 茉莉花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab5: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款洛神花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 洛神花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab6: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款樱花醉.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 樱花醉') |
|
st.markdown('类型:果酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
with tab7: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("告白款玫瑰花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 告白款 - 玫瑰花酒') |
|
st.markdown('类型:果酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥128.00') |
|
|
|
tab1, tab2, tab3, tab4, tab5, tab6, tab7 = st.tabs(["婚庆款 - 樱花醉", "婚庆款 - 洛神花酒", "婚庆款 - 桂花酒", "婚庆款 - 玫瑰花酒", "婚庆款 - 茉莉花酒", "婚庆款 - 菊花酒", "婚庆款 - 桃花醉"]) |
|
with tab1: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款樱花醉.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 樱花醉') |
|
st.markdown('类型:果酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab2: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款洛神花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 洛神花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab3: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款桂花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 桂花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab4: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款玫瑰花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 玫瑰花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab5: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款茉莉花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 茉莉花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab6: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款菊花酒.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 菊花酒') |
|
st.markdown('类型:花酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
with tab7: |
|
st.markdown( |
|
f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("婚庆款桃花醉.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/>', |
|
unsafe_allow_html=True) |
|
st.markdown('') |
|
st.markdown('### 婚庆款 - 桃花醉') |
|
st.markdown('类型:果酒') |
|
st.markdown('规格:500ml') |
|
st.markdown('品牌:花醉红尘') |
|
st.markdown('价格:¥198.00') |
|
|
|
|
|
industry_information = st.expander('行业资讯', expanded=False) |
|
industry_information.markdown('## 行业资讯') |
|
industry_information.markdown('[花之天下,花醉红尘鲜花酒](https://www.huazuihongchen.cn/nd.jsp?id=14)') |
|
industry_information.markdown('[花果酒前景分析](https://www.huazuihongchen.cn/nd.jsp?id=4)') |
|
industry_information.markdown('[钟爱花果酒](https://www.huazuihongchen.cn/nd.jsp?id=3)') |
|
|
|
st.markdown('## 公司简介') |
|
st.markdown('### 广州醉红尘贸易有限公司') |
|
st.markdown('广州醉红尘贸易有限公司是一家位于广州市花都区的贸易公司,成立于2022年。公司主营酒类商品,涵盖国内外商品贸易、进出口贸易、跨境电商等领域。公司秉承“诚信、务实、创新、共赢”的经营理念,致力于为客户提供优质的商品和服务。') |
|
st.markdown( |
|
f'''{my_style}# <span class="tag"><a href="tel:4008705876" target="_blank" style="text-decoration: none;">招商加盟热线:4008705876 </span></a> |
|
''', unsafe_allow_html=True) |