Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/newrallylogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/rally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 23 additions & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
import './style.css'
import icon from "/rallyLogo.png";
import icon from "/newrallylogo.png";
import rallypic from "/rally.png";

function createMainPage() {
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
</head>
<div class="heading">
<div>
<img class="logo" src="${icon}" alt="Rally Logo"/>
<div class = "container">
<div>
<img class="logo" src="${icon}" alt="Rally Logo"/>
</div>
<div>
<h1>WELCOME TO</h1>
<img class="rally-pic" src="${rallypic}" alt="Rally"/>
<p>A community project where everyone adds their own touch to the website</p>
<a href='./links.html' style=" text-decoration:none;">
<div class = "rounded-box">
<p style="line-height:5em; width:auto; color:white;">To the pages!!!<p>
</div>
</a>
</div>
</div>
<h1>Welcome to Rally!!</h1>
<div>
<p>A community project where everyone adds their own touch to the website</p>
</div>
<div class="button">
<button onclick="document.location='./links.html'">To the pages!!!</button>
</div>


<div class="credits">
<h4>Credits!</h4>
<br>
Expand Down
80 changes: 64 additions & 16 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
:root {
font-family: Coolvetica, sans-serif;
line-height: 1.5;

/* line-height: 1.5; */
font-weight: 400;

color-scheme: light dark;
background-color: #24273a;
background-color: #050818;

font-synthesis: none;
text-rendering: optimizeLegibility;
Expand All @@ -17,6 +17,49 @@
width: 100%;
}

.container {
display: grid;
grid-template-columns: 1fr 1fr;
text-align: center;
padding-left: 1em;
padding-right: 1em;
}

@media only screen and (max-width: 1100px) {
.container {
grid-template-columns: 1fr;
}
}

.rounded-box {
background-color:#7589F5;
width: 80%;
height:10em;
margin-left: auto;
margin-right:auto;
margin-top: auto;
margin-bottom: auto;
border-radius:2em;
}

.rounded-box:hover {
transform: scale(1.05);
background-color: #96a3ee;
transition: 0.3s ease;

}

.rounded-box.vanilla:hover {
transform: scale(1.05);
background-color: #96a3ee;
transition: 0.3s ease;

}

.rally-pic {
width: 80%;
height:auto;
}

body {
margin: 0;
Expand All @@ -27,31 +70,37 @@ body {
}

h1 {
font-size: 3.2em;
font-size: 5em;
line-height: 1.1;
font-family: "Quantico", sans-serif;
}

p {
font-family: "Quantico", sans-serif;
font-size: 2em;
}

#app {
max-width: 1280px;
margin: 0 auto;

text-align: center;
font-family: Coolvetica, sans-serif;
}

.logo {
height: 300px;
width:100%;
height:auto;
padding: 1.5em;
margin-top: 30px;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
/* .logo:hover {
filter: drop-shadow(0 0 1em rgba(198, 160, 246, 0.67));
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 1em rgba(198, 160, 246 0.67));
}
} */

.credits {
padding: 10px;
Expand All @@ -73,26 +122,25 @@ h1 {
}

button {
background-color: #bac2de;
border: solid 5px #b4befe;
border-radius: 10px;
height: 4em;
width: 12em;
background-color: #7589F5;
border-radius: 1em;
height: 5em;
width: 80%;
margin-top: 2em;

transition: filter 300ms;
outline: none;

font-weight: bold;
color: black;
}

button:hover {
/* button:hover {
filter: drop-shadow(0 0 2em rgba(246, 148, 255, 0.3));
}

button.vanilla:hover {
filter: drop-shadow(0 0 2em rgba(246, 148, 255, 0.3));
}
} */

@font-face {
font-family: 'Coolvetica';
Expand Down