<!--
 Copyright 2023 Google LLC

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<!-- Toolbar -->
<div class="toolbar" role="banner">
  <span>CEL REPL</span>
    <div class="spacer"></div>
    <a aria-label="CEL Go on Github" target="_blank" rel="noopener" href="https://github.com/google/cel-go" title="CEL Go Github">
      <img class="github-logo" src="assets/github.svg" alt="github logo"/>
    </a>
</div>

<mat-sidenav-container role="main" class="content" autosize>
  <!-- must be immediate child of side-nav-container -->
  <mat-sidenav #sidenav opened mode="side" position="end">
    <div class="reference-panel-container">
      <app-reference-panel></app-reference-panel>
    </div>
  </mat-sidenav>
  <mat-sidenav-content>
    <div class="main-panel-container">
      <div class="repl-console-container">
        <app-repl-console></app-repl-console>
      </div>
      <div class="control-button-bar">
        <button mat-raised-button (click)="submitConsole()" color="primary">Evaluate</button> &nbsp;
        <button mat-raised-button (click)="sidenav.toggle()" color="primary">Show / Hide References</button>
      </div>
    </div>
  </mat-sidenav-content>
</mat-sidenav-container>