Closed kohta9521 closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
blog-site-kohta | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 15, 2024 6:46am |
The recent updates enhance the AdBox
component by dynamically fetching and displaying affiliate content. This involves changes to the component's structure, styling adjustments for responsiveness, and the addition of a utility function to randomly select affiliate HTML snippets. The ArticleLayout
styling was also modified to improve layout behavior.
Files Changed | Change Summary |
---|---|
frontend/src/components/molecules/AdBox.tsx |
Updated AdBox to fetch and render dynamic affiliate content using getRandomAffiliate() . |
frontend/src/components/molecules/styles/AdBox.module.scss |
Added media queries for responsive styling of .adBox component. |
frontend/src/components/templates/styles/ArticleLayout.module.scss |
Changed .articleBox display property from flex to block for layout adjustments. |
frontend/src/data/affiliate.ts |
Expanded affiliateHTML to include more HTML snippets for affiliate links. |
frontend/src/utils/getRandomAffiliate.ts |
Introduced getRandomAffiliate function to select random affiliate HTML from a list. |
🐇 In the code where ads do sway, Dynamic content now holds sway. With styles that flex and bend with ease, And snippets that the eye do please. The layout shifts, the ads align, A better view for all to find. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
AdBox
component.Style
AdBox
to enhance responsiveness on screens with a maximum width of 1280px.ArticleLayout
for better content alignment.Content Updates