效果卡在第一部分。

huangapple go评论57阅读模式
英文:

Effect stuck on first section

问题

以下是您要翻译的代码部分:

So I've used this https://www.youtube.com/watch?v=kySGqoU7X-s&t=46s idea for my portfolio webpage, but i cant make it to be on the whole page. It's stuck on the first section, after I've added some content in its div to avoid that. I want it to behave the same when someone is scrolling on my page, and by that i mean that the "blob" and the "blur" effect remains on the page even at the bottom not only and the top.

Does anyone know why it isnt?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->
const blob = document.getElementById("blob");
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

window.onpointermove = event => {
  const {
    clientX,
    clientY
  } = event;

  blob.animate({
    left: `${clientX}px`,
    top: `${clientY}px`
  }, {
    duration: 3000,
    fill: "forwards"
  });
};

let interval = null;

document.querySelector("h1").onmouseover = e => {
  let iterations = 0;

  interval = setInterval(() => {
    e.target.innerText = e.target.innerText.split("")
      .map((letter, index) => {
        if (index < iterations) {
          return e.target.dataset.value[index];
        }

        return letters[Math.floor(Math.random() * 26)]
      })
      .join("");

    if (iterations >= e.target.dataset.value.length) {
      clearInterval(iterations);
    }

    iterations += 1 / 4;
  }, 30);
}

<!-- language: lang-css -->
body {
  background-color: black;
  height: 100%;
  width: 100%;
  margin: 0rem;
  --scrollbar-width: 0.4rem;
  --light-color: aquamarine;
  --dark-color: mediumpurple;
}

html {
  scroll-behavior: smooth;
}

@keyframes rotate {
  from {
    rotate: 0deg;
  }
  50% {
    scale: 1 1.5;
  }
  to {
    rotate: 360deg;
  }
}

#blob {
  background-color: white;
  height: 34vmax;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: linear-gradient(to right, aquamarine, mediumpurple);
  animation: rotate 20s infinite;
  opacity: 0.8;
}

#blur {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  backdrop-filter: blur(12vmax);
}

h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(3rem, 10vw, 10rem);
  color: white;
  padding: 0rem clamp(1rem, 2vw, 3rem);
  border-radius: clamp(0.4rem, 0.75vw, 1rem);
  margin: 0rem;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 4;
}

...

希望这能帮助到您。

英文:

So I've used this https://www.youtube.com/watch?v=kySGqoU7X-s&amp;t=46s idea for my portfolio webpage, but i cant make it to be on the whole page. It's stuck on the first section, after I've added some content in its div to avoid that. I want it to behave the same when someone is scrolling on my page, and by that i mean that the "blob" and the "blur" effect remains on the page even at the bottom not only and the top.

Does anyone know why it isnt?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

const blob = document.getElementById(&quot;blob&quot;);
const letters = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;
window.onpointermove = event =&gt; {
const {
clientX,
clientY
} = event;
blob.animate({
left: `${clientX}px`,
top: `${clientY}px`
}, {
duration: 3000,
fill: &quot;forwards&quot;
});
};
let interval = null;
document.querySelector(&quot;h1&quot;).onmouseover = e =&gt; {
let iterations = 0;
interval = setInterval(() =&gt; {
e.target.innerText = e.target.innerText.split(&quot;&quot;)
.map((letter, index) =&gt; {
if (index &lt; iterations) {
return e.target.dataset.value[index];
}
return letters[Math.floor(Math.random() * 26)]
})
.join(&quot;&quot;);
if (iterations &gt;= e.target.dataset.value.length) {
clearInterval(iterations);
}
iterations += 1 / 4;
}, 30);
}

<!-- language: lang-css -->

body {
background-color: black;
height: 100%;
width: 100%;
margin: 0rem;
--scrollbar-width: 0.4rem;
--light-color: aquamarine;
--dark-color: mediumpurple;
}
html {
scroll-behavior: smooth;
}
@keyframes rotate {
from {
rotate: 0deg;
}
50% {
scale: 1 1.5;
}
to {
rotate: 360deg;
}
}
#blob {
background-color: white;
height: 34vmax;
aspect-ratio: 1;
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
border-radius: 50%;
background: linear-gradient(to right, aquamarine, mediumpurple);
animation: rotate 20s infinite;
opacity: 0.8;
}
#blur {
height: 100%;
width: 100%;
position: absolute;
z-index: 2;
backdrop-filter: blur(12vmax);
}
h1 {
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(3rem, 10vw, 10rem);
color: white;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
z-index: 4;
}
h2 {
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(1rem, 5vw, 5rem);
color: aquamarine;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 63%;
translate: -50% -50%;
z-index: 4;
}
li,
a,
button {
font-family: &#39;Space Mono&#39;, monospace;
font-weight: 500;
font-size: 16px;
color: #ecf0f1;
text-decoration: none;
}
header {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 30px 10%;
width: 80%;
top: 0;
left: 0;
z-index: 2;
backdrop-filter: blur(12vmax);
background-color: transparent;
}
.show {
opacity: 1;
filter: blur(0);
transform: translateX(0);
}
.logo {
cursor: pointer;
order: 3;
margin-left: auto;
height: 50px;
}
.nav_links {
list-style: none;
}
.nav_links li {
display: inline-block;
padding: 0px 20px;
}
.nav_links li a {
transition: all 0.3s ease 0s;
font-family: &#39;Space Mono&#39;, monospace;
}
.nav_links li a:hover {
color: aquamarine;
}
button {
margin-left: 20px;
padding: 9px 25px;
background-color: mediumaquamarine;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease 0s;
font-family: &#39;Space Mono&#39;, monospace;
}
button:hover {
background-color: var(--dark-color);
}
::-webkit-scrollbar {
width: var(--scrollbar-width);
}
::-webkit-scrollbar-track {
background: var(--dark-color);
}
::-webkit-scrollbar-thumb {
background: var(--light-color);
}
h3 {
color: var(--light-color);
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(0.5rem, 2vw, 2rem);
padding: 0rem clamp(1rem, 2vw, 3rem);
}
.spacer {
margin: 10vh 0;
height: 1px;
}
.section {
position: absolute;
background-color: transparent;
z-index: 4;
top: 100%;
scroll-behavior: smooth;
transition: 0.5s;
}
.about {
display: flex;
gap: 2rem;
color: white;
font-family: &#39;Space Mono&#39;, monospace;
}
.about p {
width: 30%;
align-items: center;
text-align: center;
}
.section-header {
position: absolute;
left: 50%;
translate: -50% -50%;
}
.highlight {
color: var(--light-color);
}
th {
color: var(--light-color);
font-family: &#39;Space Mono&#39;, monospace;
}
tr td {
color: white;
font-family: &#39;Space Mono&#39;, monospace;
}
table {
width: 45%;
text-align: center;
}
.socials-images img {
height: 60px;
background-color: var(--light-color);
}
.socials-images li {
display: flex;
align-items: center;
justify-content: space-evenly;
}
.socials-images p {
font-family: &#39;Space Mono&#39;, monospace;
font-size: larger;
}

<!-- language: lang-html -->

&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
&lt;title&gt;Zsolt P&#225;l | FRONTEND&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;
&lt;link rel=&quot;shortcut icon&quot; href=&quot;images/logo.png&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;blob&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;blur&quot;&gt;
&lt;header&gt;
&lt;img class=&quot;logo&quot; src=&quot;images/logo.png&quot; alt=&quot;logo&quot;&gt;
&lt;nav&gt;
&lt;ul class=&quot;nav_links&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About me&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#projects&quot;&gt;Projects&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#socials&quot;&gt;Socials&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;
&lt;a class=&quot;cta&quot; href=&quot;#&quot;&gt;&lt;button&gt;Contact&lt;/button&gt;&lt;/a&gt;
&lt;/header&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;h1 data-value=&quot;FRONTEND&quot;&gt;FRONTEND&lt;/h1&gt;
&lt;h2&gt;Zsolt P&#225;l&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;about&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;about&quot;&gt;About Me&lt;/h3&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In High school there wasn&#39;t any programming or developing teaching for me, so I&#39;ve decided to take matter in my own hands. After a few weeks I&#39;ve instantly fell in love with &lt;span class=&quot;highlight&quot;&gt;front-end&lt;/span&gt; developing.&lt;/p&gt;
&lt;p&gt;Being able to create and modify &lt;span class=&quot;highlight&quot;&gt;webpages&lt;/span&gt; and &lt;span class=&quot;highlight&quot;&gt;web applicitations&lt;/span&gt; are are a huge interest in my life since then. I&#39;m always looking up for new &lt;span class=&quot;highlight&quot;&gt;methods&lt;/span&gt; and
&lt;span class=&quot;highlight&quot;&gt;creative ideas&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Currently I am looking for a &lt;span class=&quot;highlight&quot;&gt;Junior&lt;/span&gt; or a &lt;span class=&quot;highlight&quot;&gt;Trainee&lt;/span&gt; job.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;projects&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;projects&quot;&gt;Projects&lt;/h3&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;
These are the projects that I&#39;ve been envolved in.
&lt;/th&gt;
&lt;th&gt;
Some information about them.
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;hightlight&quot;&gt;Name&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;hightlight&quot;&gt;Function&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wiki about Cars&lt;/td&gt;
&lt;td&gt;Basically you are able to search for any car and make at this website, and it gives you back a bunch of information about the searched car.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;socials&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;socials&quot;&gt;Socials&lt;/h3&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;socials-images&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/twitter.png&quot; alt=&quot;twitter&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/palimadarxd&quot;&gt;Twitter&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/instagram.png&quot; alt=&quot;instagram&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://www.instagram.com/zsota02/?hl=en&quot;&gt;Instagram&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/github.png&quot; alt=&quot;github&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/zsoltp2&quot;&gt;Github&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

<!-- end snippet -->

答案1

得分: 1

I think its better to use position: fixed. If you go to the far right, the "blob" expands the site and you can scroll vertical: 效果卡在第一部分。

const blob = document.getElementById("blob");
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

window.onpointermove = event => {
const { clientX, clientY } = event;

blob.animate({
left: `${clientX}px`,
top: `${clientY}px`
}, { duration: 3000, fill: "forwards" });

};

let interval = null;

document.querySelector("h1").onmouseover = e => {
let iterations = 0;

interval = setInterval(() => {
e.target.innerText = e.target.innerText.split("")
.map((letter, index) => {
if(index < iterations) {
return e.target.dataset.value[index];
}
return letters[Math.floor(Math.random() * 26)]
})
.join("");
if(iterations >= e.target.dataset.value.length) {
clearInterval(iterations);
}
iterations += 1 / 4;
}, 30);

}

body {
background-color: black;
height: 100%;
width: 100%;
margin: 0rem;

--scrollbar-width: 0.4rem;
--light-color: aquamarine;
--dark-color: mediumpurple;

}

html {
scroll-behavior: smooth;
}

@keyframes rotate {
from {
rotate: 0deg;
}
50% {
scale: 1 1.5;
}
to {
rotate: 360deg;
}
}

#blob {
background-color: white;
height: 34vmax;
aspect-ratio: 1;
position: fixed;
left: 50%;
top: 50%;
translate: -50% -50%;
border-radius: 50%;
background: linear-gradient(to right, aquamarine, mediumpurple);
animation: rotate 20s infinite;
opacity: 0.8;
}

#blur {
height: 100%;
width: 100%;
z-index: 2;
backdrop-filter: blur(12vmax);
}

h1 {
font-family: 'Space Mono', monospace;
font-size: clamp(3rem, 10vw, 10rem);
color: white;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
z-index: 4;
}

h2 {
font-family: 'Space Mono', monospace;
font-size: clamp(1rem, 5vw, 5rem);
color: aquamarine;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 63%;
translate: -50% -50%;
z-index: 4;
}

li, a, button {
font-family: 'Space Mono', monospace;
font-weight: 500;
font-size: 16px;
color: #ecf0f1;
text-decoration: none;
}

header {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 30px 10%;
width: 80%;
top: 0;
left: 0;
z-index: 2;
backdrop-filter: blur(12vmax);
background-color: transparent;
}

.show {
opacity: 1;
filter: blur(0);
transform: translateX(0);
}

.logo {
cursor: pointer;
order: 3;
margin-left: auto;
height: 50px;
}

.nav_links {
list-style: none;
}

.nav_links li {
display: inline-block;
padding: 0px 20px;
}

.nav_links li a {
transition: all 0.3s ease 0s;
font-family: 'Space Mono', monospace;
}

.nav_links li a:hover {
color: aquamarine;
}

button {
margin-left: 20px;
padding: 9px 25px;
background-color: mediumaquamarine;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease 0s;
font-family: 'Space Mono', monospace;
}

button:hover {
background-color: var(--dark-color);
}

::-webkit-scrollbar {
width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
background: var(--light-color);
}

h3 {
color: var(--light-color);
font-family: 'Space Mono', monospace;
font-size: clamp(0.5rem, 2vw, 2rem);
padding: 0rem clamp(1rem, 2vw, 3rem);
}

.spacer {
margin: 10vh 0;
height: 1px;
}

.section {
background-color: transparent;
z-index: 4;
top: 100%;
scroll-behavior: smooth;
transition: 0.5s;
}

.about {
display: flex;
gap: 2rem;
color: white;
font-family: 'Space Mono', monospace;
}

.about p {
width: 30%;
align-items: center;
text-align: center;
}

.highlight {
color: var(--light-color);
}

th {
color: var(--light-color);
font-family: 'Space Mono', monospace;
}

tr td {
color: white;
font-family: 'Space Mono', monospace;
}

table {
width: 45%;
text-align: center;

}

.socials-images img {
height: 60px;
background-color: var(--light-color);
}

.socials-images li {
display: flex;
align-items: center;
justify-content: space-evenly;
}

.socials-images p {
font-family: 'Space Mono', monospace;
font-size: larger;
}


英文:

I think its better to use position: fixed. If you go to the far right, the "blob" expands the site and you can scroll vertical: 效果卡在第一部分。

<!-- begin snippet: js hide: false console: true babel: null -->

<!-- language: lang-js -->

const blob = document.getElementById(&quot;blob&quot;);
const letters = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;
window.onpointermove = event =&gt; {
const { clientX, clientY } = event;
blob.animate({
left: `${clientX}px`,
top: `${clientY}px`
}, { duration: 3000, fill: &quot;forwards&quot; });
};
let interval = null;
document.querySelector(&quot;h1&quot;).onmouseover = e =&gt; {
let iterations = 0;
interval = setInterval(() =&gt; {
e.target.innerText =e.target.innerText.split(&quot;&quot;)
.map((letter, index) =&gt; {
if(index &lt; iterations) {
return e.target.dataset.value[index];
}
return letters[Math.floor(Math.random() * 26)]
})
.join(&quot;&quot;);
if(iterations &gt;= e.target.dataset.value.length) {
clearInterval(iterations);
}
iterations += 1 / 4;
}, 30);
}

<!-- language: lang-css -->

body {
background-color: black;
height: 100%;
width: 100%;
margin: 0rem;
--scrollbar-width: 0.4rem;
--light-color: aquamarine;
--dark-color: mediumpurple;
}
html {
scroll-behavior: smooth;
}
@keyframes rotate {
from {
rotate: 0deg;
}
50% {
scale: 1 1.5;
}
to {
rotate: 360deg;
}
}
#blob {
background-color: white;
height: 34vmax;
aspect-ratio: 1;
position: fixed;
left: 50%;
top: 50%;
translate: -50% -50%;
border-radius: 50%;
background: linear-gradient(to right, aquamarine, mediumpurple);
animation: rotate 20s infinite;
opacity: 0.8;
}
#blur {
height: 100%;
width: 100%;
z-index: 2;
backdrop-filter: blur(12vmax);
}
h1 {
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(3rem, 10vw, 10rem);
color: white;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
z-index: 4;
}
h2 {
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(1rem, 5vw, 5rem);
color: aquamarine;
padding: 0rem clamp(1rem, 2vw, 3rem);
border-radius: clamp(0.4rem, 0.75vw, 1rem);
margin: 0rem;
position: absolute;
left: 50%;
top: 63%;
translate: -50% -50%;
z-index: 4;
}
li, a, button {
font-family: &#39;Space Mono&#39;, monospace;
font-weight: 500;
font-size: 16px;
color: #ecf0f1;
text-decoration: none;
}
header {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 30px 10%;
width: 80%;
top: 0;
left: 0;
z-index: 2;
backdrop-filter: blur(12vmax);
background-color: transparent;
}
.show {
opacity: 1;
filter: blur(0);
transform: translateX(0);
}
.logo {
cursor: pointer;
order: 3;
margin-left: auto;
height: 50px;
}
.nav_links {
list-style: none;
}
.nav_links li {
display: inline-block;
padding: 0px 20px;
}
.nav_links li a {
transition: all 0.3s ease 0s;
font-family: &#39;Space Mono&#39;, monospace;
}
.nav_links li a:hover {
color: aquamarine;
}
button {
margin-left: 20px;
padding: 9px 25px;
background-color: mediumaquamarine;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease 0s;
font-family: &#39;Space Mono&#39;, monospace;
}
button:hover {
background-color: var(--dark-color);
}
::-webkit-scrollbar {
width: var(--scrollbar-width);
}
::-webkit-scrollbar-track {
background: var(--dark-color);
}
::-webkit-scrollbar-thumb {
background: var(--light-color);
}
h3 {
color: var(--light-color);
font-family: &#39;Space Mono&#39;, monospace;
font-size: clamp(0.5rem, 2vw, 2rem);
padding: 0rem clamp(1rem, 2vw, 3rem);
}
.spacer {
margin: 10vh 0;
height: 1px;
}
.section {
background-color: transparent;
z-index: 4;
top: 100%;
scroll-behavior: smooth;
transition: 0.5s;
}
.about {
display: flex;
gap: 2rem;
color: white;
font-family: &#39;Space Mono&#39;, monospace;
}
.about p {
width: 30%;
align-items: center;
text-align: center;
}
.highlight {
color: var(--light-color);
}
th {
color: var(--light-color);
font-family: &#39;Space Mono&#39;, monospace;
}
tr td {
color: white;
font-family: &#39;Space Mono&#39;, monospace;
}
table {
width: 45%;
text-align: center;
}
.socials-images img {
height: 60px;
background-color: var(--light-color);
}
.socials-images li {
display: flex;
align-items: center;
justify-content: space-evenly;
}  
.socials-images p {
font-family: &#39;Space Mono&#39;, monospace;
font-size: larger;
}

<!-- language: lang-html -->

&lt;div class=&quot;wrapper&quot;&gt;
&lt;div id=&quot;blob&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;blur&quot;&gt;
&lt;header&gt;
&lt;img class=&quot;logo&quot; src=&quot;images/logo.png&quot; alt=&quot;logo&quot;&gt;
&lt;nav&gt;
&lt;ul class=&quot;nav_links&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About me&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#projects&quot;&gt;Projects&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#socials&quot;&gt;Socials&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;
&lt;a class=&quot;cta&quot; href=&quot;#&quot;&gt;&lt;button&gt;Contact&lt;/button&gt;&lt;/a&gt;
&lt;/header&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;h1 data-value=&quot;FRONTEND&quot;&gt;FRONTEND&lt;/h1&gt;
&lt;h2&gt;Zsolt P&#225;l&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;about&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;about&quot;&gt;About Me&lt;/h3&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In High school there wasn&#39;t any programming or developing teaching for me, so I&#39;ve decided to take matter in my own hands. After a few weeks I&#39;ve instantly fell in love with &lt;span class=&quot;highlight&quot;&gt;front-end&lt;/span&gt; developing.&lt;/p&gt;
&lt;p&gt;Being able to create and modify &lt;span class=&quot;highlight&quot;&gt;webpages&lt;/span&gt; and &lt;span class=&quot;highlight&quot;&gt;web applicitations&lt;/span&gt; are are a huge interest in my life since then. I&#39;m always looking up for new &lt;span class=&quot;highlight&quot;&gt;methods&lt;/span&gt; and &lt;span class=&quot;highlight&quot;&gt;creative ideas&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Currently I am looking for a &lt;span class=&quot;highlight&quot;&gt;Junior&lt;/span&gt; or a &lt;span class=&quot;highlight&quot;&gt;Trainee&lt;/span&gt; job.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;projects&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;projects&quot;&gt;Projects&lt;/h3&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;
These are the projects that I&#39;ve been envolved in.
&lt;/th&gt;
&lt;th&gt;
Some information about them.
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;hightlight&quot;&gt;Name&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class=&quot;hightlight&quot;&gt;Function&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wiki about Cars&lt;/td&gt;
&lt;td&gt;Basically you are able to search for any car and make at this website, and it gives you back a bunch of information about the searched car.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;socials&quot;&gt;
&lt;div class=&quot;section-header&quot;&gt;
&lt;h3 id=&quot;socials&quot;&gt;Socials&lt;/h3&gt;
&lt;/div&gt;
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;socials-images&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/twitter.png&quot; alt=&quot;twitter&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/palimadarxd&quot;&gt;Twitter&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/instagram.png&quot; alt=&quot;instagram&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://www.instagram.com/zsota02/?hl=en&quot;&gt;Instagram&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class=&quot;social-image&quot;&gt;&lt;img src=&quot;images/github.png&quot; alt=&quot;github&quot;&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/zsoltp2&quot;&gt;Github&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

<!-- end snippet -->

huangapple
  • 本文由 发表于 2023年3月3日 21:18:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75627581.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定