Commit graph

266 commits

Author SHA1 Message Date
Emil Gulamov
b9ad4143a5 Handle optional 'tags' field in blog posts
A conditional chaining operator has been added while mapping over post data tags to handle cases where the 'tags' field might not be present. This prevents the application from crashing in case 'tags' is undefined for a particular blog post.
2024-02-17 08:45:15 +04:00
Emil Gulamov
a5c2e6bbde Add blog and avatar page components
This code introduces new Astro components for the blog pages and avatar elements, along with their corresponding layout and display factors. It also includes relevant asset imports, formatting utility functions, and mapping of blog content collection for dynamic content presentation.
2024-02-17 08:16:25 +04:00
Emil Gulamov
bfc01cc16d Add new card components for blog and product sections
Introduced four new Astro components: CardBlog, CardBlogRecent, CardSmall and CardWide, designed for displaying blog entries and products. These components have been equipped with asset imports, content collection types, and interactive prefetch links for better user experience and performance.
2024-02-17 08:16:16 +04:00
Emil Gulamov
771a3aacd9 Add GSAP library to project
A minified version of the GSAP (GreenSock Animation Platform) library has been added to the scripts/vendor directory. This library will be used to provide rich, high-performance animations for various components within the project.
2024-02-17 08:16:05 +04:00
Emil Gulamov
c15383a7f5 Add inline scripts and adjust webpage content
Added inline scripts for tabs and accordion features in the FeaturesNavs and FAQ components respectively. Also, adjusted the comment in FAQ component and made changes in the FooterSection component for improved content display. Adjusted the margin and added anchor tag in the copyright section.
2024-02-17 08:15:22 +04:00
Emil Gulamov
c8e5d89c04 Update product display and blog contents functionality
Replaced the image components with card components in the product section to enhance product display. Modified the grid layout for enhanced product representation. Also, implemented the complete functionality of the blog section by defining the blog collection, adding blog cards and content, and refining meta data in MainLayout for SEO optimization. Adjusted animation timeline and script paths for better load performance.
2024-02-17 08:15:15 +04:00
Emil Gulamov
10708a3d35 Add new scripts to Navbar and enhance NavLink's functionality
New scripts added to 'Navbar' component improve design functionality. 'NavLink' handling of current page has been refined to accurately reflect the current user's location with the addition of splitting the URL pattern. Changes in 'MainLayout' reflect updated script paths to match recent directory changes. These refinements improve usability and streamline codebase.
2024-02-17 08:14:59 +04:00
Emil Gulamov
f1fa424976 Remove unused GSAP library from public assets
The GSAP (GreenSock Animation Platform) JavaScript library was not in use, thus the gsap.min.js file has been deleted from the public/assets/vendor directory. This removal is part of codebase cleanup to improve application performance and efficiency.
2024-02-17 08:14:46 +04:00
Emil Gulamov
c14e7fbdb3 Ensure product images conditional rendering in astro file
Updated 'src/pages/products/[...slug].astro' to conditionally render product images only when they exist. Prevents potential errors or breaks in layout when there is an absence of either 'first' or 'second' blueprint images for a particular product.
2024-02-16 19:39:52 +04:00
Emil Gulamov
502aee8b33 Create new astro file for product pages with implemented layout
Introduced a new astro file 'src/pages/products/[...slug].astro' to handle individual product pages. This file imports necessary components and templates the main layout of a product page. The layout includes methods for fetching products, providing static paths, and scripts for page interactivity.
2024-02-16 19:27:29 +04:00
Emil Gulamov
389e17334f Update product images paths and optimize scripts order in MainLayout
Changed the paths of main product images for each product for clarity and better organization. Also rearranged the order of scripts in 'MainLayout.astro' to improve efficiency and made image properties in 'config.ts' optional for better flexibility in handling blueprint images.
2024-02-16 19:27:15 +04:00
Emil Gulamov
88b246d366 Remove 'prod.astro' and make image component properties optional
The 'prod.astro' page is deleted as a part of refactoring process. Also, title, src, alt, and url properties of ImgSmall and ImgWide components are now optional, which provides greater flexibility and reduces risk of errors when these components are used in various parts of application.
2024-02-16 08:43:28 +04:00
Emil Gulamov
33c942f261 Migrate product content to Markdown format and add new features
Product information previously stored in JSON files has been migrated to Markdown format for efficient content management. Additionally, added a new button component for 404 pages to improve navigation and user experience. Defined a new schema for product collections and included GSAP JavaScript library for future animations.
2024-02-16 08:36:04 +04:00
Emil Gulamov
e58364effb Correct paths for image imports in product page
The paths referencing images in the product page were corrected. Initial paths were relative to the current file but they should be relative to the root directory, thus an additional navigation step with "../" was added for each import statement.
2024-02-15 18:54:34 +04:00
Emil Gulamov
e8a16def34 Refactor file structure and enhance security headers
Removed blog and product pages and moved their contents to new blog and product directories, respectively. Added a new 404 error page for invalid routes. Updated server configurations in 'vercel.json' to leverage additional security by adding 'cdnjs.cloudflare.com' to Content-Security-Policy headers.
2024-02-15 18:42:07 +04:00
Emil Gulamov
885c0f9754 Add new "SF-BN B203" product description and implement product details page
The new product file "b203.json" was added to the product description containing detailed descriptions, features and product aspects. In the "prod.astro" file, a product details page was implemented, which fetches data from the JSON file and presents it to the user. The changes also included the development of a "ProductTabBtn" component to improve code modularity and the user interface.
2024-02-15 10:07:14 +04:00
Emil Gulamov
539837b6d9 Improve code readability and simplicity
Condensed the code by breaking down long lines into multiple lines and removing unneeded classes in several UI components. The changes enhance readability, declutter the codebase, and result in a more accessible and maintainable code structure.
2024-02-15 10:06:55 +04:00
Emil Gulamov
6f7f2ec4d4 Refactor codebase
All changes aim to clean up the codebase and eliminate unused or unnecessary code.
2024-02-15 00:35:36 +04:00
Emil Gulamov
a7e4f49d7a Refactor codebase
All changes aim to clean up the codebase and eliminate unused or unnecessary code.
2024-02-15 00:22:32 +04:00
Emil Gulamov
5881b7798b Refactor codebase
All changes aim to clean up the codebase and eliminate unused or unnecessary code.
2024-02-15 00:17:43 +04:00
Emil Gulamov
2272b189de Add alt attribute to Avatar images and improve FAQ function
Added 'alt' attribute to all Avatar component images improving accessibility and SEO of the website. Adjusted the function makeId inside FAQ component to accept any type of base and index providing more flexibility.
2024-02-14 23:02:05 +04:00
Emil Gulamov
6025dc07db Add new UI components and secure headers configuration
Introduced new UI components including testimonial section, avatar, and image elements. Configured secure headers in vercel.json file to enhance security. These changes improve both the aesthetic appeal and security of the website.
2024-02-14 22:57:02 +04:00
Emil Gulamov
a9b4e8c0dc Update testimonials and improve code readability
Refactored the image URL in testimonials and reduced redundancy in the FeaturesStats and accordion components, enhancing code readability. Also, implemented dynamic id generation in the FAQ component, improving scalability and maintainability. Added new pages to the website and updated the meta information, improving SEO.
2024-02-14 22:56:43 +04:00
Emil Gulamov
fbc2128cdb Add new UI components and sections
Added new UI components including Checkbox, StatsBig, and StatsSmall for forms and stats display. Additionally, new layout sections such as FeaturesStats, LeftSection, RightSection, MainSection were added. These various additions and improvements aim to enhance the website's interface and interaction for users.
2024-02-14 05:49:44 +04:00
Emil Gulamov
b8097da9ab Add ContactIconBlock and revamp contact form
Implemented a new ContactIconBlock in the UI, including its Astro file and related props. Also added various form input components including EmailContactInput, PhoneInput, and PasswordInput for a more comprehensive contact section. Updated ContactSection with the new input fields and improved structure for better user experience and functionality.
2024-02-14 05:48:53 +04:00
Emil Gulamov
443597b15d Remove unused authentication components and settings
Due to design changes, removed old authentication components and related configuration settings in .idea and .vscode folders. Changes include elimination of subscription input, email input, login and register modals, and user interface blocks. All changes aim to clean up the codebase and eliminate unused or unnecessary code.
2024-02-14 05:47:32 +04:00
Emil Gulamov
829d87be7c Update image format and adjust page layout
Image format has been updated to avif format in TabContent.astro, FeaturesGeneral.astro for better performance. Metadata in Meta.astro was also updated to provide precise information about the website. Layout changes were made in HeroSection2.astro for better visual representation.
2024-02-13 06:19:17 +04:00
Emil Gulamov
aa2662df78 Add new authentication components and footer section
Introduced new user interface components used for authentication pages, including LoginModal, RegisterModal, RecoverModal, and associated input elements. Added a comprehensive FooterSection containing links to main site areas and social media platforms. These updates enhance the usability and functionality of the application's user registration and navigation.
2024-02-13 05:51:18 +04:00
Emil Gulamov
6610a27857 Update image handling and responsive button text sizing
Simplified image handling configuration in the "astro.config.mjs" by removing explicit sizing. Updated text sizing of PrimaryCTA and SecondaryCTA components to scale responsively in 2xl views. Aimed to improve the user interface and experience on larger screens.
2024-02-13 05:50:53 +04:00
Emil Gulamov
e18dff550c
Merge pull request #2 from mearashadowfax/dependabot/npm_and_yarn/astro-4.3.6
Bump astro from 4.3.5 to 4.3.6
2024-02-12 14:15:25 -08:00
Emil Gulamov
d490a396dc
Merge pull request #1 from mearashadowfax/dependabot/npm_and_yarn/astrojs/check-0.5.3
Bump @astrojs/check from 0.5.2 to 0.5.3
2024-02-12 14:15:12 -08:00
dependabot[bot]
bb71a4ed33
Bump astro from 4.3.5 to 4.3.6
Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.3.6/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:49:04 +00:00
dependabot[bot]
8033627afc
Bump @astrojs/check from 0.5.2 to 0.5.3
Bumps [@astrojs/check](https://github.com/withastro/language-tools/tree/HEAD/packages/astro-check) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/withastro/language-tools/releases)
- [Changelog](https://github.com/withastro/language-tools/blob/main/packages/astro-check/CHANGELOG.md)
- [Commits](https://github.com/withastro/language-tools/commits/@astrojs/check@0.5.3/packages/astro-check)

---
updated-dependencies:
- dependency-name: "@astrojs/check"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:48:43 +00:00
Emil Gulamov
2acfdaa84a Simplify image configuration and update button text sizing
The image handling configuration within astro.config.mjs has been simplified by removing explicit sizing and format details. Concurrently, button text sizing for both PrimaryCTA and SecondaryCTA components has been updated to scale responsively on 2xl views, ensuring better user interface on larger screens.
2024-02-12 17:36:50 +04:00
Emil Gulamov
bae3f6f61e Update image configuration in astro.config.mjs
The image configuration in the astro.config.mjs file has been extended to include empty domains and AVIF and WebP formats. This adjustment will enhance image handling capabilities and ensure compatibility with a wider range of image formats.
2024-02-12 17:30:54 +04:00
Emil Gulamov
0733181d6d Add new pages 2024-02-12 17:24:30 +04:00
Emil Gulamov
9b5d157267 Update website configuration and improve UI
The website's configuration is updated with new site URL and vercelStatic adapter modified with image configuration. The UI is also enhanced, with color and aspect ratio adjustments in PricingSection and TabContent. Moreover, image sizes in ClientsSection are regularized.
2024-02-12 17:17:04 +04:00
Emil Gulamov
5e2a3f88b9 Add NavLink component for navbar
This commit introduces a reusable NavLink component for the navigation bar. This component has a script to highlight the active link by comparing the current URL with each link's href. It also improves code readability by separating concerns.
2024-02-12 17:16:21 +04:00
Emil Gulamov
5f51d16307 Fix incorrect attribute in Navbar component SVG
Remove extraneous single character attribute 'f' from the SVG rect element in the Navbar component of astro file. This correction ensures that the SVG renders correctly, maintaining the desired appearance of the Navbar.
2024-02-12 08:05:59 +04:00
Emil Gulamov
9eaa6e209e Fix incorrect attribute in Navbar component SVG
Remove extraneous single character attribute 'f' from the SVG rect element in the Navbar component of astro file. This correction ensures that the SVG renders correctly, maintaining the desired appearance of the Navbar.
2024-02-12 07:49:09 +04:00
Emil Gulamov
f8924c1c8b Add Navbar component and update Meta component
Introduce a new Navbar component to improve site navigation. The component features a brand logo, navigation links, auto theme detection, and theme switcher. In existing Meta component, update the socialImage path for better SEO and social sharing.
2024-02-12 07:43:21 +04:00
Emil Gulamov
2530eb2316 Add new SVG icon, web manifest, meta component, and robots.txt
Introduce an SVG icon to the project and establish a new web manifest containing app details and icon information. Add a Meta component to serve structured site metadata for better web presentation and search engine optimization. Include a new robot.txt to instruct web crawlers. The addition of these elements promotes better site recognition and SEO, enhancing user navigation and experience.
2024-02-12 07:37:22 +04:00
Emil Gulamov
3f6efbc54f Update dependencies and adjust styles
Added new dependencies to the Astro and npm configuration files which includes sitemap, vercel, and other packages. Removed the HSThemeAppearance script in ThemeIcon.astro and the favicon.svg file. Made minor adjustments to the class attributes of some components in HeroSection.astro for styling purposes. These changes aim to enhance website performance and user experience. Furthermore, the addition of the sitemap package will help improve website SEO.
2024-02-12 07:36:55 +04:00
Emil Gulamov
6eeb74c235 Implement AccordionItem component and FAQ section
Implemented a new AccordionItem component and a Frequently Asked Questions (FAQ) section on the website. The AccordionItem component is a reusable, customizable accordion-style UI element that can be used for compact, expandable content presentation. The FAQ section uses the AccordionItem to present a list of commonly asked questions and their answers, with a clean expand/collapse interaction for readability.
2024-02-12 05:46:48 +04:00
Emil Gulamov
da00757a63 Add MainLayout to Astro layouts
Implemented MainLayout with essential HTML structure including title, lenis library for scrolling, and theme choices in Astro.js. The MainLayout provides a foundational layout for the application, complete with pre-configured scripts for handling user preferences such as dark mode, and scripts for handling smooth scrolling behavior with the lenis library.
2024-02-12 05:46:39 +04:00
Emil Gulamov
66bbe9f963 Rename 'paragraph' prop to 'content' across components
The 'paragraph' prop has been updated to 'content' in Astro components to provide more flexibility in what content it can include. This change affects IconBlock, TabNav, FeaturesNavs, and FeaturesGeneral components, ensuring the prop name is consistently used throughout and reflects its function more accurately.
2024-02-12 05:46:27 +04:00
Emil Gulamov
e4df26307d Add PricingSection component with product blocks
Added a new PricingSection component which includes blocks for 'Starter Kit' and 'Professional Toolbox' products. Each product block specifies pricing, features and a CTA button. Also included a general CTA offering enterprise solutions.
2024-02-12 04:48:34 +04:00
Emil Gulamov
41deaa4fbf Refactor component names and add newline in SecondaryCTA
Refactored the names of the Testimonials and Pricing components to TestimonialsSection and PricingSection for better understanding. Also fixed the lack of newline at the end of file in SecondaryCTA component.
2024-02-12 04:48:22 +04:00
Emil Gulamov
4c434628e1 Create Testimonials component with dynamic content
This commit adds a new Testimonials component for the ScrewFast project. The component includes the implementation of `Testimonial` and `StatProps` data types, which are used to display dynamic content. Testimonials and statistics are provided through arrays, which are then mapped to generate respective page elements.
2024-02-12 04:13:57 +04:00
Emil Gulamov
d19d0d799d Add ThemeIcon component to switch between dark and light mode
Introduces a new component 'ThemeIcon' to enable a smooth switch between light and dark themes based on user preference. This improvement includes a drop-down menu for the users to select their preferred mode and also defines theme-related functionalities inside an object called 'HSThemeAppearance'. Further, it incorporates respective event listeners to effectively handle theme change events.
2024-02-12 03:50:50 +04:00