Download newsletter_examples/2.html from bsassoli/smartrec: direct link, hf CLI and curl.
- Browser
- Download file 9.99 kB
-
https://huggingface.co/spaces/bsassoli/smartrec/resolve/main/newsletter_examples/2.html
- Command line
-
hf download hf://spaces/bsassoli/smartrec/newsletter_examples/2.html
-
curl -L -o 2.html https://huggingface.co/spaces/bsassoli/smartrec/resolve/main/newsletter_examples/2.html
9.99 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Your Personalized Style Curation</title> | |
| <style> | |
| /* Adjusted colors for better visibility */ | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| width: 100%; | |
| font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; | |
| line-height: 1.6; | |
| color: #2C2C2C; | |
| /* Darker gray for better contrast */ | |
| background-color: #FAF9F6; | |
| /* Light neutral background */ | |
| } | |
| .nlbackgroundcontainer { | |
| max-width: 600px; | |
| margin: 0 auto; | |
| padding: 30px; | |
| background-color: #FFFFFF; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| border: 1px solid #DDDDDD; | |
| /* Neutral border */ | |
| color: black; | |
| } | |
| .nlheader { | |
| text-align: center; | |
| padding: 20px 0; | |
| border-bottom: 1px solid #CCCCCC; | |
| margin-bottom: 30px; | |
| } | |
| .nlheader img { | |
| max-width: 200px; | |
| height: auto; | |
| } | |
| .nlsection { | |
| margin-bottom: 0px; | |
| } | |
| h1, | |
| h2, | |
| h3 { | |
| font-family: 'Didot', serif; | |
| color: #333333; | |
| /* Dark neutral tone for headings */ | |
| margin-bottom: 15px; | |
| } | |
| .nlsection-row { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: space-between; | |
| gap: 20px; | |
| } | |
| .bought-item, | |
| .product { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| width: calc(50% - 50px); | |
| margin: 10px 0; | |
| text-align: center; | |
| padding: 10px; | |
| background-color: #F9F9F9; | |
| border-radius: 8px; | |
| border: 1px solid #DDDDDD; | |
| transition: transform 0.3s ease; | |
| color: rgba(0, 0, 0, 0.1); | |
| } | |
| @media screen and (max-width: 600px) { | |
| .nlsection-row { | |
| flex-direction: column; | |
| } | |
| .bought-item, | |
| .product { | |
| width: 100%; | |
| margin: 10px 0; | |
| } | |
| } | |
| .bought-item:hover, | |
| .product:hover { | |
| transform: scale(1.02); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .deal-box { | |
| background-color: #F4F4F4; | |
| color: rgba(0, 0, 0, 0.1); | |
| padding: 20px; | |
| margin: 15px 0; | |
| border-radius: 8px; | |
| text-align: center; | |
| border: 1px solid #CCCCCC; | |
| } | |
| .nlbutton { | |
| display: inline-block; | |
| padding: 12px 25px; | |
| background-color: #5A5A5A; | |
| /* Neutral dark button */ | |
| color: #050505; | |
| text-decoration: none; | |
| border-radius: 5px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| transition: background-color 0.3s ease; | |
| } | |
| .nlbutton:hover { | |
| background-color: #333333; | |
| /* Slightly darker on hover */ | |
| } | |
| .nlfooter { | |
| text-align: center; | |
| padding: 20px; | |
| background-color: #F4F4F4; | |
| border-top: 1px solid #CCCCCC; | |
| font-size: 0.9em; | |
| } | |
| a { | |
| color: rgba(0, 0, 0, 0.1); | |
| /* Neutral dark links */ | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| text-decoration: underline; | |
| } | |
| .arrow { | |
| font-size: 1.5rem; | |
| color: #333333 ; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="nlbackgroundcontainer"> | |
| <!-- nlheader nlsection --> | |
| <div class="nlheader" style="display: flex; justify-content: center; align-items: center;"> | |
| <img src="${brand_logo}" alt="Brand Logo"> | |
| </div> | |
| <!-- Personal Greeting --> | |
| <div class="nlsection"> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; line-height: 1.5; color: black; letter-spacing: 0.5px; text-align: left;"> | |
| ${greeting} </p> | |
| </div> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; color: #333; line-height: 1.5; letter-spacing: 0.5px; text-align: left;"> | |
| ${intro} </p> | |
| <div> | |
| <div class="nlsection-row" style="justify-content: space-around;"> | |
| <h2 style="color:black;">Your selections</h2> | |
| <h2 style="color:black;">We think you'd like</h2> | |
| </div> | |
| </div> | |
| <!-- Previously Bought Items nlsection --> | |
| <div class="nlsection"> | |
| <div class="nlsection-row"> | |
| <div class="bought-item"> | |
| <img src=${transaction_url} alt="Previous Product 1"> | |
| <h3 style="color:black;"> ${transaction_name} </h3> | |
| </div> | |
| <div class="arrow"> | |
| → | |
| </div> | |
| <div class="product"> | |
| <img src=${recommendation_url} alt="Recommended Product 1"> | |
| <h3 style="color:black;">${recommendation_name}</h3> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recommended Items --> | |
| <div class="nlsection"> | |
| <div class="nlsection-row"> | |
| <div class="bought-item"> | |
| <img src=${transaction_url} alt="Previous Product 2"> | |
| <h3 style="color:black;">${transaction_name}</h3> | |
| </div> | |
| <div class="arrow"> | |
| → | |
| </div> | |
| <div class="product"> | |
| <img src=${recommendation_url} alt="Recommended Product 2"> | |
| <h3 style="color:black;">${recommendation_name}</h3> | |
| </div> | |
| </div> | |
| </div> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; color: #333; line-height: 1.5; letter-spacing: 0.5px; text-align: left; padding-bottom: 30px; margin-top: 30px;"> | |
| ${recommendations} </p> | |
| <div style="background-color: #EBEAE8; padding: 20px; border-radius: 10px;"> | |
| <h2 style="color:black;">See it all together</h2> | |
| <!-- Previously Bought Items nlsection --> | |
| <div class="nlsection"> | |
| <div class="nlsection-row"> | |
| <div class="bought-item"> | |
| <img src=${transaction_url_board} alt="Previous Product Board 1"> | |
| </div> | |
| <div class="product"> | |
| <img src=${recommendation_url_board} alt="Recommended Product Board 1"> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recommended Items --> | |
| <div class="nlsection"> | |
| <div class="nlsection-row"> | |
| <div class="bought-item"> | |
| <img src=${transaction_url_board} alt="Previous Product Board 2"> | |
| </div> | |
| <div class="product"> | |
| <img src=${recommendation_url_board} alt="Recommended Product Board 2"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Deals nlsection --> | |
| <div class="nlsection"> | |
| <h2 style="color: #8B6914;">Not Your Style?</h2> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; color: #333; line-height: 1.5; letter-spacing: 0.5px; text-align: left;"> | |
| Well, I always try my best and recommend what I think would suit you well, but hey, we all make | |
| mistakes, right? </p> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; color: #333; line-height: 1.5; letter-spacing: 0.5px; text-align: left;"> | |
| No worries though, I still have a lot of stuff for you! Take a look at these weekly deals! </p> | |
| <div class="deal-box"> | |
| <h3 style="color:black;"> 30% OFF ALL DRESSES</h3> | |
| <p style="color:black;">Exclusive Code: LSF30</p> | |
| </div> | |
| <div class="deal-box"> | |
| <h3 style="color:black;"> BUY 2 GET 1 FREE</h3> | |
| <p style="color:black;">On our curated accessories collection</p> | |
| </div> | |
| <p | |
| style="font-size: 18px; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; color: #333; line-height: 1.5; letter-spacing: 0.5px; text-align: left;"> | |
| ${closing} </p> | |
| </div> | |
| <!-- Call to Action --> | |
| <div class="nlsection" style="text-align: center;"> | |
| <h2 style="color:black;">Ready to Refine Your Wardrobe?</h2> | |
| <a href="#" class="nlbutton">View New Arrivals</a> | |
| <a href="#" class="nlbutton" style="background-color: #5D4037;">Book Styling Consultation</a> | |
| </div> | |
| <!-- nlfooter --> | |
| <div class="nlfooter"> | |
| <p style="font-weight: bold; color:black">The ${brand_name} Team</p> | |
| <p style="color:black;"> | |
| <small> | |
| You're receiving this curated selection because you're part of our stylish community. | |
| <a href="#">Unsubscribe</a> | <a href="#">View in Browser</a> | |
| </small> | |
| </p> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |