Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simbricks-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimBricks
simbricks-website
Commits
9e2b0807
Verified
Commit
9e2b0807
authored
4 months ago
by
Jakob Görgen
Browse files
Options
Downloads
Patches
Plain Diff
added code example section
parent
7e7387c3
Branches
xenpacer-crypto
xenpacer-cwnd
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#109898
passed
4 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_layouts/home.html
+91
-0
91 additions, 0 deletions
_layouts/home.html
_sass/home.scss
+83
-0
83 additions, 0 deletions
_sass/home.scss
with
174 additions
and
0 deletions
_layouts/home.html
+
91
−
0
View file @
9e2b0807
...
...
@@ -82,6 +82,97 @@ layout: base
</div>
</section>
<section
class=
"code-example"
>
<div
class=
"container"
>
<div
class=
"code-example-headings"
>
<h4>
Using SimBricks
</h4>
<h2>
It's exteremly simple to create virtual Prototypes with SimBricks
</h2>
</div>
<div
class=
"code-example-code-feature-box"
>
<div
class=
"code-section"
>
<div
class=
"code"
id=
"extensible"
>
<pre>
class MemcachedServer(AppConfig):
def run_cmds(self, node: NodeConfig) -> tp.List[str]:
return ['memcached -u root -t 1 -c 4096']
</pre>
</div>
<div
class=
"code"
id=
"full-system"
>
<pre>
server_config = I40eLinuxNode()
server_config.ip = '10.0.0.2'
server_config.app = IdleHost()
server = Gem5Host(server_config)
server_nic = I40eNIC()
server.add_nic(server_nic)
</pre>
</div>
</div>
<div
class=
"feature-section"
>
<div
class=
"feature"
id=
"extensible"
>
<span
class=
"feature-extensible"
>
Extensible
</span>
</div>
<div
class=
"feature"
id=
"full-system"
>
<span
class=
"feature-fullsystem"
>
Full-System
</span>
</div>
<div
class=
"feature"
id=
""
></div>
</div>
</div>
</div>
<script>
$
(
document
).
ready
(
function
()
{
const
codeElements
=
document
.
querySelectorAll
(
'
.code
'
);
const
featureElements
=
document
.
querySelectorAll
(
'
.feature
'
);
function
highlight_code_and_feature
(
id
)
{
feature
=
$
(
$
(
`#
${
id
}
.feature`
)[
0
]);
code
=
$
(
$
(
`#
${
id
}
.code`
)[
0
]);
code
.
css
(
'
border-color
'
,
'
hsl(18, 89%, 57%)
'
);
feature
.
css
(
"
border-color
"
,
"
hsl(18, 89%, 57%)
"
);
}
function
remove_highlight_code_and_feature
(
id
)
{
feature
=
$
(
$
(
`#
${
id
}
.feature`
)[
0
]);
code
=
$
(
$
(
`#
${
id
}
.code`
)[
0
]);
code
.
css
(
'
border-color
'
,
'
hsl(0, 0%, 96%)
'
);
feature
.
css
(
'
border-color
'
,
'
white
'
);
}
function
set_highlight_all_except_id
(
id
,
value
)
{
codeElements
.
forEach
(
code
=>
{
if
(
code
.
id
!=
id
)
{
c
=
$
(
$
(
`#
${
code
.
id
}
`
)[
0
]).
css
(
"
opacity
"
,
value
);
}
});
}
codeElements
.
forEach
(
code
=>
{
code
.
addEventListener
(
'
mouseover
'
,
()
=>
{
highlight_code_and_feature
(
code
.
id
);
set_highlight_all_except_id
(
code
.
id
,
0.3
);
});
code
.
addEventListener
(
'
mouseout
'
,
()
=>
{
remove_highlight_code_and_feature
(
code
.
id
);
set_highlight_all_except_id
(
feature
.
id
,
1
);
});
});
featureElements
.
forEach
(
feature
=>
{
feature
.
addEventListener
(
'
mouseover
'
,
()
=>
{
highlight_code_and_feature
(
feature
.
id
);
set_highlight_all_except_id
(
feature
.
id
,
0.3
);
});
feature
.
addEventListener
(
'
mouseout
'
,
()
=>
{
remove_highlight_code_and_feature
(
feature
.
id
);
set_highlight_all_except_id
(
feature
.
id
,
1
);
});
});
});
</script>
</section>
<section
class=
"product"
>
<div
class=
"container"
>
<h2>
Easy Virtual Prototyping with Modular Composition
</h2>
...
...
This diff is collapsed.
Click to expand it.
_sass/home.scss
+
83
−
0
View file @
9e2b0807
...
...
@@ -71,6 +71,89 @@ body.home {
}
}
section
.code-example
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
.code-example-headings
{
text-align
:
center
;
font-weight
:
bold
;
h4
{
color
:
$col-sb-org
;
}
}
div
.code-example-code-feature-box
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
margin-top
:
10px
;
margin-bottom
:
10px
;
.code-section
{
display
:
flex
;
flex-direction
:
column
;
flex-wrap
:
wrap
;
width
:
fit-content
;
border-radius
:
$border-radius
;
color
:
black
;
background-color
:
$col-os-grey_l2
;
.code
{
opacity
:
1
;
border
:
solid
2px
;
border-color
:
$col-os-grey_l2
;
border-radius
:
$border-radius
;
padding-left
:
10px
;
padding-right
:
10px
;
.pre
{
opacity
:
0
;
}
}
}
.feature-section
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
.feature
{
color
:
black
;
font-size
:
xx-large
;
padding
:
20px
;
border-radius
:
$border-radius
;
border
:
solid
2px
;
border-color
:
white
;
span
:
:
before
,
span
::
after
{
content
:
""
;
text-align
:
center
;
font-family
:
$font-fa
;
font-weight
:
bold
;
font-size
:
xx-large
;
color
:
$col-sb-org
;
padding-bottom
:
-0
.1rem
;
padding-left
:
1rem
;
padding-right
:
1rem
;
}
span
.
feature-fullsystem
:
:
before
{
content
:
"\f6ff"
;
}
span
.
feature-extensible
:
:
before
{
content
:
"\f12e"
;
}
}
}
}
}
section
.advantages
{
@include
sec-white
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment