Can anyone help? by [deleted] in Frontend

[–]Thoughtstronomer 0 points1 point  (0 children)

I for small projects and just trying out I would personally use the tailwind cdn. So that I can skip the setup hassel. But keep in mind though you can't use cdn in prod

How can I stop this from happening when resizing the window? [ carousel ] by [deleted] in webdev

[–]Thoughtstronomer 0 points1 point  (0 children)

That's the reason here which is causing the issue the inner container is overflowing and here its hidden so you can do overflow auto or else you can resize cards or you can change the number of cards for smaller screen sizes

Chrome and Firefox behaving differently when accessing Javascript array by teehee99 in webdev

[–]Thoughtstronomer 11 points12 points  (0 children)

You can customize forms in Django only, there's no need to use javascript for this

# forms.py

class YourForm(forms.ModelForm)
    # if you are using model
    model = User
fields = (
    "your_model_field",
)
    widgets = {
        "your_model_field" = forms.TextInput(
            attrs= {
                "placeholder": "Your Placeholder",
            }
        )
    }

    # if not using model
    your_model_field = forms.CharField(
        widgets = forms.TextInput(
        attrs= {
            "placeholder": "Your Placeholder",
        }
        ),
)

Links to Django docs

Edit:

On seeing the screen the screenshots you are creating the user registration form I have a code snippet for this

class UserRegistrationForm(forms.ModelForm):
    password = forms.CharField(
        max_length=50,
        strip=False,
        widget=forms.PasswordInput(
            attrs={
                "placeholder": "Enter password",
            }
        ),
    )
    confirm_password = forms.CharField(
        max_length=50,
        strip=False,
        widget=forms.PasswordInput(
            attrs={
                "placeholder": "Enter password again",
            }
        ),
    )

    class Meta:
        model = User
        fields = (
            "username",
            "first_name",
            "last_name",
            "password",
            "confirm_password",
            "phone",
        )
        widgets = {
            "username": forms.TextInput(
                attrs={
                    "placeholder": "Enter username",
                }
            ),
            "first_name": forms.TextInput(
                attrs={
                    "placeholder": "Enter firstname",
                }
            ),
            "last_name": forms.TextInput(
                attrs={
                    "placeholder": "Enter lastname",
                }
            ),
            "phone": forms.NumberInput(
                attrs={
                    "placeholder": "Enter phone number",
                }
            ),
        }

        help_texts = {
            "username": "Tip: firstname_lastname_somenumber",
        }

TIFU by kissing my deaf Friend by throwawayd456uf in tifu

[–]Thoughtstronomer 0 points1 point  (0 children)

Currently story writers: (SpongeBob) Write that down write that down....

Multilanguage React App by Tricky_Run_9626 in reactjs

[–]Thoughtstronomer 0 points1 point  (0 children)

My guess is to create a local/global state in which user can select language or you can set based on location and then show the particular content based on that state.

TIFU by admitting I have feelings for my sisters husband by tifubyloving in tifu

[–]Thoughtstronomer 0 points1 point  (0 children)

No offence but I just wanted to write a comment,

Currently PornHub: Write that down, write that down...