-
Notifications
You must be signed in to change notification settings - Fork 4
Xhtml5 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Xhtml5 #13
Changes from all commits
e8ee0de
aebd488
c271d24
7ecaac8
0ddf497
628bd46
624ecbb
98ce740
dc5dbd8
dc886d2
29ad8c5
3f2388b
60ac483
d9f74cb
40fae2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,77 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <html lang="en-CA"> | ||
|
|
||
| <head> | ||
| <!-- Metas --> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
| <meta name="author" content="Malassi :)"> | ||
| <meta name="title" content="The official Code Society website"> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
| <meta http-equiv="Content-Language" content="en-CA" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
|
|
||
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
| <meta name="author" content="Malassi :)" /> | ||
| <meta name="revised" content="2026-03-07" /> | ||
| <meta name="dcterms.modified" content="2026-03-07T22:30:00-05:00" /> | ||
| <meta name="title" content="The official Code Society website" /> | ||
| <meta name="description" | ||
| content="Code Society is a friendly community of programmers and scientists from all around the world."> | ||
| <meta property="og:type" content="website"> | ||
| <meta property="og:site_name" content="The Code Society"> | ||
| <meta property="og:url" content="https://codesociety.xyz/"> | ||
| <meta property="og:title" content="The Code Society Community"> | ||
| <meta property="og:description" content="The Code Society is a friendly community of programmers and scientists from all around the world."> | ||
| <meta property="og:image" content="https://codesociety.xyz/images/code_society_round.png"> | ||
| <meta property="og:image:alt" content="The Code Society logo"> | ||
| <meta name="twitter:card" content="summary"> | ||
| <meta name="twitter:title" content="The Code Society Community"> | ||
| <meta name="twitter:description" content="The Code Society is a friendly community of programmers and scientists from all around the world."> | ||
| <meta name="twitter:image" content="https://codesociety.xyz/images/code_society_round.png"> | ||
| <meta name="theme-color" content="#007bff"> | ||
| content="Code Society is a friendly community of programmers and scientists from all around the world." /> | ||
|
|
||
| <meta property="og:type" content="website" /> | ||
| <meta property="og:site_name" content="The Code Society" /> | ||
| <meta property="og:url" content="https://codesociety.xyz/" /> | ||
| <meta property="og:title" content="The Code Society Community" /> | ||
| <meta property="og:description" content="The Code Society is a friendly community of programmers and scientists from all around the world." /> | ||
| <meta property="og:image" content="https://codesociety.xyz/images/code_society_round.png" /> | ||
| <meta property="og:image:alt" content="The Code Society logo" /> | ||
|
|
||
| <meta name="twitter:card" content="summary" /> | ||
| <meta name="twitter:title" content="The Code Society Community" /> | ||
| <meta name="twitter:description" content="The Code Society is a friendly community of programmers and scientists from all around the world." /> | ||
| <meta name="twitter:image" content="https://codesociety.xyz/images/code_society_round.png" /> | ||
| <meta name="theme-color" content="#007bff" /> | ||
|
|
||
| <!-- Preconnect over HTTPS handshake --> | ||
| <link rel="preconnect" href="https://code.jquery.com" /> | ||
| <link rel="preconnect" href="https://stackpath.bootstrapcdn.com" /> | ||
| <link rel="preconnect" href="https://cdnjs.cloudflare.com" /> | ||
| <link rel="preconnect" href="https://www.gstatic.com" /> | ||
| <link rel="preconnect" href="https://unpkg.com" /> | ||
|
|
||
| <script type="text/javascript">//<!-- | ||
| document.createElement("section"); | ||
| document.createElement("nav"); | ||
| document.createElement("article"); | ||
| // --></script> | ||
|
|
||
| <style type="text/css"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you put this here instead of the |
||
| /* Fallback CSS Reset */ | ||
| html,body,a,img{border:0;outline:0;margin:0;padding:0;} | ||
| html,body,div,p,a,img,.navbar,.section{box-sizing:border-box;} | ||
|
|
||
| /* Fallback CSS */ | ||
| html,body,.section,.navbar,body .bg-primary { | ||
| background-color: #f4c308 !important; | ||
| color: #000; | ||
| } | ||
| body .bg-secondary { | ||
| background-color: #fff !important; | ||
| } | ||
| #info > .info-container .separation { | ||
| border-bottom: 30px solid #f4c308; | ||
| } | ||
| .btn.btn-primary { | ||
| border: 2px solid #f4c308 !important; | ||
| background-color: #000; | ||
| color: #f4c308 !important; | ||
| } | ||
| #header > .banner .logo { | ||
| background-color: #000; | ||
| } | ||
| #header > .banner .logo img { | ||
| max-width:200px; | ||
| max-height:200px; | ||
| } | ||
| .navbar,.section{display:block;width:100%;} | ||
| </style> | ||
|
|
||
| <!-- Preconnect over HTTPS handshake --> | ||
| <link rel="preconnect" href="https://stackpath.bootstrapcdn.com" /> | ||
|
|
@@ -31,57 +82,97 @@ | |
|
|
||
| <!-- Boostrap --> | ||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" | ||
| integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
| <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" | ||
| integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" /> | ||
|
|
||
| <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js" | ||
| integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" | ||
| crossorigin="anonymous"></script> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" | ||
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" | ||
| integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" | ||
| crossorigin="anonymous"></script> | ||
| <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" | ||
| <script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" | ||
| integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" | ||
| crossorigin="anonymous"></script> | ||
| <link rel="stylesheet" href="https://unpkg.com/lenis@1.3.11/dist/lenis.css"> | ||
|
|
||
| <!-- Firebase --> | ||
| <script src="https://www.gstatic.com/firebasejs/ui/9.6.2/firebase-ui-auth.js"></script> | ||
| <script type="text/javascript" src="https://www.gstatic.com/firebasejs/ui/9.6.2/firebase-ui-auth.js"></script> | ||
| <link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/9.6.2/firebase-ui-auth.css" /> | ||
|
|
||
| <!-- Lenis --> | ||
| <script src="https://unpkg.com/lenis@1.3.11/dist/lenis.min.js" defer></script> | ||
| <script> | ||
| document.addEventListener('DOMContentLoaded', () => { | ||
| const lenis = new Lenis({ autoRaf: true }); | ||
| document.getElementById('scroll-down').addEventListener('click', (e) => lenis.scrollTo("#info")); | ||
| }); | ||
| </script> | ||
| <!-- | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't need it we can remove it |
||
| <link rel="stylesheet" href="https://unpkg.com/lenis@1.3.11/dist/lenis.css" /> | ||
| <script type="module" src="https://unpkg.com/lenis@1.3.11/dist/lenis.min.js" defer="defer"></script> | ||
| --> | ||
| <script type="text/javascript">//<!-- | ||
| function scrollToElement(q) { | ||
| if (typeof q==="string") { q=document.getElementById(""+q); } | ||
| if (q) { | ||
| if (q.scrollIntoView) { | ||
| if ("scrollBehavior" in document.documentElement.style) { | ||
| q.scrollIntoView({ "behavior": "smooth", "block": "start" }); | ||
| } else { | ||
| q.scrollIntoView(true); | ||
| } | ||
| } else if (q.offsetTop) { | ||
| window.scrollTo(0, q.offsetTop); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| if (document.addEventListener) { | ||
| document.addEventListener("DOMContentLoaded", function() { | ||
| var L=window.location, | ||
| // Avoid XSS | ||
| h=(L.hash || "#").substr(1).replace(/[^A-Za-z0-9\-\_]+/gmi,""), | ||
| s=document.getElementById("scroll-down"); | ||
|
|
||
| scrollToElement(h); | ||
|
|
||
| if (s) { | ||
| s.addEventListener("click", function(e) { | ||
| scrollToElement("info"); | ||
| L.hash="#info"; | ||
| }); | ||
| } | ||
|
|
||
| /* | ||
| if (window.Lenis) { | ||
| var lenis = new Lenis({ autoRaf: true }), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| if (s) | ||
| s.addEventListener("click", function(e) { lenis.scrollTo("#info"); }); | ||
| } | ||
| */ | ||
| }); | ||
| } | ||
| // --></script> | ||
|
|
||
| <!-- Styles --> | ||
| <link rel="stylesheet" href="styles/styles.css"> | ||
| <link rel="icon" type="image/png" href="images/code_society_round.png"> | ||
| <link rel="apple-touch-icon" href="images/code_society_round.png"> | ||
| <link rel="stylesheet" href="./styles/styles.css" /> | ||
| <link rel="icon" type="image/png" href="./images/code_society_round.png" /> | ||
| <link rel="apple-touch-icon" href="./images/code_society_round.png" /> | ||
|
|
||
| <title>Code Society</title> | ||
| </head> | ||
|
|
||
| <body class="vh-100"> | ||
| <section id="header" class="bg-primary"> | ||
| <nav class="navbar"> | ||
| <section id="header" class="section bg-primary"> | ||
| <nav id="nav" class="navbar"> | ||
| <div class="container-fluid"> | ||
| <div class="row"> | ||
| <div class="col p-2"> | ||
| <a href="https://github.com/Code-Society-Lab"> | ||
| <img src="images/github.svg" height="40" width="40"> | ||
| <a href="https://github.com/Code-Society-Lab" title="Code Society GitHub"> | ||
| <img alt="Code Society GitHub" src="./images/github.svg" border="0" height="40" width="40" /> | ||
| </a> | ||
| </div> | ||
| <div class="col p-2"> | ||
| <a href="https://discord.gg/FzgwHD7Am3"> | ||
| <img src="images/discord.svg" height="40" width="40"> | ||
| <a href="https://discord.gg/FzgwHD7Am3" title="Code Society Discord"> | ||
| <img alt="Code Society Discord" src="./images/discord.svg" border="0" height="40" width="40" /> | ||
| </a> | ||
| </div> | ||
| <div class="col p-2"> | ||
| <a href="https://matrix.to/#/#codesociety:matrix.org"> | ||
| <img src="images/matrix_icon.svg" height="40" width="40"> | ||
| <a href="https://matrix.to/#/#codesociety:matrix.org" title="Matrix"> | ||
| <img alt="Matrix" src="./images/matrix_icon.svg" border="0" height="40" width="40" /> | ||
| </a> | ||
| </div> | ||
| </div> | ||
|
|
@@ -91,10 +182,10 @@ | |
| <div class="row align-items-center justify-content-center"> | ||
| <div class="col-lg-4 text-center"> | ||
| <div class="logo mx-auto rounded-circle"> | ||
| <img src="images/code_society.svg"> | ||
| <img alt="Code Society" src="./images/code_society.svg" border="0" height="200" width="200" /> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-8"> | ||
| <div id="code-society-content" class="col-lg-8"><a id="code-society" name="code-society"></a> | ||
| <p class="title">Code Society</p> | ||
| <p class="description">We are a friendly community of programmers and scientists of all levels | ||
| and backgrounds from all around the world! | ||
|
|
@@ -103,27 +194,27 @@ | |
| </div> | ||
| </div> | ||
| <div class="floating-arrow"> | ||
| <img src="images/arrow.svg" id="scroll-down" style="cursor: pointer;"> | ||
| <img alt="Scroll down arrow" src="./images/arrow.svg" id="scroll-down" style="cursor:pointer;" border="0" height="90" width="130" /> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <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"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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="flex-fill"> | ||
| <!-- Our Goal Section --> | ||
| <div class="row"> | ||
| <div id="goal-section" class="row"> | ||
| <div class="col-lg-6"> | ||
| <div class="d-flex justify-content-center align-items-center h-100"> | ||
| <img src="images/rocket.svg"> | ||
| <img alt="Rocket" src="./images/rocket.svg" border="0" height="250" width="250" /> | ||
| </div> | ||
| </div> | ||
| <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> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? <a id="our-goal" name="our-goal"></a>
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's called a proper HTML anchor works in all browsers
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| <div class="content-title col-md-6"> | ||
| <p class="title">Our goal</p> | ||
| </div> | ||
| <div class="col-md-6"> | ||
| <div class="content-description col-md-6"> | ||
| <p class="description">The Code Society has for goal of helping programmers, | ||
| scientists and other to find each other to discuss programming, new | ||
| technologies, science, and more! We also encourage collaboration on | ||
|
|
@@ -135,18 +226,18 @@ | |
| </div> | ||
| </div> | ||
| <!-- Grace Framework Section --> | ||
| <div class="row flex-row-reverse"> | ||
| <div id="grace-framework-section" class="row flex-row-reverse"> | ||
| <div class="col-lg-6"> | ||
| <div class="d-flex justify-content-center align-items-center h-100"> | ||
| <img src="images/robot.svg" style="width:200px; height:200px;"> | ||
| <img alt="Robot" src="./images/robot.svg" border="0" width="200" height="200" style="width:200px;height:200px;" /> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-6 d-flex justify-content-center align-items-center separation right"> | ||
| <div class="row flex-column align-items-center my-5"> | ||
| <div class="col-md-6"> | ||
| <div id="grace-content" class="row flex-column align-items-center my-5"><a id="grace-framework" name="grace-framework"></a> | ||
| <div class="content-title col-md-6"> | ||
| <p class="title">Grace Framework</p> | ||
| </div> | ||
| <div class="col-md-6"> | ||
| <div class="content-description col-md-6"> | ||
| <p class="description"> | ||
| <a href="https://github.com/Code-Society-Lab/grace-framework">Grace Framework</a> is an opinionated, | ||
| extensible Discord bot framework built on top of discord.py. It comes with a various | ||
|
|
@@ -158,18 +249,18 @@ | |
| </div> | ||
| </div> | ||
| <!-- Matrix.py Section --> | ||
| <div class="row"> | ||
| <div id="matrix-section" class="row"> | ||
| <div class="col-lg-6"> | ||
| <div class="d-flex justify-content-center align-items-center h-100"> | ||
| <img src="images/matrix.svg"> | ||
| <img alt="Matrix" src="./images/matrix.svg" border="0" height="250" width="73" /> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-6 d-flex justify-content-center align-items-center separation left"> | ||
| <div class="row flex-column align-items-center my-5"> | ||
| <div class="col-md-6"> | ||
| <div id="matrix-content" class="row flex-column align-items-center my-5"><a id="matrix" name="matrix"></a> | ||
| <div class="content-title col-md-6"> | ||
| <p class="title">matrix.py</p> | ||
| </div> | ||
| <div class="col-md-6"> | ||
| <div class="content-description col-md-6"> | ||
| <p class="description"><a href="https://github.com/Code-Society-Lab/matrixpy">matrix.py</a> | ||
| is a lightweight and intuitive Python library to build bots on the Matrix protocol. | ||
| It provides a clean, decorator-based API similar to popular event-driven frameworks, | ||
|
|
@@ -180,18 +271,18 @@ | |
| </div> | ||
| </div> | ||
| <!-- Resources Section --> | ||
| <div class="row flex-row-reverse"> | ||
| <div id="resources-section" class="row flex-row-reverse"> | ||
| <div class="col-lg-6"> | ||
| <div class="d-flex justify-content-center align-items-center h-100"> | ||
| <img src="images/books.svg"> | ||
| <img alt="Books" src="./images/books.svg" border="0" height="250" width="250" /> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-6 d-flex justify-content-center align-items-center separation right"> | ||
| <div id="resources-content" class="col-lg-6 d-flex justify-content-center align-items-center separation right"><a id="resources" name="resources"></a> | ||
| <div class="row flex-column align-items-center my-5"> | ||
| <div class="col-md-6"> | ||
| <div class="content-title col-md-6"> | ||
| <p class="title">Resources</p> | ||
| </div> | ||
| <div class="col-md-6"> | ||
| <div class="content-description col-md-6"> | ||
| <p class="description">Our <a href="https://resources.codesociety.xyz">library</a> | ||
| is a collection of resources put together by the members of | ||
| the Code Society for various programming and software development | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.