Skip to content

Xhtml5#13

Open
fdd26 wants to merge 15 commits intoCode-Society-Lab:mainfrom
fdd26:xhtml5
Open

Xhtml5#13
fdd26 wants to merge 15 commits intoCode-Society-Lab:mainfrom
fdd26:xhtml5

Conversation

@fdd26
Copy link
Contributor

@fdd26 fdd26 commented Mar 6, 2026

XHTML5 make the code XML parser compliant. Minor JavaScript fixes to avoid broken web page, put Lenis together, add truthy checks, add some fallback color CSS to avoid WebKit var()

@fdd26
Copy link
Contributor Author

fdd26 commented Mar 6, 2026

img attributes are used by the image preloader and ignored by the final WebKit renderer and media queries override.

Copy link
Contributor

@PenguinBoi12 PenguinBoi12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes that you made breaks the design:

Before After
image Image image Image

The smooth scroll is broken on Firefox. When I think about it, there's a css rule for that that we could apply on html directly so we don't have to do all this to get the smooth scroll.

html {
    scroll-behavior: smooth;
}

PS. This and removing lenis should've been done in another PR.

Also, as far as I know, CSS var hss been supported on every major browser for a while.

document.createElement("article");
// --></script>

<style type="text/css">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you put this here instead of the style.css? All css should be in the style.css


/*
if (window.Lenis) {
var lenis = new Lenis({ autoRaf: true }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to remove this remove it completely, don't keep commented unused code.

document.getElementById('scroll-down').addEventListener('click', (e) => lenis.scrollTo("#info"));
});
</script>
<!--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need it we can remove it

<link rel="preconnect" href="https://www.gstatic.com" />
<link rel="preconnect" href="https://unpkg.com" />

<script type="text/javascript">//<!--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for doing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-initialize the new HTML5 tags so that CSS can be applied on them on non-WebKit browsers.

<section id="info" class="bg-secondary">
<div class="container-fluid info-container d-flex flex-fill">
<section id="info" class="section bg-secondary"><a id="Info" name="Info"></a>
<div id="info-section" class="container-fluid info-container d-flex flex-fill">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add sections? They don't seem to be used.

<div class="col-lg-6 d-flex justify-content-center align-items-center separation left">
<div class="row flex-column align-items-center box">
<div class="col-md-6">
<div id="goal-content" class="row flex-column align-items-center box"><a id="our-goal" name="our-goal"></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

<a id="our-goal" name="our-goal"></a>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's called a proper HTML anchor works in all browsers

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand but it's not used. We don't want to add unused code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants