Skip to content

Commit 53e38a1

Browse files
Merge branch 'main' into myopencre-help-guide
2 parents b6c8402 + 7f14fb0 commit 53e38a1

File tree

6 files changed

+69
-24
lines changed

6 files changed

+69
-24
lines changed

Dockerfile-dev

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
FROM node:lts AS build
22

33
WORKDIR /code
4-
COPY . /code
5-
64
RUN apt-get update && apt-get install -y chromium
5+
COPY package.json yarn.lock ./
6+
RUN yarn install
7+
8+
COPY . .
9+
710
RUN make install-deps-typescript && make install-typescript && make frontend
811

912
FROM python:3.11.0 AS run

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev-flask-docker:
4040
e2e:
4141
yarn build
4242
[ -d "./venv" ] && . ./venv/bin/activate &&\
43-
export FLASK_APP=$(CURDIR)/cre.py &&\
43+
export FLASK_APP="$(CURDIR)/cre.py" &&\
4444
export FLASK_CONFIG=development &&\
4545
export INSECURE_REQUESTS=1 &&\
4646
flask run &
@@ -52,7 +52,7 @@ e2e:
5252

5353
test:
5454
[ -d "./venv" ] && . ./venv/bin/activate &&\
55-
export FLASK_APP=$(CURDIR)/cre.py &&\
55+
export FLASK_APP="$(CURDIR)/cre.py" &&\
5656
flask routes && flask test
5757

5858
cover:
@@ -107,12 +107,12 @@ clean:
107107

108108
migrate-upgrade:
109109
[ -d "./venv" ] && . ./venv/bin/activate &&\
110-
export FLASK_APP=$(CURDIR)/cre.py
110+
export FLASK_APP="$(CURDIR)/cre.py"
111111
flask db upgrade
112112

113113
migrate-downgrade:
114114
[ -d "./venv" ] && . ./venv/bin/activate &&\
115-
export FLASK_APP=$(CURDIR)/cre.py
115+
export FLASK_APP="$(CURDIR)/cre.py"
116116
flask db downgrade
117117

118118
import-projects:
@@ -123,7 +123,7 @@ import-all:
123123

124124
import-neo4j:
125125
[ -d "./venv" ] && . ./venv/bin/activate &&\
126-
export FLASK_APP=$(CURDIR)/cre.py && python cre.py --populate_neo4j_db
126+
export FLASK_APP="$(CURDIR)/cre.py" && python cre.py --populate_neo4j_db
127127

128128
preload-map-analysis:
129129
$(shell RUN_COUNT=5 bash ./scripts/preload_gap_analysis.sh)

application/frontend/src/pages/Search/Search.tsx

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ export const SearchPage = () => {
231231
</div>
232232
<h3 className="htu-card__title">Link from your document / tool</h3>
233233
<p className="htu-card__text">
234-
Llink with the CRE ID: <a href="https://opencre.org/cre/764-507">opencre.org/cre/764-507</a>{' '}
235-
or use a familiar standard such as CWE:{' '}
234+
Link with the CRE ID: <a href="https://opencre.org/cre/764-507">opencre.org/cre/764-507</a> or
235+
use a familiar standard such as CWE:{' '}
236236
<a href="https://opencre.org/smartlink/standard/CWE/611">
237237
opencre.org/smartlink/standard/CWE/611
238238
</a>
@@ -257,7 +257,7 @@ export const SearchPage = () => {
257257

258258
<div id="features" className="section">
259259
<div className="features-grid">
260-
<div className="feature-block feature-block--rose">
260+
{/* <div className="feature-block feature-block--rose">
261261
<div className="feature-block__icon-wrapper">
262262
<MessageSquare className="icon" />
263263
</div>
@@ -272,6 +272,29 @@ export const SearchPage = () => {
272272
This ensures you get a more <strong>reliable answer</strong>, and also a reference to a{' '}
273273
<strong>reputable source</strong>.
274274
</p>
275+
</div> */}
276+
<div className="feature-block feature-block--rose">
277+
<div className="feature-block__icon-wrapper">
278+
<MessageSquare className="icon" />
279+
</div>
280+
<h3 className="feature-block__title">OPENCRE CHAT</h3>
281+
282+
<div className="feature-block__text space-y-2">
283+
<p>
284+
Use{' '}
285+
<strong>
286+
<a href="https://www.opencre.org/chatbot">OpenCRE Chat</a>
287+
</strong>{' '}
288+
to ask any security question.
289+
</p>
290+
291+
<p>
292+
In collaboration with <strong>Google</strong>, we injected all the standards in OpenCRE into
293+
an AI model to create the most comprehensive security chatbot. This ensures you get a more{' '}
294+
<strong>reliable answer</strong>, and also a reference to a{' '}
295+
<strong>reputable source</strong>.
296+
</p>
297+
</div>
275298
</div>
276299
<div className="feature-block feature-block--teal">
277300
<div className="feature-block__icon-wrapper">
@@ -281,8 +304,11 @@ export const SearchPage = () => {
281304
<a href="https://www.opencre.org/map_analysis">MAP ANALYSIS</a>
282305
</h3>
283306
<p className="feature-block__text">
284-
Utilize <strong><a href="/map_analysis">Map Analysis</a></strong> as a tool to explore and understand the connections
285-
between two standards.
307+
Utilize{' '}
308+
<strong>
309+
<a href="/map_analysis">Map Analysis</a>
310+
</strong>{' '}
311+
as a tool to explore and understand the connections between two standards.
286312
</p>
287313
<p className="feature-block__text">
288314
See how <strong>any two standards connect</strong> with each other, providing valuable

application/frontend/src/pages/Search/search.scss

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,16 +1024,18 @@ body {
10241024
z-index: 10;
10251025
width: 100%;
10261026
border-top: 1px solid rgba(var(--border-rgb), 0.5);
1027-
padding: 3rem 0;
1027+
padding: 4rem 0; // ⬅ slightly more breathing room
10281028
backdrop-filter: blur(4px);
10291029

10301030
&__container {
10311031
max-width: 112rem;
10321032
margin: 0 auto;
10331033
padding: 0 1rem;
1034+
10341035
@media (min-width: 640px) {
10351036
padding: 0 1.5rem;
10361037
}
1038+
10371039
@media (min-width: 1024px) {
10381040
padding: 0 2rem;
10391041
}
@@ -1042,53 +1044,67 @@ body {
10421044
&__grid {
10431045
display: grid;
10441046
grid-template-columns: 1fr;
1045-
gap: 2rem;
1047+
gap: 2.5rem;
1048+
align-items: start;
1049+
10461050
@media (min-width: 768px) {
1047-
grid-template-columns: repeat(4, 1fr);
1051+
grid-template-columns: 1.2fr 1fr 1fr 1fr; // ⬅ brand slightly wider
1052+
gap: 3.5rem;
10481053
}
10491054
}
10501055

10511056
&__about {
10521057
display: flex;
10531058
flex-direction: column;
1054-
gap: 1rem;
1059+
gap: 1.25rem;
1060+
max-width: 30rem;
1061+
10551062
.logo-link {
10561063
display: flex;
10571064
align-items: center;
10581065
gap: 0.5rem;
1066+
10591067
img {
1060-
height: 10rem;
1061-
width: 10rem;
1068+
height: 2rem; // ⬅ reduced from 2.25rem
1069+
width: auto;
10621070
}
10631071
}
1072+
10641073
p {
10651074
color: var(--muted-foreground);
1075+
line-height: 1.6;
1076+
font-size: 0.95rem;
10661077
}
10671078
}
10681079

10691080
&__links-column {
10701081
.column-title {
10711082
color: white;
10721083
font-weight: 500;
1073-
margin-bottom: 1rem;
1084+
font-size: 0.95rem;
1085+
letter-spacing: 0.02em;
1086+
margin-bottom: 1.1rem;
10741087
}
1088+
10751089
.links-list {
10761090
display: flex;
10771091
flex-direction: column;
1078-
gap: 0.5rem;
1092+
gap: 0.55rem;
1093+
10791094
a {
10801095
display: block;
10811096
color: var(--muted-foreground);
1082-
transition: color 0.3s;
1097+
font-size: 0.9rem;
1098+
transition: color 0.25s ease;
10831099
text-decoration: none;
1100+
10841101
&:hover {
10851102
color: var(--foreground);
10861103
}
10871104
}
10881105
}
10891106
}
10901107
}
1091-
10921108
.loading-screen {
10931109
min-height: 100vh;
10941110
background-color: var(--background);

application/frontend/src/scaffolding/Header/header.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
gap: 0.5rem;
4242
margin-left: 4rem;
4343
img {
44-
height: 10rem;
44+
height: 4rem;
4545
width: 10rem;
46+
display: block;
4647
}
4748
}
4849

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"lib": ["esnext", "dom"],
1313
"outDir": "dist",
1414
"moduleResolution": "node",
15-
"keyofStringsOnly": true,
1615
"skipLibCheck": true,
1716
"esModuleInterop": true
1817
},

0 commit comments

Comments
 (0)