Skip to content

Commit

Permalink
updated regtech website
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaram Golpayegani committed Jun 5, 2024
1 parent fc01227 commit a85b564
Show file tree
Hide file tree
Showing 9 changed files with 468 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.metadata/
113 changes: 113 additions & 0 deletions website/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
17 changes: 17 additions & 0 deletions website/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>website</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions website/.pydevproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
</pydev_project>
Binary file modified website/__pycache__/views.cpython-311.pyc
Binary file not shown.
190 changes: 190 additions & 0 deletions website/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">


<style>

.text {
font-family: 'Montserrat', sans-serif;

text-align: center;

}
.custom-main-box {
background-color: #f2f2f2ef;
border: 2px solid #319795;
padding: 10px;
border-radius: 5px;

}

.custom-box {
background-color: white;
border: 2px solid gray;

padding: 10px;
border-radius: 2px;

}


.custom-small-box {
background-color: transparent;
border: 2px solid transparent;
border-bottom: 2px solid #319795;
padding: 10px;
border-radius: 5px;
font-family: 'Montserrat', sans-serif ;
font-size: x-large;
color: #2a7a7a;
font-weight: 600 ;
}

.form-font {
font-family: 'Montserrat', sans-serif;
font-size: x-large;
color: black;
font-weight: 600 ;

}

.custom-select2 {
background-color: transparent;
width: 300px; border: 2px solid transparent;
border-bottom: 2px solid #319795;
font-family: 'Montserrat', sans-serif;
font-weight: 600;
font-size: x-large;
color: #2a7a7a;
width: auto;

}




.custom-button {
display: inline-block;
padding: 10px 20px;
background-color: #319795;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-family: 'Montserrat', sans-serif;
font-size: large;
font-weight: 400;
transition: background-color 0.3s ease;
}

.custom-button:hover {
background-color: #2a7a7a;
}

.wrapper {
text-align: center;
}
.custom-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
}

</style>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Pico.css -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/[email protected]/css/pico.min.css"
/>

<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
crossorigin="anonymous"
/>

<title>{% block title %}Home{% endblock %}</title>
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #5f3799;">
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbar"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">

<div class="navbar-nav">
<div class="logo"><img src="https://www.tcd.ie/identity/assets/logos/Logos%20page/png/Trinity%20logo%20%E2%80%93%20White.png" alt="TCD" loading="eager" width="200" class="img-responsive home"></div>
<div class="logo"><a href="https://www.adaptcentre.ie/"><img src="https://www.adaptcentre.ie/wp-content/themes/adapt-theme/img/logo.svg" alt="ADAPT" loading="eager" width="100" class="img-responsive home"></a></div>
<a class="nav-item nav-link" id="home" href="/">Home</a>
<a class="nav-item nav-link" id="highrisk" href="/highrisk">Is My AI System High Risk?</a>
<a class="nav-item nav-link" id="airima" href="/aicards"> AI Cards</a>
</div>
</div>
</nav>


<!--
{% with messages = get_flashed_messages(with_categories=true) %} {% if
messages %} {% for category, message in messages %} {% if category ==
'error' %}
<div class="alert alert-danger alter-dismissable fade show" role="alert">
{{ message }}
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% else %}
<div class="alert alert-success alter-dismissable fade show" role="alert">
{{ message }}
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endif %} {% endfor %} {% endif %} {% endwith %}-->

<div class="container">{% block content %} {% endblock %}</div>
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<!--
{% block javascript %}
<script type="text/javascript">
function deleteNote(noteId) {
fetch("/delete-note", {
method: "POST",
body: JSON.stringify({ noteId: noteId }),
}).then((_res) => {
window.location.href = "/";
});
}
</script>
{% endblock %}-->
</body>
</html>
20 changes: 16 additions & 4 deletions website/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html>
<head>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">


<style>

.text {
Expand Down Expand Up @@ -84,11 +86,21 @@
.wrapper {
text-align: center;
}

.custom-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
}


</style>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Pico.css -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/[email protected]/css/pico.min.css"
/>

<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
Expand Down Expand Up @@ -119,9 +131,9 @@
<div class="navbar-nav">
<div class="logo"><img src="https://www.tcd.ie/identity/assets/logos/Logos%20page/png/Trinity%20logo%20%E2%80%93%20White.png" alt="TCD" loading="eager" width="200" class="img-responsive home"></div>
<div class="logo"><a href="https://www.adaptcentre.ie/"><img src="https://www.adaptcentre.ie/wp-content/themes/adapt-theme/img/logo.svg" alt="ADAPT" loading="eager" width="100" class="img-responsive home"></a></div>
<a class="nav-item nav-link" id="home" href="/">Home</a>
<a class="nav-item nav-link" id="highrisk" href="/highrisk">Is My AI System High Risk?</a>
<!---<a class="nav-item nav-link" id="airima" href="/riskregister"> AI Risk Register</a>-->
<!--<a class="nav-item nav-link" id="home" href="/">Home</a>
<a class="nav-item nav-link" id="aiact" href="#aiact">AI Act</a>
<a class="nav-item nav-link" id="gdpr" href="#gdpr">GDPR</a>-->
</div>
</div>
</nav>
Expand Down
Loading

0 comments on commit a85b564

Please sign in to comment.