Skip to content

Commit

Permalink
update: add pricing and rate limits for the api, terms and faq.
Browse files Browse the repository at this point in the history
  • Loading branch information
imprvhub committed Aug 25, 2024
1 parent c1e5cbe commit 15316ad
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 105 deletions.
28 changes: 15 additions & 13 deletions src/components/scripts/PricingPlanChange.astro
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<!-- Pricing plans: A simple script to toggle the pricing plans between annualy and monthly -->
<script>
document.addEventListener('astro:page-load', () => {
const pricingTypeCheckbox = document.getElementById('pricingType')
const montlyLabel = document.getElementById('monthlyLabel')
const annualyLabel = document.getElementById('annualLabel')
const plans = ['plan-0', 'plan-1', 'plan-2']
const pricingTypeCheckbox = document.getElementById('pricingType');
const monthlyLabel = document.getElementById('monthlyLabel');
const annualLabel = document.getElementById('annualLabel');
// Actualiza el array de planes para incluir todos los planes
const plans = ['plan-0', 'plan-1', 'plan-2', 'plan-3']; // Asegúrate de que estos IDs coincidan con los elementos en tu HTML

if (pricingTypeCheckbox) {
pricingTypeCheckbox.addEventListener('change', function () {
plans.forEach((plan) => {
const planElement = document.getElementById(plan)
const planElement = document.getElementById(plan);

if (planElement && montlyLabel && annualyLabel) {
planElement.classList.toggle('pricing--annualy')
planElement.classList.toggle('pricing--monthly')
montlyLabel.classList.toggle('text-primary-500')
annualyLabel.classList.toggle('text-primary-500')
if (planElement && monthlyLabel && annualLabel) {
planElement.classList.toggle('pricing--annualy');
planElement.classList.toggle('pricing--monthly');
monthlyLabel.classList.toggle('text-primary-500');
annualLabel.classList.toggle('text-primary-500');
}
})
})
});
});
}
})
});
</script>
17 changes: 4 additions & 13 deletions src/config/footerNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,17 @@ export const footerNavigationData: FooterData = {
{
category: 'Resources',
subCategories: [
// {
// subCategory: 'Features',
// subCategoryLink: '/features'
// },
// {
// subCategory: 'API',
// subCategoryLink: '/api'
// },
// {
// subCategory: 'Pricing',
// subCategoryLink: '/pricing'
// },
{
subCategory: 'Changelog',
subCategoryLink: '/changelog'
},
// {
// subCategory: 'API Reference',
// subCategoryLink: '/api'
// },
]
},


{
category: 'Info & Support',
subCategories: [
Expand Down
21 changes: 20 additions & 1 deletion src/data/json-files/faqData.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"question": "What is the Fast-AI Dream Analyzer tool at AnalyzeMyDream.com?",
"reply": "Our Fast-AI Dream Analyzer uses the Gemini-1.5-Flash model to provide additional dream interpretations when the specific analyses you're looking for are not in our glossary. The tool aims to complement existing content with AI-generated insights, but results may not always be precise or consistent. It is important not to rely solely on this tool for personal understanding.",
"reply": "Our Fast-AI Dream Analyzer uses the Gemini-1.5-Flash model to provide additional dream interpretations when the specific analyses you're looking for are not in our Explore section. The tool aims to complement existing content with AI-generated insights, but results may not always be precise or consistent. It is important not to rely solely on this tool for personal understanding.",
"category": "dream-analysis",
"open": true
},
Expand Down Expand Up @@ -52,5 +52,24 @@
"reply": "Yes, our articles are regularly updated to include new research and relevant texts. We maintain an updated list of references to ensure that the information we provide is accurate and current.",
"category": "references",
"open": false
},
{
"question": "What functionalities does the AnalyzeMyDream API offer?",
"reply": "AnalyzeMyDream API provides a range of functionalities, including advanced AI-driven dream analysis and access to academic content related to dream interpretation. You can use the API to submit dreams for interpretation using sophisticated AI models, as well as retrieve articles and analysis supported by academic literature. This allows you to integrate both AI-generated insights and research-backed content into your applications.",
"category": "api",
"open": false
},
{
"question": "How can I obtain an API key to use AnalyzeMyDream?",
"reply": "To generate your API key, please go to the 'API' section in the top navigation bar where you can follow the instructions to create and manage your API key.",
"category": "api",
"open": false
},
{
"question": "What are the usage limits for the AnalyzeMyDream API?",
"reply": "The AnalyzeMyDream API is currently in beta phase and is available for free. However, we plan to introduce usage limits and pricing plans in the near future. For now, you can use the API without restrictions, but please be aware that usage policies may change as we move towards a full release.",
"category": "api",
"open": false
}

]
177 changes: 102 additions & 75 deletions src/data/json-files/pricingTablesdata.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,105 @@
[
{
"header": {
"title": "",
"subtitle": "",
"currency": "",
"price": "",
"priceLabel": "",
"priceMontly": "",
"priceLabelMontly": "",
"buttonName": "",
"buttonLink": ""
},
"body": {
"listItems": [
{ "listItem": "" },
{ "listItem": "" },
{ "listItem": "" }
]
},
"footer": {
"buttonName": "",
"buttonLink": ""
},
"type": ""
},
{
"header": {
"title": "",
"subtitle": "",
"currency": "",
"price": "",
"priceLabel": "",
"priceMontly": "",
"priceLabelMontly": "",
"buttonName": "",
"buttonLink": ""
},
"body": {
"listItems": [
{ "listItem": "" },
{ "listItem": "" },
{ "listItem": "" },
{ "listItem": "" }
]
},
"footer": {
"buttonName": "",
"buttonLink": ""
},
"type": ""
},
{
"header": {
"title": "",
"subtitle": "",
"currency": "",
"price": "",
"priceLabel": "",
"priceMontly": "",
"priceLabelMontly": "",
"buttonName": "",
"buttonLink": ""
},
"body": {
"listItems": [
{ "listItem": "" },
{ "listItem": "" },
{ "listItem": "" }
]
},
"footer": {
"buttonName": "",
"buttonLink": ""
},
"type": ""
}
"header": {
"title": "Basic Plan",
"subtitle": "Perfect for casual users",
"currency": "$",
"price": "0",
"priceLabel": "year, billed annually",
"priceMontly": "0",
"priceLabelMontly": "month",
"buttonName": "Sign Up",
"buttonLink": "/sign-up/basic"
},
"body": {
"listItems": [
{ "listItem": "1000 requests per month" },
{ "listItem": "Basic support" },
{ "listItem": "No advanced features" }
]
},
"footer": {
"buttonName": "Choose Basic",
"buttonLink": "/choose/basic"
},
"type": "basic"
},
{
"header": {
"title": "Pro Plan",
"subtitle": "For professional users",
"currency": "$",
"price": "40.80",
"priceLabel": "year, billed annually",
"priceMontly": "4",
"priceLabelMontly": "month",
"buttonName": "Get Started",
"buttonLink": "/sign-up/pro"
},
"body": {
"listItems": [
{ "listItem": "15000 requests per month" },
{ "listItem": "Priority support" },
{ "listItem": "Access to advanced features" },
{ "listItem": "Analytics dashboard" }
]
},
"footer": {
"buttonName": "Choose Pro",
"buttonLink": "/choose/pro"
},
"type": "pro"
},
{
"header": {
"title": "Ultra Plan",
"subtitle": "For high-demand users",
"currency": "$",
"price": "95.52",
"priceLabel": "year, billed annually",
"priceMontly": "9.95",
"priceLabelMontly": "month",
"buttonName": "Subscribe Now",
"buttonLink": "/sign-up/ultra"
},
"body": {
"listItems": [
{ "listItem": "250000 requests per month" },
{ "listItem": "24/7 support" },
{ "listItem": "Premium features" },
{ "listItem": "Advanced analytics" }
]
},
"footer": {
"buttonName": "Choose Ultra",
"buttonLink": "/choose/ultra"
},
"type": "ultra"
},
{
"header": {
"title": "Mega Plan",
"subtitle": "For the most demanding users",
"currency": "$",
"price": "315",
"priceLabel": "year, billed annually",
"priceMontly": "35",
"priceLabelMontly": "month",
"buttonName": "Sign Up Now",
"buttonLink": "/sign-up/mega"
},
"body": {
"listItems": [
{ "listItem": "1,000,000 requests per month" },
{ "listItem": "Dedicated support" },
{ "listItem": "All features included" },
{ "listItem": "Custom analytics" }
]
},
"footer": {
"buttonName": "Choose Mega",
"buttonLink": "/choose/mega"
},
"type": "mega"
}
]
2 changes: 1 addition & 1 deletion src/pages/api.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const header = {
<a href="https://analyzemydream.com/api">
<span class="base-url-button">BASE URL</span>
<span class="title">AnalyzeMyDream API</span>
<span class="path"><strong style="color: #fff;">https://analyzemydream-api-key.vercel.app</strong></span>
<span class="path"><strong style="color: #fff;">https://analyzemydream-api.vercel.app</strong></span>
</a>
</li>
</ul>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/faq.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import faqData from '../data/json-files/faqData.json'
// - FAQ Categories
const faqDreamAnalysis = faqData.filter((faq) => faq.category === 'dream-analysis')
const faqReferences = faqData.filter((faq) => faq.category === 'references')
const faqApi = faqData.filter((faq) => faq.category === 'api')
// - SEO
const SEO = {
Expand All @@ -38,5 +39,10 @@ const header = {
text="Discover the sources and references that form the foundation of our dream analysis articles. Learn more about the books and studies we use to ensure accurate and reliable interpretations."
data={faqReferences}
/>
<FAQ
title="AnalyzeMyDream API: Key Information"
text="Explore the key aspects of our API, including its functionalities, how to obtain an API key, and details about usage limits. This section provides essential information for integrating and utilizing our API effectively."
data={faqApi}
/>
<CTA />
</Layout>
37 changes: 35 additions & 2 deletions src/pages/terms.astro
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const header = {
<div class="basic-text">
<h4>AI Tool Disclaimer and Age Restriction</h4>
<p>
The AI-powered dream analyzer tool available on AnalyzeMyDream.com is designed to provide additional interpretations to users when the specific dream analysis they are seeking does not appear in our <a href="https://analyzemydream.com/blog/" target="_blank">glossary</a>. This feature aims to offer a more comprehensive understanding by supplementing the existing content with AI-generated insights. The AI may produce results that are inaccurate, inconsistent, or deviate from traditional interpretations. Therefore, we do not guarantee the accuracy or reliability of the information provided.
The AI-powered dream analyzer tool available on AnalyzeMyDream.com is designed to provide additional interpretations to users when the specific dream analysis they are seeking does not appear in our <a href="https://analyzemydream.com/blog/" target="_blank"><strong>Explore</strong> </a>section. This feature aims to offer a more comprehensive understanding by supplementing the existing content with AI-generated insights. The AI may produce results that are inaccurate, inconsistent, or deviate from traditional interpretations. Therefore, we do not guarantee the accuracy or reliability of the information provided.
</p>
<p>
The tool utilizes the Gemini-1.5-Flash model, which has its own set of limitations and constraints. The use of this AI tool is at your own risk, and AnalyzeMyDream.com does not assume responsibility for any decisions, actions, or outcomes that result from the use of the AI-generated content. Users should exercise caution when considering the interpretations provided by the AI and should not depend exclusively on them for understanding or addressing personal matters.
Expand All @@ -107,6 +107,39 @@ const header = {
</p>
</div>
</SidebarContent>
<SidebarContent>
<div slot="sidebar">
<h3>AnalyzeMyDream API</h3>
<p>
This section outlines the terms and conditions related to the AnalyzeMyDream API. It provides information on accessing and using our API to integrate dream analysis functionalities into your projects.
</p>
</div>
<div class="basic-text">
<h4>API Usage Disclaimer and Best Practices</h4>
<p>
The AnalyzeMyDream API is designed to offer seamless integration of dream analysis functionalities into your applications. While we strive to provide accurate and reliable data through our API, we do not guarantee the completeness or accuracy of the information provided. The API's responses are generated based on available data and may vary in interpretation.
</p>
<p>
Users of the AnalyzeMyDream API are expected to adhere to best practices for API usage, including but not limited to:
<ul>
<li>Respecting rate limits and usage quotas to avoid service disruptions.</li>
<li>Securing API keys and not sharing them publicly or with unauthorized parties.</li>
<li>Handling user data responsibly and in accordance with relevant privacy regulations.</li>
<li>Monitoring and logging API usage for security and performance purposes.</li>
</ul>
</p>
<p>
The use of the AnalyzeMyDream API is at your own risk. We are not responsible for any misuse of the API or any consequences that may arise from such misuse. This includes, but is not limited to, any legal, financial, or other any other damages that may result from improper use of the API or its data. It is the responsibility of the API users to ensure that their use complies with all applicable laws and regulations.
</p>
<p>
By utilizing the AnalyzeMyDream API, you agree to the terms and conditions set forth by AnalyzeMyDream.com. For more detailed information about our API's usage, including rate limits, error handling, and request formatting, please refer to our comprehensive <a href="https://analyzemydream.com/api" target="_blank">API documentation</a>.
</p>
<p>
For any questions or issues related to the API, please contact us at <a href="mailto:contact@ivanluna.dev">contact@ivanluna.dev</a>. We are committed to providing support and addressing any concerns you may have regarding API integration.
</p>
</div>
</SidebarContent>

<SidebarContent>
<div slot="sidebar">
<h3>Contact Information</h3>
Expand Down Expand Up @@ -159,7 +192,7 @@ const header = {
<p>
<strong>Waiver:</strong> Our failure to enforce any right or provision of these terms will not be considered a waiver of those rights.
</p>
<p><em>Last updated: August 14, 2024</em></p>
<p><em>Last updated: August 25, 2024</em></p>
</div>
</SidebarContent>
</Layout>

0 comments on commit 15316ad

Please sign in to comment.