Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lambert-GA
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
2023 Competition
Lambert-GA
Commits
712249a3
Commit
712249a3
authored
1 year ago
by
Ryan Du
Browse files
Options
Downloads
Patches
Plain Diff
header resize
parent
d0be83b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/layouts/PageLayoutComp.tsx
+4
-4
4 additions, 4 deletions
src/layouts/PageLayoutComp.tsx
src/layouts/PageLayoutCompPDF.tsx
+3
-3
3 additions, 3 deletions
src/layouts/PageLayoutCompPDF.tsx
with
7 additions
and
7 deletions
src/layouts/PageLayoutComp.tsx
+
4
−
4
View file @
712249a3
...
...
@@ -39,7 +39,7 @@ const Layout = ({ children, header, title }: LayoutProps) => {
<
body
className
=
"w-screen"
>
{
header
}
<
div
className
=
{
`bg-cover absolute w-screen left-0 top-0 p-0 m-0 z-10 h-1/
3
`
}
className
=
{
`bg-cover absolute w-screen left-0 top-0 p-0 m-0 z-10 h-1/
2
`
}
style
=
{
{
background
:
`linear-gradient(to bottom, rgba(255, 255, 255, 0) 36.46%, #FFFFFF 100%), url(
${
header
}
)`
,
backgroundSize
:
"
cover
"
,
...
...
@@ -60,15 +60,15 @@ const Layout = ({ children, header, title }: LayoutProps) => {
</
div
>
<
div
className
=
"flex justify-center w-full items-center"
>
<
div
className
=
"w-full m-5 max-w-3xl "
>
<
p
className
=
"font-serif
text-6xl
z-30 absolute top-1/
3
-translate-y-1/2 lg:-translate-x-20 sm:text-
5
xl md:text-
4
xl"
>
<
p
className
=
"font-serif
font-bold
z-30 absolute top-1/
2
-translate-y-1/2 lg:-translate-x-20
text-5xl
sm:text-
6
xl md:text-
7
xl"
>
{
title
}
</
p
>
<
div
className
=
"absolute top-1/
3
translate-y-20 h-32 lg:-translate-x-20 lg:border-l-2 border-gray-900 z-50"
></
div
>
<
div
className
=
"absolute top-1/
2
translate-y-20 h-32 lg:-translate-x-20 lg:border-l-2 border-gray-900 z-50"
></
div
>
<
div
className
=
{
styling
+
"
mt-[
33
vh] break-words grow sm:mt-[
28
vh] md:mt-[
23
vh]
"
styling
+
"
mt-[
50
vh] break-words grow sm:mt-[
44
vh] md:mt-[
40
vh]
"
}
>
{
children
}
...
...
This diff is collapsed.
Click to expand it.
src/layouts/PageLayoutCompPDF.tsx
+
3
−
3
View file @
712249a3
...
...
@@ -39,7 +39,7 @@ const Layout = ({ children, header, title }: LayoutProps) => {
<
body
className
=
"w-screen"
>
{
header
}
<
div
className
=
{
`bg-cover absolute w-screen left-0 top-0 p-0 m-0 z-10 h-1/
3
`
}
className
=
{
`bg-cover absolute w-screen left-0 top-0 p-0 m-0 z-10 h-1/
2
`
}
style
=
{
{
background
:
`linear-gradient(to bottom, rgba(255, 255, 255, 0) 36.46%, #FFFFFF 100%), url(
${
header
}
)`
,
backgroundSize
:
"
cover
"
,
...
...
@@ -60,10 +60,10 @@ const Layout = ({ children, header, title }: LayoutProps) => {
</
div
>
<
div
className
=
"flex justify-center w-full items-center"
>
<
div
className
=
"w-full m-5 max-w-5xl "
>
<
p
className
=
"font-serif text-
6xl
z-30 absolute top-1/
3
-translate-y-1/2 "
>
<
p
className
=
"font-serif text-
5xl sm:text-6xl md:text-7xl font-bold
z-30 absolute top-1/
2
-translate-y-1/2 "
>
{
title
}
</
p
>
<
div
className
=
{
styling
+
"
mt-[
33
vh] break-words grow
"
}
>
<
div
className
=
{
styling
+
"
mt-[
50
vh] break-words grow
"
}
>
{
children
}
</
div
>
</
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