Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<script src="https://kit.fontawesome.com/a12dfed3bc.js" crossorigin="anonymous"></script>

<!-- START MAIN BODY-->

<div class="main-body">

  <!-- START NAV -->

  <nav id="navbar">

    <header id="main-header">Code of Ethics</header>
    <section id="links">
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-hand-pointer"></i></div>
        <div class="desc">
          <a href="#preamble" class="nav-link">Preamble</a></div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-car-side"></i></div>
        <div class="desc"><a href="#responsibility" class="nav-link">Responsibility</a>
        </div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-bus-alt"></i></div>
        <div class="desc">
          <a href="#public_behaviour" class="nav-link">Public Behaviour</a></div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-address-card"></i></div>
        <div class="desc"><a href="#individual_accountability" class="nav-link">Individual Accountability</a></div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-user-friends"></i></div>
        <div class="desc">
          <a href="#personal_issues" class="nav-link">Personal Issues</a></div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-video"></i></div>
        <div class="desc">
          <a href="#accurate_representation" class="nav-link">Accurate Representation</a></div>
      </div>
      <div class="grid">
        <div class="icon"><i class="fas fa-1x fa-user-check"></i></div>
        <div class="desc"><a href="#respect" class="nav-link">Respect</a></div>
      </div>
    </section>

  </nav>

  <!-- END NAV BAR -->

  <!-- START MAIN DOC -->

  <main id="main-doc">

    <section class="main-section" id="preamble">

      <header class="sticky">Preamble</header>
      <article>
        <p>This Code of Ethics has been adapted from the original Ontario Art Therapy Association Code of Ethics, with the educative purpose of fullfiling the requirements for building a Technical Documentationg Page for the FCC Responsive Web Design Project. If you want to get access to the original information, please follow the link at the end of the page.</p>
        <p>Art therapists believe in the dignity and worth of the
          individual as possessing a unique set of biological, spiritual,
          psychological, and social characteristics. While demanding of
          themselves freedom of inquiry and communication, art therapists
          accept responsibility that this freedom confers: high standards of
          competence, consideration for the best interests of all persons for
          which services are rendered, and objectivity in reporting findings.</p>
      </article>

    </section>

    <section class="main-section" id="responsibility">
      <header class="sticky">Responsibility</header>
      <article>
        <p>Art therapists maintain the principle of responsible caring,
          high standards of professional competence and service, objectivity
          and integrity, and are responsible for the consequences of their
          actions.</p>
        <code>This is the code of ethics and responsibility</code>
        <p>Art therapists have a responsibility to respect client
          confidentiality and safeguard verbal and visual information.</p>
      </article>
    </section>

    <section class="main-section" id="public_behaviour">
      <header class="sticky">Public Behaviour</header>
      <article>
        <p>Art therapists are responsible for the influence that their
          public behaviour may have on their profession, on their ability to
          perform as professionals, and on society. In their roles as:</p>
        <ul>
          <li>Clinicians</li>
          <li>Educators</li>
          <li>Supervisors</li>
          <li>Researches</li>
          <li>Interns</li>
          <li>Students</li>
        </ul>
        <p>Art therapists have duties and obligations toward the
          public, their profession and their colleagues.</p>
        <code>Class Art Therapist(Self):
          duties = ""
          obligations = ""</code>
      </article>
    </section>

    <section class="main-section" id="individual_accountability">
      <header class="sticky">Individual Accountability</header>
      <article>
        <p>Art therapists always maintain their accountability whether
          they are members of governmental or other organizational bodies,
          or in private practice.</p>
        <code>Art therapist = func (accountability) </code>
      </article>
    </section>

    <section class="main-section" id="personal_issues">
      <header class="sticky">Personal Issues</header>
      <article>
        <p>Art therapists’ moral and ethical standards are a personal
          matter, unless they have an impact upon their efficacy as an art
          therapist.</p>
        <p>Art therapists recognize that personal issues, conflicts or
          problems may bias or interfere with professional efficacy. They
          refrain from any activity in which their personal issues are likely to
          lead to inadequate performance, or harm a client, student,
          colleague or research participant. If art therapists become aware
          of personal issues when engaging in such activity, they may seek
          professional assistance to determine whether they should
          suspend, terminate or limit the scope of their professional activity.</p>
        <code>Personal issues = not allowed for interference</code>
      </article>
    </section>

    <section class="main-section" id="accurate_representation">
      <header class="sticky">Accurate representation</header>
      <article>
        <p>Art therapists use honest caution and due regard when
          supplying information to the public regarding:</p>
        <ol>
          <li>Their own representation</li>
          <li>The practice of art therapy</li>
          <li>The Local Art Therapy Association</li>
        </ol>
        <p>Art therapists accurately represent their competence,
          education, training and experience, and their rightful affiliation with
          professional associations. Only rightful affiliation assures
          standards of professional ethics and practice.</p>
        <code>Alert message: accurate representation is important!</code>
      </article>
    </section>

    <section class="main-section" id="respect">
      <header class="sticky">Respect</header>
      <article>
        <p>Art therapists recognize differences among people such as
          those that may be associated with age, gender, socio-economics,
          sexual preferences, and religious and ethnic backgrounds. When
          necessary, they obtain related training, experience or counsel to
          assure competent service or research.</p>
        <code>Art therapist respect people.</code>
      </article>
    </section>

  </main>

  <!-- END MAIN DOC -->

</div>

<!-- END MAIN BODY-->
              
            
!

CSS

              
                /* custom properties/variables */
:root {
  --color-base: #eee;
  --color-base-darker: #ebdbd1;
  --color-medium: #888;
  --color-dark: black;
  --color-complement: #f05a06;
  --color-complement-dark: #a53e04;
  --color-text: #222;
}

/* base reset */
* {
  margin: 0;
  padding: 0;
}

/* box sizing and font sizing*/
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  /* 
  Set font size for easy rem calculations
   * default document font size = 16px, 1rem = 16px, 100% = 16px
   * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
  */
  font-size: 62.5%;
  /* 
  A few media query to set some font sizes at different screen sizes.
  * This helps automate a bit of responsiveness.
  * The trick is to use the rem unit for size values, margin and padding.
  * Because rem is relative to the document font size
  * when we scale up or down the font size on the document
  * it will affect all properties using rem units for the values.
  */
  scroll-behavior: smooth; /* why it didnt work locallly in #main-doc? */
  background: var(--color-base);
}

/* base styles */

a {
  text-decoration: none;
  color: var(--color-dark);
  cursor: pointer;
}

header {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 4rem;
}

ul,
ol {
  margin-left: 3em;
  padding: 1.2em;
}

i {
  color: var(--color-complement);
}

code {
  background-color: var(--color-base-darker);
  padding: 1.2em;
  display: block;
  margin: 2em 2em;
}

div.main-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-areas: "navbar mainContent";
  grid-gap: 2rem;
  font-size: 1.6rem;
}

@media screen and (max-width: 750px) {
  div.main-body {
    grid-template-columns: 1fr;
    grid-template-areas: "navbar" "mainContent";
    /* ojo que aca van separadas por comillas las palabras del area, no en una sola comilla, osea no una sola row */
  }
}

/* nav */

nav#navbar {
  grid-area: navbar;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 2px solid gray;
  height: 100%;
  overflow: scroll;
}

@media screen and (max-width: 750px) {
  nav#navbar {
    position: inherit; /*static by default*/
    border-right: none;
    border-bottom: 1px solid gray;
  }
}

#main-header {
  margin: 2rem 0;
  font-size: 3rem;
  text-align: center;
  font-weight: normal;
}

div.grid {
  display: flex;
  width: 100%;
  border-top: 1px solid gray;
  padding: 0.5em 0.5em 0.5em 1em;
}

div.grid:hover {
  background-color: var(--color-base-darker);
}

#links .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  padding-right: 1rem;
}

#links .desc {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* main content*/

main#main-doc {
  grid-area: mainContent;
  padding: 2rem;
}

section.main-section {
  margin-bottom: 5rem;
  line-height: 2.8rem;
}

header.sticky {
  position: sticky;
  top: 0;
  background: var(--color-base);
  color: var(--color-complement-dark);
}

              
            
!

JS

              
                
              
            
!
999px

Console