
Manish Patel
@savvystriderAll comments
- @deepika9107@savvystrider
If you're using SVG code in your HTML, you can change the
fill
orstroke
color directly in the markup or through CSS. If you're importing the SVG as a file, you can open up the code in any text editor and change thestroke
and/orfill
colorsMarked as helpful - @Richardesan@savvystrider
The page looks great and the responsiveness functions well. The only thing I noticed is that the font is not displaying. Looks like the import is commented out in your
index.css
file:/* @import url('https://fonts.google.com/specimen/Epilogue'); */ @font-face { font-family: "Epilogue"; src: local ("Epilogue") url(../fonts/Epilogue/Epilogue-Italic-VariableFont_wght.ttf) format("truetype"); }
- @ScytheProduction@savvystrider
The easiest way I've learned to properly center an element like this is to apply the following styles to the
body
element:display: grid;
min-height: 100vh;
place-items: center;
Marked as helpful - @Sbeveandbeyond@savvystrider
Looks great! The only thing I would recommend is adding some transitions to the hover effects/active states.
- @Eze-Alarcon@savvystrider
Wow, looks amazing! I noticed a few minor issues with the modal:
- clicking anywhere inside the modal closes the modal
- scrolling up and down with the modal open causes the background to scroll up/down
- @therapy181@savvystrider
Your project looks great! To get your background images to appear, you will have to make a minor modification to your CSS:
.circle-background
and.circle-background2
need a period added inside the parentheses for theurl
background-image: url('./images/bg-pattern-bottom.svg')
instead ofbackground-image: url('/images/bg-pattern-bottom.svg')
. - @devDevaa@savvystrider
Looks awesome! The main text is a bit hard to read against the background (not enough contrast), so I'd recommend using a darker color to make it stand out.
- @nick365-dev@savvystrider
Your design looks good but the images are not displaying. Change the main image to
<img src="image-product-desktop.jpg" alt="perfume">
and the icon to<img src="icon-cart.svg" alt="cart">
to get them to display properly. - @bOREDpANDA69@savvystrider
Your solution looks awesome and the form validation works really well. The only thing I'd suggest is preventing users from typing letters into input fields intended for numbers. You can achieve that with HTML.
- @ggdelamul@savvystrider
I'd recommend using the
object-fit
CSS property: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit to handle images. - @AfroCodes4@savvystrider
The text content looks good but it looks like you did not upload an image with your code.
Marked as helpful - @marcelczubak@savvystrider
Looks awesome! If you're having trouble with mobile layouts, you can try simulating different screen sizes with your web browser. Google Chrome does it pretty well: https://developer.chrome.com/docs/devtools/device-mode/.
- @mirzafaisalbaig@savvystrider
The file path of your
img
is incorrect, so it's not showing up. Change thesrc
attribute tosrc="./qr-code-component-main/images/image-qr-code.png"
. - @P13czaR@savvystrider
The design came out well! I'd recommend the following in your HTML:
- Add alt text to all images for accessibility.
- Use relative paths for file references. This will ensure you don't have issues with file paths if you change hosts.
- Use more semantic tags, like header, nav, footer, or section for accessibility.
- @uchenworks@savvystrider
Looks good! I'd recommend not using pixel units for width in your media queries. Consider using relative units of measurements, like
em
orrem
or percentags. Seems like you are using them in other parts of your code already.Marked as helpful - @tamerlantian@savvystrider
Looks excellent! Small suggestion:
Avoid using floats for layout: Instead of floating the icon to the right in
.main-card__icon
, consider using flexbox or grid to position it. - @TheRival2002@savvystrider
Looks amazing!
Here are some suggestions to improve the JS:
-
Use
const
instead oflet
for variables that are not reassigned. -
Use
textContent
instead ofinnerHTML
since you're only setting text content. -
Use
input
event instead ofclick
event for input fields: Instead of attaching the click event to increase or decrease the number of visitors, you can attach the input event to thevisitorNumber
input field. This allows users to change the value by typing directly into the input field. -
Instead of
showDiv1()
,showDiv2()
, andshowDiv3()
, you could use more descriptive function names in camelCase, such asshowFamilyBooking()
,showSpecialBooking()
, andshowSocialBooking()
. -
Also, try to consolidate repeated code: The code that checks if a value is valid and shows or hides the label could be consolidated into a separate function that can be reused for each input field.
-
- @codarose@savvystrider
- You can use
background-size: cover
to display the image as a background image and then use thecover
property to scale it. - You can add
max-width: 100%
to all images to make sure that images don't get any larger than they are supposed to be. - You can also use the
transform: scale
property to scale the image. - Also, you can use the HTML picture element "to offer alternative versions of an image for different display/device scenarios."
Hope this helps! I think your project came out well, regardless.
- You can use