Commit graph

44 commits

Author SHA1 Message Date
Emil Gulamov
02487794e9 Add image and JSON data imports to index.astro
This commit includes importing several image files and JSON data files in 'index.astro'. It adds unique data imports for FAQ, features, and several feature images. It also modifies existing component props to use imported data, enhancing code reusability and maintainability.
2024-03-22 04:44:38 +04:00
newbeelearn
08e4a77b5f Add image source and alt to HeroSection
Added image source and alt to HeroSection so that images can be
passed to it. Right now it is hardcoded in HeroSection. This will improve
reusability of HeroSection by theme users.
2024-03-20 17:24:41 +05:30
Emil Gulamov
b4f128b6e2 Add Bookmark button functionality and update blog post layout
This commit introduces a new Bookmark button component along with its corresponding functionality using localStorage. It also updates the blog post layout by adding the Bookmark button, SocialShare, and PostFeedback components as well as restructuring the post tags section for better UI.
2024-03-17 08:04:59 +04:00
Emil Gulamov
e95dd9987a Update button title and make banner title optional
The button title on the main page has been changed to "Explore ScrewFast on GitHub". Also, the title for AnnouncementBanner is now optional, enabling use of the banner without a predefined title, increasing its reusability. The CSS styles have also been updated to accommodate these changes.
2024-03-07 02:05:02 +04:00
Emil Gulamov
b422d079fb Refactor event handlers to remove unused event parameter
In several areas of the code, event handlers had an unused event parameter. This change removes these unused parameters to improve the code's readability and maintainability. Specifically, the changes were made in the "Navbar.astro", "[...slug].astro", and "services.astro" components.
2024-02-24 23:59:08 +04:00
Emil Gulamov
bdfe5a4539 Remove 'bannerId' property from AnnouncementBanner
The 'bannerId' property has been removed from the AnnouncementBanner component as it is unneeded. This change has been reflected in both the component definition and places where the component is used, resulting in cleaner and more maintainable code.
2024-02-24 23:49:56 +04:00
Emil Gulamov
0d2c92052b Add new Announcement Banner component
Implemented a new Announcement Banner component on the main page. This banner features a dismiss button and is customizable with dynamic properties for title, bannerId, button Id, button title, and URL. Also, added a new SVG file for the banner's background pattern.
2024-02-24 23:39:00 +04:00
Emil Gulamov
f81a5542dd "Add example URL in blog page comments"
Included a comment in the '[...slug].astro' file within the src/pages/blog directory. This comment includes a URL providing an example of a more refined approach to choosing related blog posts.
2024-02-24 05:48:44 +04:00
Emil Gulamov
7910656bfa Refactor code for dynamic content generation
This commit refactors the code to enable dynamic content generation for three components: FeaturesStats, Meta, and services pages. The FeaturesStats component now receives statistics data through its props, enabling easier content updates. Similar changes have been made in Meta to use site URL from Astro configuration file and dynamically generate image URLs. The services pages code has been refactored to generate articles using an array, making it more maintainable and reusable. This improves the flexibility and scalability of the codebase.
2024-02-22 08:43:37 +04:00
Emil Gulamov
041ed7d55a Add TestimonialItem and StatsGrid components
This commit introduces two new components (TestimonialItem and StatsGrid) to modularize the display of testimonial and statistics information. It also updates the TestimonialsSection to utilize these new components and receive parameters through its props. The MainPage's data source has been adjusted to send the required props for these changes.
2024-02-22 08:43:19 +04:00
Emil Gulamov
2ec0e1975f Refactor and enhance components for better data handling
This commit refactors several components to improve data handling and flexibility. It primarily modifies the way data is passed as props to the components. By taking advantage of the flexibility that comes with the use of props, components such as HeroSection, FeaturesStatsAlt, and TestimonialsSectionAlt have been enhanced to adjust and render content dynamically. This creates an improvement in code reusability and maintainability across the application. Additionally, optional rendering has been added for secondary elements such as subtitles and buttons.
2024-02-21 22:01:09 +04:00
Emil Gulamov
38e8049299 Refactor README and adjust import paths after directory restructuring
The codebase has been optimised with a reorganisation of the component directories. This required modifications to some import paths to preserve functionality, notably in services.astro. The README file was also decluttered and reframed under development and deployment commands to improve new developer onboarding. These changes pave the way for better SEO performance and ease of extendibility.
2024-02-20 08:41:34 +04:00
Emil Gulamov
addbb5457a Refactor code and restructure directories
In response to the changes made to the directory structure of the project, the code has been refactored to adjust image import paths across various sections. It also involves reorganizing components into appropriate folders based on their roles in the application. Along with this, a new utility file for navigation links has been introduced, and configurations for authorizing remote images have been added to Astro configuration file, suggesting an enhancement in SEO performance.
2024-02-20 07:47:23 +04:00
Emil Gulamov
7a609e4a5c Refactor components to 'sections' directory and improve SEO
All component files have been moved to a newly created 'sections' directory for better organization. Changes in import paths are reflected in all dependent files. Also, implemented SEO enhancements by adding structured data and default meta descriptions to the Meta component, and adjusted it to accept these values as props from parent components.
2024-02-19 17:41:42 +04:00
Emil Gulamov
1730ce1bd4 Update website URL and optimize robots.txt settings
The website URL references in the project have been updated from 'https://screw-fast.vercel.app' to 'https://screwfast.uk'. In addition, the 'robots.txt' settings have been optimized to specify different crawl delays for different bots, providing a more granular control over how search engines interact with our website. Also, minor adjustments have been made to the PasswordInput component to streamline the 'aria-describedby' attribute.
2024-02-19 10:05:50 +04:00
Emil Gulamov
2d2bada884 Replace div tags with section tags in various components
The div HTML tags in various components of the project have been replaced with more appropriate section tags for better semantic structure. This affects the TestimonialsSection, Products, FeaturesStats, and several other components. Options for minifying JavaScript in the process-html file have also been updated. In the MainLayout, a main tag has been added to wrap page content for better accessibility and semantics.
2024-02-19 09:36:37 +04:00
Emil Gulamov
e3888b18cb Add HTML minification process and update dependencies
A new script for HTML minification has been added, which is run after the build process. Several dependencies were updated, including the Astro framework and its related plugins. The 'astro-critters' package and its usage in the Astro configuration were removed. A minor animation timing change was also made in the [...slug].astro file.
2024-02-19 08:58:15 +04:00
Emil Gulamov
f7f2f38d32 Update various UI elements and improve form error handling
This commit introduces adjustments to several UI elements, including title alignment, font sizes, and avatars loading. The updates aim to improve the overall visual appeal and user experience on the website. In addition, better error handling has been added to form inputs, including adding unique error IDs for each form's email input to enhance user feedback and accessibility.
2024-02-18 23:16:41 +04:00
Emil Gulamov
8d43521b45 Refactor multiple components, enhance comments, and rename
Refactored multiple Astro UI components, including sections, buttons, and modals, with a focus on code cleanliness and efficiency. This included revising import statements, reordering and redefining CSS classes, and updating HTML elements. Enhanced inline comments to add context and explanations, especially registering the purpose of components and properties for improved understanding. The Accordion-related functionality was removed, pointing towards a redesign of its element usage. Moreover, TestimonialsSection2 was renamed to TestimonialsSectionAlt for better semantics.
2024-02-18 07:41:36 +04:00
Emil Gulamov
03f0d73c45 Refactor code and enhance comments in multiple files
The changes made include code refactoring and reformatting in several files for better readability, and to adhere to best practices. Detailed and intuitive comments were added to the code, improving clarity and understanding of the codebase. There were also some class adjustments and minor changes in several files ranging from reordering class listings to updating element selections. Import statements were also modified for clarity. Accordion functionality was removed, potentially indicating a pending replacement or enhancement.
2024-02-18 07:40:53 +04:00
Emil Gulamov
c2dda2165b Update component codebase for readability and maintenance
Several component files have been refactored to improve code clarity and ease of maintenance. This includes introducing comprehensive comments explaining the functionality and purpose of sections of the code, as well as leveraging Astro.js for more streamlined data sourcing. The commit also includes the removal of redundant files from the vendor scripts directory as part of a general clean-up, improving overall codebase organization.
2024-02-18 07:39:53 +04:00
Emil Gulamov
04e8089294 Refactor several component files for improved maintainability
This commit refactors multiple component files for better understandability and maintainability. Detailed comments are added for enhanced readability. The data source is defined using Astro.js to simplify the process of acquiring data for the components. Unnecessary files like 'preline.js' from the vendor scripts directory are deleted as part of clean-up.
2024-02-18 07:39:17 +04:00
Emil Gulamov
69530ff398 Add "Insights" category and related components
A new category called "Insights" has been added to the blog. New components such as individual insights page layout and individual insights card have been added. The new components also include astro content files for individual insight articles. This provides users with more in-depth information and can potentially increase user engagement.
2024-02-18 00:55:43 +04:00
Emil Gulamov
ac22de1301 Add insights category and related articles section to blog
Code has been updated to include insights as a new category of blog posts. Each blog post now also includes a related articles section at the bottom. The new feature enriches the content offering for users and potentially increases user engagement. The code has also been cleaned up for readability and consistency, improving maintainability long term.
2024-02-18 00:55:32 +04:00
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
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
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
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
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
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
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
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
0733181d6d Add new pages 2024-02-12 17:24:30 +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
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
a24f4137a8 Refactor component names and clean up comment formatting
In this commit, the 'Clients' component has been renamed to 'ClientsSection' for improved clarity. Additionally, the formatting of comment blocks across multiple .astro files has been adjusted to keep the cade cleaner and more uniform across the project.
2024-02-12 03:50:17 +04:00
Emil Gulamov
0cf3fe8299 Add more components to index.astro
The index.astro page has been updated with the addition of several new components to provide more reusable structures. These components include MainLayout, Navbar, HeroSection, Clients, FeaturesGeneral, FeaturesNavs, Testimonials, Pricing, and FAQ, to form the structure of the landing page.
2024-02-11 22:47:13 +04:00
Emil Gulamov
d5b8e0527b Add initial project setup with Astro
This commit includes the introduction of Astro project setup files, including the configuration. The main change is the addition of the configuration file `astro.config.mjs`, where Tailwind is set up for Astro integration. It also adds `.gitignore` files, a `package.json`, and setup files for VSCode and IntelliJ IDEA. The project includes a favicon and a simple Astro page. It comes with a `package-lock.json` file which locks down the versions of each dependency ensuring that installs generate the exact same tree across machines.
2024-02-10 03:49:51 +04:00