Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
4f8e7b74
Commit
4f8e7b74
authored
6 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
idtext
parent
b9dadd2c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#414851
passed
6 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/headings.tsx
+28
-6
28 additions, 6 deletions
src/components/headings.tsx
with
28 additions
and
6 deletions
src/components/headings.tsx
+
28
−
6
View file @
4f8e7b74
import
{
stringToSlug
}
from
"
../utils
"
;
export
function
Hhopp
({
text
}:{
text
:
string
}){
const
arr
=
[];
...
...
@@ -25,9 +26,16 @@ export function Hsmoke({text}:{text: string}){
)
}
export
function
H1
({
text
}:{
text
:
string
}){
export
function
H1
({
text
,
id
}:{
text
:
string
,
id
?:
string
}){
var
idtext
:
string
;
if
(
id
)
{
idtext
=
id
;
}
else
{
idtext
=
stringToSlug
(
text
);
}
return
(
<
div
className
=
"row hone"
>
<
div
id
=
{
idtext
}
className
=
"row hone"
>
<
svg
width
=
"100%"
height
=
"100%"
>
<
text
x
=
"0%"
y
=
"60%"
>
{
text
}
...
...
@@ -38,20 +46,34 @@ export function H1({text}:{text: string}){
}
export
function
H2
({
text
,
id
}:{
text
:
string
,
id
:
string
}){
export
function
H2
({
text
,
id
}:{
text
:
string
,
id
?:
string
}){
var
idtext
:
string
;
if
(
id
)
{
idtext
=
id
;
}
else
{
idtext
=
stringToSlug
(
text
);
}
return
(
<
div
>
<
h2
id
=
{
id
}
>
{
text
}
</
h2
>
<
h2
id
=
{
id
text
}
>
{
text
}
</
h2
>
<
hr
/>
</
div
>
)
}
export
function
H3
({
text
,
id
}:{
text
:
string
,
id
:
string
}){
export
function
H3
({
text
,
id
}:{
text
:
string
,
id
?:
string
}){
var
idtext
:
string
;
if
(
id
)
{
idtext
=
id
;
}
else
{
idtext
=
stringToSlug
(
text
);
}
return
(
<
div
>
<
h3
id
=
{
id
}
>
{
text
}
</
h3
>
<
h3
id
=
{
id
text
}
>
{
text
}
</
h3
>
</
div
>
)
...
...
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