Skip to content
Open
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
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# css-frameworks-ca
Replace this text with a description of your social media project.

# Your project title

Looking For Group

## Description

A place to find groups to play with, build and share experiences with fellow gamers.
You would ideally be able to sort the games you're interested in, and only see the type of game content that interests you.

## Built With

- [Node.js](https://nodejs.org/)
- [Bootstrap](https://getbootstrap.com)

## Getting Started

### Installing

1. Clone the repo:

clone https://github.com/Pockitt/css-frameworks-ca

2. Install the dependencies:

```
npm install
```

### Running

To run the app, run the following commands:

Open in Visual Studio Code, go to the base level index.html and open that in live server.

## Contributing

## Contact

[My LinkedIn page](https://www.linkedin.com/in/simen-magnussen-a01123265/)

## License

## Acknowledgments

Battery and Monster energy drinks has held my hand firmly through this project.
146 changes: 146 additions & 0 deletions feed/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="/node_modules/bootstrap/dist/css/bootstrap.css"
/>
<link rel="stylesheet" href="/src/css/styles.css" />
<script src="/node_modules/@popperjs/core/dist/cjs/popper.js"></script>
<script type="module" src="/js/script.js"></script>
<title>Feed</title>
</head>
<body>
<header>
<div class="sidebar p-4" id="sidebar">
<div class="sidebar-header">
<h2>LFG</h2>
</div>
<div class="search-bar">
<input type="text" class="btn-search" />
<button class="btn-search">Search</button>
</div>
<nav class="sidebar-nav">
<ul class="p-0">
<li><a href="/feed/index.html" class="active p-2">Home</a></li>
<li><a href="/profile/index.html" class="p-2">Profile</a></li>
<li><a href="#" class="p-2">Groups</a></li>
<li><a href="#" class="p-2">Liked</a></li>
</ul>
</nav>
<div class="create-post">
<button class="btn-create">Create post</button>
</div>
</div>
<div class="hamburger-container" id="hamburger-container">
<div class="hamburger-menu p-2" id="hamburger-menu">
<div class="bar" id="bar1"></div>
<div class="bar" id="bar2"></div>
<div class="bar" id="bar3"></div>
</div>
</div>
</header>
<main>
<div class="container col-xxl-8 col-lg-6 col-md-8 col-sm-10">
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-9">
<div class="card mb-5">
<img
src="/img/SHAMNICON-CSS.jpg"
class="card-img-top"
alt="Post Thumbnail"
/>
<div class="card-body">
<h3 class="card-title">Post Title</h3>
<p class="card-text">Brief description of the post...</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
</div>
</main>
</body>
</html>
Binary file added img/Magni-profile-pic-css.webp
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 img/SHAMNICON-CSS.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="node_modules/bootstrap/dist/css/bootstrap.css"
/>
<link rel="stylesheet" href="/src/css/styles.css" />
<script src="node_modules/@popperjs/core/dist/cjs/popper.js"></script>
<script type="module" src="/js/script.js"></script>
<title>Document</title>
</head>
<body class="login-body">
<div class="login-container">
<h1 class="title mb-4">Looking For Group</h1>
<div class="login-box col-xs-10 col-md-12 col-xxl-12 p-5">
<form name="loginForm" action="/profile/index.html" method="get">
<div class="input-group mb-4">
<input type="text" placeholder="Username" required />
</div>
<div class="input-group mb-4">
<input
type="password"
placeholder="Password"
required
pattern=".{8,}"
/>
</div>
<div class="button-group">
<button type="submit" class="login-btn">Log in</button>
<button type="button" class="register-btn">Register</button>
</div>
<a href="#" class="forgot-password">Forgot password?</a>
</form>
</div>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
document
.getElementById("hamburger-menu")
.addEventListener("click", function () {
const sidebar = document.getElementById("sidebar");
sidebar.classList.toggle("active");

// Change the hamburger to an 'X'
const bar1 = document.getElementById("bar1");
const bar2 = document.getElementById("bar2");
const bar3 = document.getElementById("bar3");

bar1.classList.toggle("rotate1");
bar2.classList.toggle("hide");
bar3.classList.toggle("rotate2");
});
107 changes: 107 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 12 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
{
"name": "css-frameworks-ca",
"version": "0.0.1",
"description": "A starting point for the CSS Frameworks CA project",
"name": "npm-bootstrap",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"We will learn more about testing in the Workflow course\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"sass": "sass --watch src/scss/styles.scss src/css/styles.css"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NoroffFEU/css-frameworks-ca.git"
},
"keywords": [
"CSS",
"CSS",
"Frameworks",
"Bootstrap",
"SCSS",
"SASS"
],
"author": "Oliver Dipple <oliver.dipple@noroff.no>",
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/NoroffFEU/css-frameworks-ca/issues"
},
"homepage": "https://github.com/NoroffFEU/css-frameworks-ca#readme"
"description": "",
"dependencies": {
"bootstrap": "^5.3.3",
"sass": "^1.79.2"
}

}
Loading